1 package org.opendaylight.groupbasedpolicy.resolver;
3 import org.junit.Assert;
4 import org.junit.Before;
6 import org.opendaylight.groupbasedpolicy.dto.Policy;
8 public class PolicyTest {
10 private Policy policy;
13 public void initialisation() {
14 policy = new Policy(null);
18 public void equalsTest() {
19 Assert.assertTrue(policy.equals(policy));
20 Assert.assertFalse(policy.equals(null));
21 Assert.assertFalse(policy.equals(new Object()));
23 Policy other = new Policy(null);
24 Assert.assertTrue(policy.equals(other));
28 public void toStringTest() {
29 Assert.assertNotNull(policy.toString());