Tests for neutron-ovsdb
[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.assertEquals;
12 import static org.opendaylight.groupbasedpolicy.neutron.ovsdb.util.InventoryHelper.getLongFromDpid;
13
14 import org.junit.Test;
15
16 public class DataStoreTest {
17
18     @Test
19     public void testDpidDecode() throws Exception {
20         final String testDpid = "00:00:aa:bb:cc:dd:ee:ff";
21
22         Long result = getLongFromDpid(testDpid);
23         assertEquals(Long.valueOf(187723572702975L), result);
24     }
25 }