Squashed commit of the following:
[ovsdb.git] / openstack / net-virt / src / test / java / org / opendaylight / ovsdb / openstack / netvirt / NodeCacheManagerEventTest.java
1 /*
2  * Copyright (c) 2015 Inocybe and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.ovsdb.openstack.netvirt;
10 import static org.junit.Assert.assertEquals;
11 import static org.junit.Assert.assertFalse;
12 import static org.junit.Assert.assertNotNull;
13 import static org.junit.Assert.assertTrue;
14
15 import org.junit.Before;
16 import org.junit.Ignore;
17 import org.junit.Test;
18 import org.opendaylight.ovsdb.openstack.netvirt.api.Action;
19
20 /**
21  * Unit test for {@link NodeCacheManagerEvent}
22  */
23 /* TODO SB_MIGRATION */
24 @Ignore
25 public class NodeCacheManagerEventTest {
26
27     private NodeCacheManagerEvent nodeCacheManagerEvent;
28
29     @Before
30     public void setUp() {
31         /* TODO SB_MIGRATION */
32         //nodeCacheManagerEvent = new NodeCacheManagerEvent("nodeIdentifier", Action.ADD);
33     }
34
35     @Test
36     public void testToString() {
37         assertEquals("Error, toString() did not return the correct string", "NodeCacheManagerEvent [action=ADD, nodeIdentifier=nodeIdentifier]", nodeCacheManagerEvent.toString());
38     }
39
40     @Test
41     public void testHashCode() {
42         assertNotNull("Error, hashCode shouldn't be null", nodeCacheManagerEvent.hashCode());
43     }
44
45     @Test
46     public void testEquals() {
47         assertTrue("Error, the two object should be equal", nodeCacheManagerEvent.equals(nodeCacheManagerEvent));
48         assertFalse("Error, the two object should not be equal", nodeCacheManagerEvent.equals(new String("dummy")));
49     }
50 }