878350803577355fd83fdacd8b47a1374301766e
[onosfw.git] /
1 package org.onosproject.incubator.net.resource.label;
2
3 import org.junit.Test;
4 import org.onosproject.event.AbstractEventTest;
5
6 import com.google.common.testing.EqualsTester;
7
8 /**
9  * Tests of the label resource pool.
10  */
11 public class LabelResourcePoolTest extends AbstractEventTest {
12
13     @Test
14     public void testEquality() {
15         LabelResourcePool h1 = new LabelResourcePool("of:001", 0, 100);
16         LabelResourcePool h2 = new LabelResourcePool("of:001", 0, 100);
17         LabelResourcePool h3 = new LabelResourcePool("of:002", 0, 100);
18         LabelResourcePool h4 = new LabelResourcePool("of:002", 0, 100);
19         new EqualsTester().addEqualityGroup(h1, h2).addEqualityGroup(h3, h4)
20                 .testEquals();
21     }
22
23 }