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