org.archive.util
Class ArchiveUtilsTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.archive.util.ArchiveUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class ArchiveUtilsTest
extends junit.framework.TestCase

JUnit test suite for ArchiveUtils

Version:
$Id: ArchiveUtilsTest.java,v 1.7 2004/05/28 22:33:09 stack-sf Exp $
Author:
James Casey

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

ArchiveUtilsTest

public ArchiveUtilsTest(java.lang.String testName)
Create a new ArchiveUtilsTest object

Parameters:
testName - the name of the test
Method Detail

main

public static void main(java.lang.String[] argv)
run all the tests for ArchiveUtilsTest

Parameters:
argv - the command line arguments

suite

public static junit.framework.Test suite()
return the suite of tests for ArchiveUtilsTest

Returns:
the suite of test

testGetXXDigitDate

public void testGetXXDigitDate()
check the getXXDigitDate() methods produce valid dates


testGetXXDigitDateLong

public void testGetXXDigitDateLong()
check that getXXDigitDate(long) does the right thing


testParseXXDigitDate

public void testParseXXDigitDate()
                          throws java.text.ParseException
Check that parseXXDigitDate() works

Throws:
java.text.ParseException

testBad12Date

public void testBad12Date()
check that parse12DigitDate doesn't accept a bad date


testBad14Date

public void testBad14Date()
check that parse14DigitDate doesn't accept a bad date


testBad17Date

public void testBad17Date()
check that parse12DigitDate doesn't accept a bad date


testPadToString

public void testPadToString()
check that padTo(String) works


testPadToInt

public void testPadToInt()
check that padTo(int) works


testByteArrayEquals

public void testByteArrayEquals()
check that byteArrayEquals() works


testDoubleToString

public void testDoubleToString()
test doubleToString()


testFormatBytesForDisplay

public void testFormatBytesForDisplay()


Copyright © 2003-2005 Internet Archive. All Rights Reserved.