|
1 | 1 | @echo off |
2 | 2 |
|
| 3 | +:: Create a message, write something into it and read the content |
3 | 4 | java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 0 -n Test -d 2 |
4 | 5 | java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 1 -n Test -d 2 -c bla |
5 | | -java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test -d 2 |
6 | | -:: Create duplicate message |
| 6 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test |
| 7 | +echo. |
| 8 | + |
| 9 | +:: Set a different content and read it |
| 10 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 1 -n Test -d 2 -c "Something completely different!" |
| 11 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test |
| 12 | +echo. |
| 13 | + |
| 14 | +:: Create a duplicate message |
7 | 15 | java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 0 -n Test -d 2 |
| 16 | +echo. |
8 | 17 |
|
| 18 | +::Read a not existing messages |
| 19 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n test |
| 20 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test2 |
| 21 | +echo. |
9 | 22 |
|
10 | | -java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test |
11 | | -java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Moron |
| 23 | +:: Clear a not existing message |
| 24 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 2 -n Test |
| 25 | +echo. |
12 | 26 |
|
13 | 27 | :: Clear message and read the content |
14 | 28 | java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 2 -n Test |
15 | 29 | java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test |
| 30 | +echo. |
16 | 31 |
|
| 32 | +:: Delete the message |
| 33 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 5 -n Test |
| 34 | +echo. |
17 | 35 |
|
| 36 | +:: Delete the message a second time |
18 | 37 | java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 5 -n Test |
| 38 | +echo. |
| 39 | + |
| 40 | +:: Read the deleted message |
| 41 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 3 -n Test |
| 42 | +echo. |
| 43 | + |
| 44 | +:: Use an unknown method |
| 45 | +java -jar sampling-message-client/target/sampling-message-client-0.1-jar-with-dependencies.jar -p 8080 -a 127.0.0.1 -m 6 -n Test |
| 46 | +echo. |
0 commit comments