APISonar


org.ofbiz.base.json.JSON.JSON

> org > ofbiz > base > json > JSON > JSON
org APIs ofbiz APIs base APIs json APIs JSON APIs JSON APIs

Example 1
protected void doWhitespaceExceptionTest(String s, int column) {
        ParseException caught = null;
        try {
            new JSON(new StringReader(s)).JSONValue();
        } catch (ParseException e) {
            caught = e;
        } finally {
            assertNotNull("caught exception", caught);
            assertNotNull("next token(" + s + ")", caught.currentToken);
            Token next = caught.currentToken.next;
            assertEquals("next token(" + s + ") is eof", 0, next.kind);
            assertEquals("begin line(" + s + ")", 1, next.beginLine);
            assertEquals("begin column(" + s + ")", column, next.beginColumn);
        }
    }