Merge "Adding Pax-Exam infra with a basic IT for plugin"
[netvirt.git] / ovsdb / src / test / java / org / opendaylight / ovsdb / plugin / OvsdbTestAddBridgeIT.java
1 /*\r
2  * [[ Authors will Fill in the Copyright header ]]\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Authors : Brent Salisbury, Hugo Trippaers\r
9  */\r
10 package org.opendaylight.ovsdb.plugin;\r
11 \r
12 import org.junit.Test;\r
13 import org.opendaylight.controller.sal.core.Node;\r
14 import org.slf4j.Logger;\r
15 import org.slf4j.LoggerFactory;\r
16 \r
17 public class OvsdbTestAddBridgeIT extends OvsdbTestBase {\r
18     private static final Logger logger = LoggerFactory\r
19             .getLogger(OvsdbTestAddBridgeIT.class);\r
20 \r
21     @Test\r
22     public void addBridge() throws Throwable{\r
23 \r
24         TestObjects testObjects = getTestConnection();\r
25         ConnectionService connectionService = testObjects.connectionService;\r
26         Node node = testObjects.node;\r
27 \r
28         /**\r
29          * Create a Bridge Domain\r
30          *\r
31          * @param node Node serving this configuration service\r
32          * @param bridgeDomainIdentifier String representation of a Bridge Domain\r
33          */\r
34         ConfigurationService configurationService = new ConfigurationService();\r
35         configurationService.setConnectionServiceInternal(connectionService);\r
36         configurationService.createBridgeDomain(node, BRIDGE_NAME, null);\r
37     }\r
38 \r
39 }\r