2 * Copyright (c) 2015 Cisco Systems, Inc. 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.groupbasedpolicy.neutron.ovsdb.util;
11 import static org.junit.Assert.assertTrue;
12 import static org.opendaylight.groupbasedpolicy.neutron.ovsdb.util.DataStore.getLongFromDpid;
14 import org.junit.Before;
15 import org.junit.Test;
17 public class DataStoreTest {
20 public void setUp() throws Exception {
24 public void testDpidDecode() throws Exception {
25 final String testDpid1 = "00:00:aa:bb:cc:dd:ee:ff";
27 Long resultDpid1 = getLongFromDpid(testDpid1);
28 assertTrue(resultDpid1 == 187723572702975L);