|
|||||||||||
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.archive.util.ArchiveUtilsTest
JUnit test suite for ArchiveUtils
Constructor Summary | |
ArchiveUtilsTest(java.lang.String testName)
Create a new ArchiveUtilsTest object |
Method Summary | |
static void |
main(java.lang.String[] argv)
run all the tests for ArchiveUtilsTest |
static junit.framework.Test |
suite()
return the suite of tests for ArchiveUtilsTest |
void |
testBad12Date()
check that parse12DigitDate doesn't accept a bad date |
void |
testBad14Date()
check that parse14DigitDate doesn't accept a bad date |
void |
testBad17Date()
check that parse12DigitDate doesn't accept a bad date |
void |
testByteArrayEquals()
check that byteArrayEquals() works |
void |
testDoubleToString()
test doubleToString() |
void |
testFormatBytesForDisplay()
|
void |
testGetXXDigitDate()
check the getXXDigitDate() methods produce valid dates |
void |
testGetXXDigitDateLong()
check that getXXDigitDate(long) does the right thing |
void |
testPadToInt()
check that padTo(int) works |
void |
testPadToString()
check that padTo(String) works |
void |
testParseXXDigitDate()
Check that parseXXDigitDate() works |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
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 ArchiveUtilsTest(java.lang.String testName)
testName
- the name of the testMethod Detail |
public static void main(java.lang.String[] argv)
argv
- the command line argumentspublic static junit.framework.Test suite()
public void testGetXXDigitDate()
public void testGetXXDigitDateLong()
public void testParseXXDigitDate() throws java.text.ParseException
java.text.ParseException
public void testBad12Date()
public void testBad14Date()
public void testBad17Date()
public void testPadToString()
public void testPadToInt()
public void testByteArrayEquals()
public void testDoubleToString()
public void testFormatBytesForDisplay()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |