@@ -8,7 +8,7 @@ public class ArgumentsTest {
8
8
@ Test
9
9
public void test1 () throws Exception {
10
10
String cmd = "`foo bar` far `bar \\ `foo`" ;
11
- CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ));
11
+ CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ), null );
12
12
assertNotNull (arg );
13
13
assertEquals ("foo bar" , arg .nextString ());
14
14
assertEquals ("far" , arg .nextString ());
@@ -18,7 +18,7 @@ public void test1() throws Exception {
18
18
@ Test
19
19
public void test2 () throws Exception {
20
20
String cmd = "key:33 a key:66 b key:13 `key2:a b c` `key 3:d e f`" ;
21
- CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ));
21
+ CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ), null );
22
22
assertNotNull (arg );
23
23
assertEquals ("key:33" , arg .nextString ());
24
24
assertEquals (66 , arg .argInt ("key" ));
@@ -34,7 +34,7 @@ public void test2() throws Exception {
34
34
@ Test
35
35
public void test3 () throws Exception {
36
36
String cmd = "t w key:`3` key2:`/co l u:miu_bug` ke3y:`12`" ;
37
- CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ));
37
+ CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ), null );
38
38
assertNotNull (arg );
39
39
assertEquals (3 , arg .argInt ("key" ));
40
40
assertEquals ("/co l u:miu_bug" , arg .argString ("key2" ));
@@ -51,14 +51,14 @@ public void test3() throws Exception {
51
51
@ Test
52
52
public void test4 () throws Exception {
53
53
String cmd = "key :`3`" ;
54
- CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ));
54
+ CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ), null );
55
55
assertNull (arg );
56
56
}
57
57
58
58
@ Test
59
59
public void test5 () throws Exception {
60
60
String cmd = "key: `3`" ;
61
- CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ));
61
+ CommandReceiver .Arguments arg = CommandReceiver .Arguments .parse (cmd .split (" " ), null );
62
62
assertNotNull (arg );
63
63
assertEquals ("key:" , arg .top ());
64
64
assertEquals ("" , arg .argString ("key" ));
0 commit comments