Package wsh.util.test
Class AlmostTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- wsh.util.test.AlmostTest
-
- All Implemented Interfaces:
junit.framework.Test
public class AlmostTest extends junit.framework.TestCaseWrap another class Almost for junit testing. (junit.jar must be in CLASSPATH)
-
-
Constructor Summary
Constructors Constructor Description AlmostTest(java.lang.String name)Standard constructor calls TestCase(name) constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Run all tests with text gui if this class main is invokedprotected voidsetUp()static junit.framework.Testsuite()This automatically generates a suite of all "test" methodsprotected voidtearDown()voidtestAlmostObjectMethod()test Object methodsvoidtestEverything()Run some test code.voidtestHashCode()test the hash code algorithmvoidtestNaNs()test handling of nans-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
testEverything
public void testEverything()
Run some test code. Any "public void test*()" method starting with "test" will be used
-
testHashCode
public void testHashCode()
test the hash code algorithm
-
testNaNs
public void testNaNs()
test handling of nans
-
testAlmostObjectMethod
public void testAlmostObjectMethod()
test Object methods
-
setUp
protected void setUp() throws java.lang.Exception- Overrides:
setUpin classjunit.framework.TestCase- Throws:
java.lang.Exception
-
tearDown
protected void tearDown() throws java.lang.Exception- Overrides:
tearDownin classjunit.framework.TestCase- Throws:
java.lang.Exception
-
suite
public static junit.framework.Test suite()
This automatically generates a suite of all "test" methods- Returns:
- new Test
-
main
public static void main(java.lang.String[] args)
Run all tests with text gui if this class main is invoked- Parameters:
args- command line
-
-