Mercurial > hg > RemoteEditor > REPSessionManager
diff test/sematest/TestSessionManager.java @ 292:975383c0548e
*** empty log message ***
author | kono |
---|---|
date | Mon, 29 Sep 2008 06:45:40 +0900 |
parents | 9e162e0a114f |
children | 51419ad73785 |
line wrap: on
line diff
--- a/test/sematest/TestSessionManager.java Mon Sep 29 06:34:13 2008 +0900 +++ b/test/sematest/TestSessionManager.java Mon Sep 29 06:45:40 2008 +0900 @@ -17,6 +17,8 @@ SessionManager slaveSessionManagers[]; TestEditor editors[]; + int editorPort[] = {masterPort,masterPort}; + boolean editorMaster[] = {true,false}; SessionManagerEvent ev1[] = { new SessionManagerEvent() { // executed before first select(); @@ -24,10 +26,12 @@ for(TestEditor editor:editors) { editor.start(); } + int i = sessionManagers.length; + for(SessionManager slave:slaveSessionManagers) { + i = startSessionManager(slave,i,masterPort + i); + } } }}; - int editorPort[] = {masterPort,masterPort}; - boolean editorMaster[] = {true,false}; public TestSessionManager(int sm, int ss, int e) { sessionManagers = new SessionManager[sm]; @@ -77,9 +81,6 @@ for(SessionManager master:sessionManagers) { i = startSessionManager(master,i, masterPort + i); } - for(SessionManager slave:slaveSessionManagers) { - i = startSessionManager(slave,i,masterPort + i); - } }