1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package snifos.common.test;
21
22
23 /***
24 * This interface contains requests and reponses used by dummy implementations
25 * of application and communication module.
26 * @version $Id: DummyMessages.java,v 1.2 2004/05/08 21:55:31 mwerla Exp $
27 */
28 public interface DummyMessages {
29 /*** Dummy client requests */
30 public static final String[] requests = {
31 "<message type=\"hello\" id=\"1\">" + "<mod-type>player</mod-type>" +
32 "<name>Wymiatacz</name>" + "</message>",
33
34 "<message type=\"confirmation\" id=\"2\">" + "<accepted/>" +
35 "</message>"
36 };
37
38 /*** Dummy application responses */
39 public static final String[] responses = {
40 "<message type=\"confirmation\" id=\"1\">" + "<accepted/>" +
41 "</message>",
42
43 "<message type=\"params\" id=\"2\">" +
44 "<map width=\"10\" height=\"8\" goal=\"2\"/>" +
45 "<attack side=\"1\" begin=\"true\"/>" + "</message>"
46 };
47 }