blob: f4d91c1db0c51c1e6e8d3db1261fb5ad6ba76ffe [file] [log] [blame]
jccde3e92e2015-03-28 01:40:44 -07001package org.onosproject.net.resource;
2
3import org.junit.Test;
4import org.onosproject.event.AbstractEventTest;
5
6import com.google.common.testing.EqualsTester;
7
8/**
9 * Tests of the label resource pool.
10 */
11public 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}