Package org.astrogrid.samp.test
Class Tester
- java.lang.Object
-
- org.astrogrid.samp.test.Tester
-
- Direct Known Subclasses:
Calculator,HubTester
public class Tester extends java.lang.ObjectNo-frills test case superclass.- Since:
- 18 Jul 2008
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description Tester()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertEquals(int i1, int i2)Tests integer equality.static voidassertEquals(java.lang.Object o1, java.lang.Object o2)Tests object equality.static voidassertTrue(boolean test)Tests an assertion.static voidfail()Fails a test.
-
-
-
Method Detail
-
fail
public static void fail() throws TestExceptionFails a test.- Throws:
TextException- alwaysTestException
-
assertTrue
public static void assertTrue(boolean test) throws TestExceptionTests an assertion.- Parameters:
test- asserted condition- Throws:
TestException- iftestis false
-
assertEquals
public static void assertEquals(java.lang.Object o1, java.lang.Object o2) throws TestExceptionTests object equality.- Parameters:
o1- object 1o2- object 2- Throws:
TestException- unlesso1ando2are bothnullor are equal in the sense ofObject.equals(java.lang.Object)
-
assertEquals
public static void assertEquals(int i1, int i2) throws TestExceptionTests integer equality.- Parameters:
i1- integer 1i2- integer 2- Throws:
TestException- iffi1!=i2
-
-