# HG changeset patch # User pin # Date 1220149199 -32400 # Node ID 216d64cd5f3aba11ac7ff4675eb0148cde369acc # Parent 13e0520470dce81e412ec79b4afbb53f256b08a1 *** empty log message *** diff -r 13e0520470dc -r 216d64cd5f3a test/sematest/PutTester.java --- a/test/sematest/PutTester.java Sun Aug 31 10:59:34 2008 +0900 +++ b/test/sematest/PutTester.java Sun Aug 31 11:19:59 2008 +0900 @@ -4,6 +4,7 @@ import rep.REP; import rep.REPCommand; +import rep.channel.REPServerSocketChannel; import rep.channel.REPSocketChannel; public class PutTester extends Tester { @@ -14,7 +15,7 @@ @Override public void sendCommand(REPSocketChannel channel)throws IOException { - + REPCommand command = new REPCommand(); command.setCMD(REP.SMCMD_PUT); command.setString("put test"); diff -r 13e0520470dc -r 216d64cd5f3a test/sematest/TestSessionManager.java --- a/test/sematest/TestSessionManager.java Sun Aug 31 10:59:34 2008 +0900 +++ b/test/sematest/TestSessionManager.java Sun Aug 31 11:19:59 2008 +0900 @@ -1,7 +1,6 @@ package test.sematest; import java.io.IOException; -import java.util.ArrayList; import rep.SessionManager; import rep.channel.REPLogger; import rep.channel.REPServerSocketChannel; @@ -9,36 +8,15 @@ public class TestSessionManager { - private ArrayList editorList; - private int numberEditor; static public REPLogger logger = REPLogger.singleton(); public TestSessionManager(int sm, int ss, int e) { - editorList = new ArrayList(); - numberEditor = e; - } - - public static void main(String[] args){ - REPServerSocketChannel.isSimulation = false; - TestSessionManager test = new TestSessionManager(1, 0, 2); - logger.setLogLevel(5); - test.startTest(); } private void startTest() { - String host = "localhost"; int masterPort = 8766; String[] strs ={String.valueOf(masterPort), String.valueOf(masterPort)}; - startSessionManager(strs); - -// for (int i=0; i `"+packet+"\'", 1); + while(running){ + REPCommand packet = channel.read(); + ns.writeLog("gets return string==> `"+packet+"\'", 1); + if(packet.cmd == REP.SMCMD_QUIT){ + running = false; + } + } ns.writeLog("testEditor exits.", 1);