2 * Copyright (c) 2015 Inocybe and others. All rights reserved.
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
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;
15 import org.junit.Before;
16 import org.junit.Ignore;
17 import org.junit.Test;
18 import org.opendaylight.ovsdb.openstack.netvirt.api.Action;
21 * Unit test for {@link NodeCacheManagerEvent}
23 /* TODO SB_MIGRATION */
25 public class NodeCacheManagerEventTest {
27 private NodeCacheManagerEvent nodeCacheManagerEvent;
31 /* TODO SB_MIGRATION */
32 //nodeCacheManagerEvent = new NodeCacheManagerEvent("nodeIdentifier", Action.ADD);
36 public void testToString() {
37 assertEquals("Error, toString() did not return the correct string", "NodeCacheManagerEvent [action=ADD, nodeIdentifier=nodeIdentifier]", nodeCacheManagerEvent.toString());
41 public void testHashCode() {
42 assertNotNull("Error, hashCode shouldn't be null", nodeCacheManagerEvent.hashCode());
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")));