Merge "Adding EIC."
[groupbasedpolicy.git] / groupbasedpolicy / src / test / java / org / opendaylight / groupbasedpolicy / resolver / PolicyTest.java
1 package org.opendaylight.groupbasedpolicy.resolver;
2
3 import org.junit.Assert;
4 import org.junit.Before;
5 import org.junit.Test;
6
7 public class PolicyTest {
8
9     private Policy policy;
10
11     @Before
12     public void initialisation() {
13         policy = new Policy(null);
14     }
15
16     @Test
17     public void equalsTest() {
18         Assert.assertTrue(policy.equals(policy));
19         Assert.assertFalse(policy.equals(null));
20         Assert.assertFalse(policy.equals(new Object()));
21
22         Policy other = new Policy(null);
23         Assert.assertTrue(policy.equals(other));
24     }
25
26     @Test
27     public void toStringTest() {
28         Assert.assertNotNull(policy.toString());
29     }
30 }