Mercurial > hg > RemoteEditor > REPSessionManager
comparison test/sematest/TestInterManagerSession.java @ 430:03ab374605a6
Test program termination.
author | one |
---|---|
date | Sat, 02 Jan 2010 04:16:25 +0900 |
parents | 1acc3dfde5d3 |
children | 1bb59652d89c |
comparison
equal
deleted
inserted
replaced
429:c2e4759eddcb | 430:03ab374605a6 |
---|---|
59 } | 59 } |
60 for(SessionManager m:slaveSessionManagers) { | 60 for(SessionManager m:slaveSessionManagers) { |
61 startEditor(m); | 61 startEditor(m); |
62 } | 62 } |
63 editors[0].setCommand(editorStartCmds); | 63 editors[0].setCommand(editorStartCmds); |
64 new Thread(finishTest).start(); | |
64 } | 65 } |
65 } | 66 } |
66 ); | 67 ); |
67 } | 68 } |
68 | 69 |
150 * isSimulation=true thread base simulation for PathFinder | 151 * isSimulation=true thread base simulation for PathFinder |
151 * isSimulation=false socket based communication mode | 152 * isSimulation=false socket based communication mode |
152 */ | 153 */ |
153 REPServerSocketChannel.isSimulation = true; | 154 REPServerSocketChannel.isSimulation = true; |
154 // At least 3 TestEditors are required. | 155 // At least 3 TestEditors are required. |
155 TestInterManagerSession test = new TestInterManagerSession(1, 2, 3); | 156 final TestInterManagerSession test = new TestInterManagerSession(1, 2, 3); |
156 logger.setLogLevel(5); | 157 logger.setLogLevel(5); |
158 test.finishTest = new Runnable() { | |
159 public void run() { | |
160 test.finishTest(); | |
161 } | |
162 }; | |
157 test.startTest(); | 163 test.startTest(); |
158 } | 164 } |
159 | 165 |
160 | 166 |
161 } | 167 } |