Migrate MockitoJUnitRunner
[ovsdb.git] / southbound / southbound-impl / src / test / java / org / opendaylight / ovsdb / southbound / OvsdbSchemaContantsTest.java
1 /*
2  * Copyright (c) 2015 Inocybe Technologies 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 package org.opendaylight.ovsdb.southbound;
9
10 import static org.junit.Assert.assertEquals;
11
12 import org.junit.Test;
13 import org.opendaylight.ovsdb.southbound.OvsdbSchemaContants.OvsdbSchemaTables;
14
15 public class OvsdbSchemaContantsTest {
16
17     @Test
18     public void testDatabaseName() {
19         assertEquals("Error databaseName did not return correct value", "Open_vSwitch",
20                 OvsdbSchemaContants.DATABASE_NAME);
21     }
22
23     @Test
24     public void testGetTableName() {
25         assertEquals("Error getTableName() did not return correct value", "Open_vSwitch",
26                 OvsdbSchemaTables.OPENVSWITCH.getTableName());
27     }
28
29     @Test
30     public void testGetParentTableName() {
31         assertEquals("Error getTableName() did not return correct value", null,
32                 OvsdbSchemaTables.OPENVSWITCH.getParentTableName());
33     }
34
35     @Test
36     public void testGetColumnNameInParentTable() {
37         assertEquals("Error getTableName() did not return correct value", null,
38                 OvsdbSchemaTables.OPENVSWITCH.getColumnNameInParentTable());
39     }
40 }