21 public static void assertEquals(
int val,
int val2, String message )
throws AssertFailException{
23 throw new AssertFailException(
"FAIL: " + message);
26 public static void assertEquals(
boolean val,
boolean val2, String message )
throws AssertFailException{
28 throw new AssertFailException(
"FAIL: " + message);
30 System.out.println(
"PASS: " + message);
33 public static void assertEquals( String val, String val2, String message )
throws AssertFailException{
34 if( !val.equals(val2) )
35 throw new AssertFailException(
"FAIL: " + message);
37 System.out.println(
"PASS: " + message);
40 public static class AssertFailException
extends Exception {
41 public AssertFailException(String message) {
Base class for all exceptions thrown by the library.
static void assertEquals(int val, int val2, String message)
static void assertEquals(String val, String val2, String message)
static void assertEquals(boolean val, boolean val2, String message)