Removing the Open_vSwitch schema hardcoding in OvsDBClient. 70/7470/1
authorMadhu Venugopal <mavenugo@gmail.com>
Wed, 28 May 2014 22:26:27 +0000 (15:26 -0700)
committerMadhu Venugopal <mavenugo@gmail.com>
Wed, 28 May 2014 22:26:27 +0000 (15:26 -0700)
commit9999d34b9b827e5c9f1cffba232864297597d261
tree3709c6c88596c7a6f866271576b694f1d96b7bea
parent47f94a75b29c7b725bcc6c9ca95645d8835443e9
Removing the Open_vSwitch schema hardcoding in OvsDBClient.

Though it is an harmless constant string, it goes against the motivation of the library redesign to be
schema independent. Hence moving the schema string to a more appropriate place (to the applications),
in this case, to the Integration Test files.
Also, modified the initialize functionality to include a test to check for the list_dbs to contain Open_vSwitch
schema as all the tests in this file are based on Open_vSwitch schema tables.

Change-Id: I3210abf1fa18b5707a27b719f7d481b5de76d6be
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
library/src/main/java/org/opendaylight/ovsdb/lib/OvsDBClient.java
library/src/test/java/org/opendaylight/ovsdb/lib/OvsDBClientTestIT.java
library/src/test/java/org/opendaylight/ovsdb/lib/OvsDBClientTestITTyped.java
library/src/test/java/org/opendaylight/ovsdb/lib/OvsdbTestBase.java
library/src/test/java/org/opendaylight/ovsdb/lib/schema/temp/SchemaObjs.java