218
|
1 package test.sematest;
|
|
2
|
229
|
3 import java.util.LinkedList;
|
218
|
4
|
|
5 import rep.REP;
|
|
6 import rep.REPCommand;
|
|
7
|
|
8 public class JoinTester extends Tester {
|
|
9
|
|
10 public JoinTester(String name, String _host, int _port) {
|
|
11 super(name, _host, _port);
|
|
12 }
|
|
13
|
229
|
14 public static void main(String[] args){
|
|
15
|
218
|
16 REPCommand command = new REPCommand();
|
|
17 command.setCMD(REP.SMCMD_JOIN);
|
229
|
18 LinkedList<REPCommand> commandList = new LinkedList<REPCommand>();
|
|
19 commandList.add(command);
|
218
|
20
|
229
|
21 Tester tester = new JoinTester("JoinTester", "localhost", 8766);
|
|
22 tester.setCommands(commandList);
|
218
|
23 tester.start();
|
|
24 }
|
|
25
|
|
26 }
|