Merge branch 'master' into topic/schema
[ovsdb.git] / plugin / src / test / java / org / opendaylight / ovsdb / plugin / OvsdbTestGetBridgeDomainsIT.java
1 /*
2  * [[ Authors will Fill in the Copyright header ]]
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  * Authors : Brent Salisbury, Hugo Trippaers
9  */
10 package org.opendaylight.ovsdb.plugin;
11
12 import java.io.IOException;
13 import java.util.List;
14 import java.util.Properties;
15
16 import org.junit.Before;
17 import org.junit.Test;
18 import org.opendaylight.controller.sal.core.Node;
19 import org.slf4j.Logger;
20 import org.slf4j.LoggerFactory;
21
22 public class OvsdbTestGetBridgeDomainsIT extends OvsdbTestBase {
23     private static final Logger logger = LoggerFactory
24             .getLogger(OvsdbTestGetBridgeDomainsIT.class);
25
26     private Properties props;
27
28     @Before
29     public void loadProps() throws IOException {
30         props = loadProperties();
31     }
32
33     @Test
34     public void getBridgeDomains() throws Throwable{
35
36         TestObjects testObjects = getTestConnection();
37         ConnectionService connectionService = testObjects.connectionService;
38         InventoryService inventoryService = testObjects.inventoryService;
39         Node node = testObjects.node;
40
41         /**
42          * List a Bridge Domain
43          *
44          * @param node Node serving this configuration service
45          *
46          */
47         ConfigurationService configurationService = new ConfigurationService();
48         configurationService.setConnectionServiceInternal(connectionService);
49         configurationService.setInventoryServiceInternal(inventoryService);
50         List<String> ls = configurationService.getBridgeDomains(node);
51     }
52 }