189
|
1 package test.sematest;
|
|
2
|
192
|
3 import java.io.IOException;
|
189
|
4 import rep.SessionManager;
|
192
|
5 import rep.channel.REPLogger;
|
189
|
6 import rep.channel.REPServerSocketChannel;
|
193
|
7
|
189
|
8
|
|
9 public class TestSessionManager {
|
|
10
|
192
|
11 static public REPLogger logger = REPLogger.singleton();
|
189
|
12
|
192
|
13 public TestSessionManager(int sm, int ss, int e) {
|
189
|
14 }
|
|
15
|
|
16 private void startTest() {
|
213
|
17 int masterPort = 8766;
|
192
|
18 String[] strs ={String.valueOf(masterPort), String.valueOf(masterPort)};
|
|
19 startSessionManager(strs);
|
|
20 }
|
189
|
21
|
192
|
22 private void startSessionManager(final String[] strs) {
|
|
23 new Thread(new Runnable(){
|
|
24 public void run(){
|
|
25 try {
|
|
26 SessionManager.main(strs);
|
|
27 } catch (InterruptedException e) {
|
|
28 e.printStackTrace();
|
|
29 } catch (IOException e) {
|
|
30 e.printStackTrace();
|
|
31 }
|
|
32 }
|
|
33 }).start();
|
189
|
34 }
|
|
35
|
220
|
36 public static void main(String[] args){
|
|
37 REPServerSocketChannel.isSimulation = false;
|
|
38 TestSessionManager test = new TestSessionManager(1, 0, 2);
|
|
39 logger.setLogLevel(5);
|
|
40 test.startTest();
|
|
41 }
|
|
42
|
189
|
43 }
|