2 * Copyright (c) 2015 Inocybe Technologies 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
8 package org.opendaylight.ovsdb.southbound;
10 import static org.junit.Assert.assertEquals;
12 import org.junit.Test;
13 import org.opendaylight.ovsdb.southbound.OvsdbSchemaContants.OvsdbSchemaTables;
15 public class OvsdbSchemaContantsTest {
18 public void testDatabaseName() {
19 assertEquals("Error databaseName did not return correct value", "Open_vSwitch",
20 OvsdbSchemaContants.DATABASE_NAME);
24 public void testGetTableName() {
25 assertEquals("Error getTableName() did not return correct value", "Open_vSwitch",
26 OvsdbSchemaTables.OPENVSWITCH.getTableName());
30 public void testGetParentTableName() {
31 assertEquals("Error getTableName() did not return correct value", null,
32 OvsdbSchemaTables.OPENVSWITCH.getParentTableName());
36 public void testGetColumnNameInParentTable() {
37 assertEquals("Error getTableName() did not return correct value", null,
38 OvsdbSchemaTables.OPENVSWITCH.getColumnNameInParentTable());