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