blob: 25ef57f7cfe50127490315c48cee2f6b03e9f7ea [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Brian O'Connor6de2e202015-05-21 14:30:41 -070016package org.onosproject.incubator.net.resource.label;
jccde3e92e2015-03-28 01:40:44 -070017
18import org.junit.Test;
19import org.onosproject.event.AbstractEventTest;
20
21import com.google.common.testing.EqualsTester;
22
23/**
24 * Tests of the label resource pool.
25 */
26public class LabelResourcePoolTest extends AbstractEventTest {
27
28 @Test
29 public void testEquality() {
30 LabelResourcePool h1 = new LabelResourcePool("of:001", 0, 100);
31 LabelResourcePool h2 = new LabelResourcePool("of:001", 0, 100);
32 LabelResourcePool h3 = new LabelResourcePool("of:002", 0, 100);
33 LabelResourcePool h4 = new LabelResourcePool("of:002", 0, 100);
34 new EqualsTester().addEqualityGroup(h1, h2).addEqualityGroup(h3, h4)
35 .testEquals();
36 }
37
38}