1 package org.apache.turbine.services.jsonrpc;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import static org.junit.Assert.assertNotNull;
23
24 import java.util.HashMap;
25 import java.util.Map;
26
27 import org.apache.turbine.TurbineConstants;
28 import org.apache.turbine.test.BaseTestCase;
29 import org.apache.turbine.util.TurbineConfig;
30 import org.jabsorb.JSONRPCBridge;
31 import org.junit.AfterClass;
32 import org.junit.BeforeClass;
33 import org.junit.Test;
34
35 public class JsonrpcServicelTest
36 extends BaseTestCase
37 {
38 private static TurbineConfig turbineConfig = null;
39
40
41 @BeforeClass
42 public static void setUp() throws Exception {
43
44
45
46 Map<String, String> initParams = new HashMap<String, String>();
47 initParams.put(TurbineConfig.PROPERTIES_PATH_KEY, "conf/test/CompleteTurbineResources.properties");
48 initParams.put(TurbineConstants.LOGGING_ROOT_KEY, "target/test-logs");
49
50 turbineConfig = new TurbineConfig(".", initParams);
51 turbineConfig.initialize();
52 }
53
54 @AfterClass
55 public static void destroy() throws Exception {
56 turbineConfig.dispose();
57 }
58
59
60 @Test public void testBridgeAccess()
61 {
62 JSONRPCBridge bridge = new JSONRPCBridge();
63 assertNotNull(bridge);
64 }
65
66 }