Refactor of the OVSDB Plugin
[ovsdb.git] / plugin / src / test / java / org / opendaylight / ovsdb / plugin / BridgeDomainConfigManagerTestCases.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 org.junit.Test;
13 import org.opendaylight.controller.sal.core.Node;
14 import org.opendaylight.ovsdb.plugin.impl.ConfigurationServiceImpl;
15
16 import org.slf4j.Logger;
17 import org.slf4j.LoggerFactory;
18
19 public class BridgeDomainConfigManagerTestCases extends PluginTestBase {
20     private static final Logger logger = LoggerFactory
21             .getLogger(BridgeDomainConfigManagerTestCases.class);
22
23     @Test
24     public void setManager() throws Throwable{
25         TestObjects testObjects = getTestConnection();
26         Node node = testObjects.node;
27
28
29         String port = "6634";
30         String host = FAKE_IP;
31         String connectionType = "ptcp";
32
33         String manager = connectionType + ":" + host + ":" + port;
34
35         /**
36          * Implements the OVS Connection for Managers
37          *
38          * @param node Node serving this configuration service
39          * @param String with IP and connection type ex. type:ip:port
40          *
41          */
42         ConfigurationServiceImpl configurationService = testObjects.configurationService;
43         configurationService.setManager(node, manager);
44     }
45
46 }