Tests for neutron-ovsdb
[groupbasedpolicy.git] / neutron-ovsdb / src / test / java / org / opendaylight / groupbasedpolicy / neutron / ovsdb / util / DataStoreTest.java
index 6f6ebae9229af401247208fe469057261d5e3bb6..7c9b30222b3dd0fe36ca99a8e1e3167fbf6002cd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -8,23 +8,18 @@
 
 package org.opendaylight.groupbasedpolicy.neutron.ovsdb.util;
 
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertEquals;
 import static org.opendaylight.groupbasedpolicy.neutron.ovsdb.util.InventoryHelper.getLongFromDpid;
 
-import org.junit.Before;
 import org.junit.Test;
 
 public class DataStoreTest {
 
-    @Before
-    public void setUp() throws Exception {
-    }
-
     @Test
     public void testDpidDecode() throws Exception {
-        final String testDpid1 = "00:00:aa:bb:cc:dd:ee:ff";
+        final String testDpid = "00:00:aa:bb:cc:dd:ee:ff";
 
-        Long resultDpid1 = getLongFromDpid(testDpid1);
-        assertTrue(resultDpid1 == 187723572702975L);
+        Long result = getLongFromDpid(testDpid);
+        assertEquals(Long.valueOf(187723572702975L), result);
     }
 }