private void checkExpected() { for ( int anExpected : expected ) { if ( anExpected != 0 ) { fail( "Expected error: " + ParseException.errorCodeName( anExpected ) + " but it did not occur." ); } } }
private void checkExpected() { for ( int anExpected : expected ) { if ( anExpected != 0 ) { fail( "Expected error: " + ParseException.errorCodeName( anExpected ) + " but it did not occur." ); } } }
@Override void onError(int level, int id) { Integer err = new Integer(id); found.add(err); errorCnt[level]++; if (expected != null) { if (!expected.contains(err)) super.onError(level, id); } else if (inDevelopment) { System.err.println( "<rdf:Description rdf:about='" + testID.getURI() + "'>\n" + "<jjc:error rdf:resource='" + jjcNS + ParseException.errorCodeName(id) + "'/>\n</rdf:Description>"); } } }
@Override void onError(int level, int id) { Integer err = new Integer(id); found.add(err); errorCnt[level]++; if (expected != null) { if (!expected.contains(err)) super.onError(level, id); } else if (inDevelopment) { System.err.println( "<rdf:Description rdf:about='" + testID.getURI() + "'>\n" + "<jjc:error rdf:resource='" + jjcNS + ParseException.errorCodeName(id) + "'/>\n</rdf:Description>"); } } }
void onError(int level, int num) { String msg = "Parser reports unexpected " + errorLevelName[level] + ": " + ParseException.errorCodeName(num); println(msg); fail(msg); } }
void onError(int level, int num) { String msg = "Parser reports unexpected " + errorLevelName[level] + ": " + ParseException.errorCodeName(num); println(msg); fail(msg); } }
void onError(int level, int num) { for (int i = 0; i < expected.length; i++) if (expected[i] == num) { expected[i] = 0; return; } String msg = "Parser reports unexpected " + WGTestSuite.errorLevelName[level] + ": " + ParseException.errorCodeName(num); println(msg); fail(msg); }
void onError(int level, int num) { String msg = "Parser reports unexpected " + errorLevelName[level] + ": " + ParseException.errorCodeName(num); println(msg); fail(msg); } }
void onError(int level, int num) { String msg = "Parser reports unexpected " + errorLevelName[level] + ": " + ParseException.errorCodeName(num); println(msg); fail(msg); } }
void onError(int level, int num) { for (int i = 0; i < expected.length; i++) if (expected[i] == num) { expected[i] = 0; return; } String msg = "Parser reports unexpected " + WGTestSuite.errorLevelName[level] + ": " + ParseException.errorCodeName(num); println(msg); fail(msg); }
String msg = "Expected error " + ParseException.errorCodeName(eCode) + ", was not detected."; if (errorCnt[2] == 0) { fail( "Detected error " + ParseException.errorCodeName( it.next().intValue()) + ", was not expected.");
String msg = "Expected error " + ParseException.errorCodeName(eCode) + ", was not detected."; if (errorCnt[2] == 0) { fail( "Detected error " + ParseException.errorCodeName( it.next().intValue()) + ", was not expected.");
String msg = "Expected error " + ParseException.errorCodeName(eCode) + ", was not detected."; if (errorCnt[2] == 0) fail( "Detected error " + ParseException.errorCodeName( it.next().intValue()) + ", was not expected.");
String msg = "Expected error " + ParseException.errorCodeName(eCode) + ", was not detected."; if (errorCnt[2] == 0) fail( "Detected error " + ParseException.errorCodeName( it.next().intValue()) + ", was not expected.");