File tree 1 file changed +8
-1
lines changed
src/test/java/io/socket/parser
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
package io .socket .parser ;
2
2
3
+ import java .util .logging .Level ;
4
+ import java .util .logging .Logger ;
5
+
3
6
import org .json .JSONArray ;
4
7
import org .json .JSONException ;
5
8
import org .junit .Test ;
@@ -49,6 +52,9 @@ public void encodeAck() throws JSONException {
49
52
50
53
@ Test
51
54
public void decodeInError () throws JSONException {
55
+ Logger logger = Logger .getLogger (IOParser .class .getName ());
56
+ Level tmpLevel = logger .getLevel ();
57
+ logger .setLevel (Level .SEVERE );
52
58
// Random string
53
59
Helpers .testDecodeError ("asdf" );
54
60
// Unknown type
@@ -62,9 +68,10 @@ public void decodeInError() throws JSONException {
62
68
// event non numeric id
63
69
Helpers .testDecodeError (Parser .EVENT + "2sd" );
64
70
// event with invalid json data
65
- Helpers .testDecodeError (Parser .EVENT + "2[\" a\" ,1,{asdf}]" );
66
71
Helpers .testDecodeError (Parser .EVENT + "2{}" );
67
72
Helpers .testDecodeError (Parser .EVENT + "2[]" );
68
73
Helpers .testDecodeError (Parser .EVENT + "2[null]" );
74
+ Helpers .testDecodeError (Parser .EVENT + "2[\" a\" ,1,{asdf}]" );
75
+ logger .setLevel (tmpLevel );
69
76
}
70
77
}
You can’t perform that action at this time.
0 commit comments