1 package org.opendaylight.groupbasedpolicy.resolver;
3 import org.junit.Assert;
4 import org.junit.Before;
7 public class PolicyTest {
12 public void initialisation() {
13 policy = new Policy(null);
17 public void equalsTest() {
18 Assert.assertTrue(policy.equals(policy));
19 Assert.assertFalse(policy.equals(null));
20 Assert.assertFalse(policy.equals(new Object()));
22 Policy other = new Policy(null);
23 Assert.assertTrue(policy.equals(other));
27 public void toStringTest() {
28 Assert.assertNotNull(policy.toString());