Brian O'Connor | 6de2e20 | 2015-05-21 14:30:41 -0700 | [diff] [blame^] | 1 | package org.onosproject.incubator.net.resource.label; |
jcc | de3e92e | 2015-03-28 01:40:44 -0700 | [diff] [blame] | 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 | } |