blob: 878350803577355fd83fdacd8b47a1374301766e [file] [log] [blame]
Brian O'Connor6de2e202015-05-21 14:30:41 -07001package org.onosproject.incubator.net.resource.label;
jccde3e92e2015-03-28 01:40:44 -07002
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}