You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2015/11/08 19:54:02 UTC
svn commit: r1713280 -
/sling/trunk/bundles/commons/json/src/test/java/org/apache/sling/commons/json/util/ValidatorTest.java
Author: olli
Date: Sun Nov 8 18:54:01 2015
New Revision: 1713280
URL: http://svn.apache.org/viewvc?rev=1713280&view=rev
Log:
SLING-5276 Validator.validate throws StackOverflowError
add test (but ignore until fixed)
Modified:
sling/trunk/bundles/commons/json/src/test/java/org/apache/sling/commons/json/util/ValidatorTest.java
Modified: sling/trunk/bundles/commons/json/src/test/java/org/apache/sling/commons/json/util/ValidatorTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/json/src/test/java/org/apache/sling/commons/json/util/ValidatorTest.java?rev=1713280&r1=1713279&r2=1713280&view=diff
==============================================================================
--- sling/trunk/bundles/commons/json/src/test/java/org/apache/sling/commons/json/util/ValidatorTest.java (original)
+++ sling/trunk/bundles/commons/json/src/test/java/org/apache/sling/commons/json/util/ValidatorTest.java Sun Nov 8 18:54:01 2015
@@ -17,6 +17,7 @@
package org.apache.sling.commons.json.util;
import org.apache.sling.commons.json.JSONException;
+import org.junit.Ignore;
import org.junit.Test;
/**
@@ -115,4 +116,10 @@ public class ValidatorTest {
//------------------invalid ^
}
+ @Test(expected=JSONException.class)
+ @Ignore
+ public void testSLING_5276() throws JSONException {
+ Validator.validate("[");
+ }
+
}