<packaging>jar</packaging>
<dependencies>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
/*
- * [[ Authors will Fill in the Copyright header ]]
*
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (C) 2014 Red Hat, Inc.
*
- * Authors : Brent Salisbury, Hugo Trippaers
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Sam Hague
+ * /
*/
-package org.opendaylight.ovsdb.plugin;
+package org.opendaylight.ovsdb.integrationtest.bridgedomain;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
import org.junit.Test;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.networkconfig.bridgedomain.ConfigConstants;
/*
- * [[ Authors will Fill in the Copyright header ]]
*
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (C) 2014 Red Hat, Inc.
*
- * Authors : Brent Salisbury, Hugo Trippaers
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Sam Hague
+ * /
*/
-package org.opendaylight.ovsdb.plugin;
+package org.opendaylight.ovsdb.integrationtest.bridgedomain;
import org.junit.Test;
import org.opendaylight.controller.sal.core.Node;
/*
- * [[ Authors will Fill in the Copyright header ]]
*
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (C) 2014 Red Hat, Inc.
*
- * Authors : Brent Salisbury, Hugo Trippaers
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Sam Hague
+ * /
*/
-package org.opendaylight.ovsdb.plugin;
+package org.opendaylight.ovsdb.integrationtest.bridgedomain;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
-
import org.junit.Before;
import org.junit.Test;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.ovsdb.plugin.impl.ConfigurationServiceImpl;
import org.opendaylight.ovsdb.plugin.impl.ConnectionServiceImpl;
import org.opendaylight.ovsdb.plugin.internal.Encapsulation;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
--- /dev/null
+/*
+ *
+ * Copyright (C) 2014 Red Hat, Inc.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Sam Hague
+ * /
+ */
+package org.opendaylight.ovsdb.integrationtest.bridgedomain;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({
+ BridgeDomainConfigBridgeTestCases.class,
+ BridgeDomainConfigPortTestCases.class,
+ BridgeDomainConfigManagerTestCases.class,
+ TearDown.class})
+
+public class BridgeDomainTestSuiteIT {
+ static PluginTestBase.TestObjects testObjects;
+
+ public static PluginTestBase.TestObjects getTestObjects() {
+ return testObjects;
+ }
+
+ public static void setTestObjects(PluginTestBase.TestObjects testObjects) {
+ BridgeDomainTestSuiteIT.testObjects = testObjects;
+ }
+
+}
/*
- * [[ Authors will Fill in the Copyright header ]]
*
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (C) 2014 Red Hat, Inc.
*
- * Authors : Brent Salisbury, Hugo Trippaers
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Sam Hague
+ * /
*/
-package org.opendaylight.ovsdb.plugin;
+package org.opendaylight.ovsdb.integrationtest.bridgedomain;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
-
import junit.framework.Assert;
-
+import org.junit.Rule;
+import org.junit.rules.TestRule;
+import org.junit.rules.TestWatcher;
+import org.junit.runner.Description;
import org.opendaylight.controller.sal.connection.ConnectionConstants;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.core.NodeConnector;
import org.opendaylight.ovsdb.plugin.impl.ConfigurationServiceImpl;
import org.opendaylight.ovsdb.plugin.impl.ConnectionServiceImpl;
import org.opendaylight.ovsdb.plugin.impl.InventoryServiceImpl;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public abstract class PluginTestBase {
+ private static final Logger LOG = LoggerFactory.getLogger(PluginTestBase.class);
private final static String identifier = "TEST";
protected final static String BRIDGE_NAME = "JUNIT_TEST_BRIDGE";
protected final static String PORT_NAME = "test0";
}
public TestObjects getTestConnection() throws IOException {
- if (OvsdbPluginTestSuiteIT.getTestObjects() != null) {
- return OvsdbPluginTestSuiteIT.getTestObjects();
+ if (BridgeDomainTestSuiteIT.getTestObjects() != null) {
+ return BridgeDomainTestSuiteIT.getTestObjects();
}
Properties props = loadProperties();
String address = props.getProperty(SERVER_IPADDRESS);
e.printStackTrace();
}
TestObjects testObject = new TestObjects(connectionService, node, inventory, configurationService);
- OvsdbPluginTestSuiteIT.setTestObjects(testObject);
+ BridgeDomainTestSuiteIT.setTestObjects(testObject);
return testObject;
}
+ @Rule
+ public TestRule watcher = new TestWatcher() {
+ @Override
+ protected void starting(Description description) {
+ LOG.info("TestWatcher: Starting test: {}",
+ description.getDisplayName());
+ }
+
+ @Override
+ protected void finished(Description description) {
+ LOG.info("TestWatcher: Finished test: {}", description.getDisplayName());
+ }
+ };
}
/*
- * [[ Authors will Fill in the Copyright header ]]
*
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
+ * Copyright (C) 2014 Red Hat, Inc.
*
- * Authors : Brent Salisbury, Hugo Trippaers
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Authors : Sam Hague
+ * /
*/
-package org.opendaylight.ovsdb.plugin;
+package org.opendaylight.ovsdb.integrationtest.bridgedomain;
import org.junit.Test;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.ovsdb.plugin.impl.ConfigurationServiceImpl;
import org.opendaylight.ovsdb.plugin.impl.ConnectionServiceImpl;
-
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+++ /dev/null
-/*
- * Copyright (C) 2014 Red Hat, Inc.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Authors : Madhu Venugopal, Dave Tucker
- */
-package org.opendaylight.ovsdb.plugin;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-import org.opendaylight.ovsdb.plugin.PluginTestBase.TestObjects;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({
- BridgeDomainConfigBridgeTestCases.class,
- BridgeDomainConfigPortTestCases.class,
- BridgeDomainConfigManagerTestCases.class,
- TearDown.class})
-
-public class OvsdbPluginTestSuiteIT {
- static TestObjects testObjects;
-
- public static TestObjects getTestObjects() {
- return testObjects;
- }
-
- public static void setTestObjects(TestObjects testObjects) {
- OvsdbPluginTestSuiteIT.testObjects = testObjects;
- }
-
-}