public class Tester extends Object
| Constructor and Description | 
|---|
| Tester() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | assertEquals(int i1,
            int i2)Tests integer equality. | 
| static void | assertEquals(Object o1,
            Object o2)Tests object equality. | 
| static void | assertTrue(boolean test)Tests an assertion. | 
| static void | fail()Fails a test. | 
public static void fail()
                 throws TestException
TextException - alwaysTestExceptionpublic static void assertTrue(boolean test)
                       throws TestException
test - asserted conditionTestException - if test  is falsepublic static void assertEquals(Object o1, Object o2) throws TestException
o1 - object 1o2 - object 2TestException - unless o1 and o2
          are both null or are equal in the sense of
          Object.equals(java.lang.Object)public static void assertEquals(int i1,
                                int i2)
                         throws TestException
i1 - integer 1i2 - integer 2TestException - iff i1 != i2Copyright © 2008–2024. All rights reserved.