annotate test/sematest/JoinTester.java @ 229:f816e0cbe6fd

*** empty log message ***
author pin
date Sun, 31 Aug 2008 17:08:55 +0900 (2008-08-31)
parents 827c439d0da4
children b837feb00132
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
1 package test.sematest;
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
2
229
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
3 import java.util.LinkedList;
218
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
4
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
5 import rep.REP;
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
6 import rep.REPCommand;
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
7
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
8 public class JoinTester extends Tester {
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
9
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
10 public JoinTester(String name, String _host, int _port) {
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
11 super(name, _host, _port);
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
12 }
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
13
229
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
14 public static void main(String[] args){
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
15
218
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
16 REPCommand command = new REPCommand();
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
17 command.setCMD(REP.SMCMD_JOIN);
229
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
18 LinkedList<REPCommand> commandList = new LinkedList<REPCommand>();
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
19 commandList.add(command);
218
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
20
229
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
21 Tester tester = new JoinTester("JoinTester", "localhost", 8766);
f816e0cbe6fd *** empty log message ***
pin
parents: 218
diff changeset
22 tester.setCommands(commandList);
218
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
23 tester.start();
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
24 }
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
25
827c439d0da4 *** empty log message ***
pin
parents:
diff changeset
26 }