public class OvsdbSchemaContants {
public static final String databaseName = "Open_vSwitch";
+ private OvsdbSchemaContants() { }
+
public enum OvsdbSchemaTables {
OPENVSWITCH("Open_vSwitch",null,null),
BRIDGE("Bridge", "Open_vSwitch", "bridges"),
import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId;
public class SouthboundConstants {
+
+ private SouthboundConstants() { }
+
public static final String OPEN_V_SWITCH = "Open_vSwitch";
public static final TopologyId OVSDB_TOPOLOGY_ID = new TopologyId(new Uri("ovsdb:1"));
public static final String OVSDB_URI_PREFIX = "ovsdb";
import org.slf4j.LoggerFactory;
public class SouthboundMapper {
+
+ private SouthboundMapper() { }
+
private static final Logger LOG = LoggerFactory.getLogger(SouthboundMapper.class);
private static final String N_CONNECTIONS_STR = "n_connections";
import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
public class TransactUtils {
+
+ private TransactUtils() { }
+
private static <T extends DataObject> Predicate<DataObjectModification<T>> hasDataBefore() {
return new Predicate<DataObjectModification<T>>() {
@Override
}
StringBuffer buf = new StringBuffer();
- for (int i = 0; i < bytes.length; i++) {
- short u8byte = (short) (bytes[i] & 0xff);
+ for (byte b : bytes) {
+ short u8byte = (short) (b & 0xff);
String tmp = Integer.toHexString(u8byte);
if (tmp.length() == 1) {
buf.append("0");
*/
package org.opendaylight.ovsdb.southbound;
+
import static org.junit.Assert.assertEquals;
-import org.junit.Before;
import org.junit.Test;
import org.opendaylight.ovsdb.southbound.OvsdbSchemaContants.OvsdbSchemaTables;
public class OvsdbSchemaContantsTest {
- private OvsdbSchemaContants ovsdbSchemaContants;
-
- @Before
- public void setUp() {
- ovsdbSchemaContants = new OvsdbSchemaContants();
- }
-
@Test
public void testDatabaseName() {
- assertEquals("Error databaseName did not return correct value","Open_vSwitch",OvsdbSchemaContants.databaseName);
+ assertEquals("Error databaseName did not return correct value","Open_vSwitch", OvsdbSchemaContants.databaseName);
}
@Test
public void testGetTableName() {