Feature uses features-parent as parent
[groupbasedpolicy.git] / renderers / opflex / src / test / java / org / opendaylight / groupbasedpolicy / renderer / opflex / jsonrpc / RpcServerTest.java
1 /*
2  * Copyright (C) 2014 Cisco Systems, Inc.
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 : Thomas Bachman
9  */
10
11 package org.opendaylight.groupbasedpolicy.renderer.opflex.jsonrpc;
12
13
14 import org.junit.Before;
15 import org.slf4j.Logger;
16 import org.slf4j.LoggerFactory;
17
18 public class RpcServerTest implements ConnectionService, RpcBroker {
19     protected static final Logger logger = LoggerFactory.getLogger(JsonRpcEndpoint.class);
20
21     private static final String TEST_IP = "127.0.0.1";
22     private static final int TEST_PORT = 53670;
23
24
25     @Override
26     public void addConnection(JsonRpcEndpoint endpoint) {
27     }
28
29     @Override
30     public void channelClosed(JsonRpcEndpoint peer) throws Exception {
31     }
32
33     @Override
34     public void publish(JsonRpcEndpoint endpoint, RpcMessage message) {
35     }
36
37     @Override
38     public void subscribe(RpcMessage message, RpcCallback callback) {
39     }
40
41     @Before
42     public void setUp() throws Exception {
43
44         RpcServer server = new RpcServer(TEST_IP, TEST_PORT);
45         server.setConnectionService(this);
46         server.setRpcBroker(this);
47
48     }
49
50
51     //@Test
52     public void testStartup() throws Exception {
53
54     }
55
56     //@Test
57     public void testShutdown() throws Exception {
58
59     }
60
61 }