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 PutTester extends Tester {
|
|
9
|
|
10 public PutTester(String name, String _host, int _port) {
|
|
11 super(name, _host, _port);
|
|
12 REPCommand command = new REPCommand();
|
|
13 command.setCMD(REP.SMCMD_PUT);
|
227
|
14 command.setString("PutTest.txt");
|
231
|
15 LinkedList<REPCommand> commands = new LinkedList<REPCommand>();
|
|
16 commands.add(command);
|
242
|
17 setCommands(commands);
|
|
18 }
|
|
19
|
|
20 public static void main(String[] args){
|
229
|
21 Tester tester = new PutTester("PutTester", "localhost", 8766);
|
218
|
22 tester.start();
|
|
23 }
|
|
24
|
|
25 }
|