|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.davesag.generica.test.StructureTest
StructureTest is collection of all of the tests on fundamental,
structural parts of the code. It also provides handy reminders of the things
i often forget exactly how to do.
| Constructor Summary | |
StructureTest()
null constructor |
|
StructureTest(String name)
Constructor that takes a test name. |
|
| Method Summary | |
static Test |
suite()
suite of tests |
void |
testArraysEqual()
just test that we can compare two arrays okay |
void |
testDateFormats()
tests that we can parse dates and times |
void |
testLeftSubstring()
tests that given a string "1,2" we can extract the substring"1". |
void |
testMapOverride()
tests that if you overrode one map with another the elements are overwritten. |
void |
testRightSubstring()
tests that given a string "1,2" we can extract the substring"2". |
void |
testUUIDGeneration()
Tests that we can create as many unique user ids as memory will allow and it won't ever repeat. |
String |
toString()
test name |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown |
| Methods inherited from class junit.framework.Assert |
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, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StructureTest()
public StructureTest(String name)
name - the name of this suite of tests| Method Detail |
public void testLeftSubstring()
public void testRightSubstring()
public void testArraysEqual()
public void testDateFormats()
public void testMapOverride()
public void testUUIDGeneration()
public static Test suite()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||