Merge "GBP UI fixes"
[groupbasedpolicy.git] / neutron-ovsdb / src / test / java / org / opendaylight / groupbasedpolicy / neutron / ovsdb / util / DataStoreTest.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. 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.groupbasedpolicy.neutron.ovsdb.util;
10
11 import static org.junit.Assert.assertTrue;
12 import static org.opendaylight.groupbasedpolicy.neutron.ovsdb.util.DataStore.getLongFromDpid;
13
14 import org.junit.Before;
15 import org.junit.Test;
16
17 public class DataStoreTest {
18
19     @Before
20     public void setUp() throws Exception {
21     }
22
23     @Test
24     public void testDpidDecode() throws Exception {
25         final String testDpid1 = "00:00:aa:bb:cc:dd:ee:ff";
26
27         Long resultDpid1 = getLongFromDpid(testDpid1);
28         assertTrue(resultDpid1 == 187723572702975L);
29     }
30 }