File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/test/java/org/json/junit Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 32
32
import org .json .JSONString ;
33
33
import org .json .JSONTokener ;
34
34
import org .json .junit .data .MyJsonString ;
35
+ import org .junit .Ignore ;
35
36
import org .junit .Test ;
36
37
37
38
import com .jayway .jsonpath .Configuration ;
@@ -1384,14 +1385,15 @@ public void jsonArrayClearMethodTest() {
1384
1385
/**
1385
1386
* Tests for stack overflow. See https://github.com/stleary/JSON-java/issues/654
1386
1387
*/
1388
+ @ Ignore ("This test relies on system constraints and may not always pass. See: https://github.com/stleary/JSON-java/issues/821" )
1387
1389
@ Test (expected = JSONException .class )
1388
1390
public void issue654StackOverflowInputWellFormed () {
1389
1391
//String input = new String(java.util.Base64.getDecoder().decode(base64Bytes));
1390
1392
final InputStream resourceAsStream = JSONArrayTest .class .getClassLoader ().getResourceAsStream ("Issue654WellFormedArray.json" );
1391
1393
JSONTokener tokener = new JSONTokener (resourceAsStream );
1392
1394
JSONArray json_input = new JSONArray (tokener );
1393
1395
assertNotNull (json_input );
1394
- fail ("Excepected Exception." );
1396
+ fail ("Excepected Exception due to stack overflow ." );
1395
1397
Util .checkJSONArrayMaps (json_input );
1396
1398
}
1397
1399
Original file line number Diff line number Diff line change 55
55
import org .json .junit .data .Singleton ;
56
56
import org .json .junit .data .SingletonEnum ;
57
57
import org .json .junit .data .WeirdList ;
58
+ import org .junit .Ignore ;
58
59
import org .junit .Test ;
59
60
60
61
import com .jayway .jsonpath .Configuration ;
@@ -3665,14 +3666,15 @@ public void issue654IncorrectNestingNoKey2() {
3665
3666
/**
3666
3667
* Tests for stack overflow. See https://github.com/stleary/JSON-java/issues/654
3667
3668
*/
3669
+ @ Ignore ("This test relies on system constraints and may not always pass. See: https://github.com/stleary/JSON-java/issues/821" )
3668
3670
@ Test (expected = JSONException .class )
3669
3671
public void issue654StackOverflowInputWellFormed () {
3670
3672
//String input = new String(java.util.Base64.getDecoder().decode(base64Bytes));
3671
3673
final InputStream resourceAsStream = JSONObjectTest .class .getClassLoader ().getResourceAsStream ("Issue654WellFormedObject.json" );
3672
3674
JSONTokener tokener = new JSONTokener (resourceAsStream );
3673
3675
JSONObject json_input = new JSONObject (tokener );
3674
3676
assertNotNull (json_input );
3675
- fail ("Excepected Exception." );
3677
+ fail ("Excepected Exception due to stack overflow ." );
3676
3678
}
3677
3679
3678
3680
@ Test
You can’t perform that action at this time.
0 commit comments