|
|||||||||||
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.PaddingStringBufferTest
JUnit test suite for PaddingStringBuffer
Constructor Summary | |
PaddingStringBufferTest(java.lang.String testName)
Create a new PaddingStringBufferTest object |
Method Summary | |
static void |
main(java.lang.String[] argv)
run all the tests for PaddingStringBufferTest |
void |
setUp()
|
static junit.framework.Test |
suite()
return the suite of tests for PaddingStringBufferTest |
void |
testAppendInt()
check that append(int) works |
void |
testAppendLong()
check that append(long) works |
void |
testAppendString()
test that append(String) works correctly |
void |
testNewline()
test the newline() |
void |
testPadTo()
first check that padTo works ok, since all depends on it |
void |
testRaAppend()
test the raAppend(String) works in the simple cases |
void |
testRaAppendInt()
check that raAppend(int) works |
void |
testRaAppendLong()
check that raAppend(long) works |
void |
testRaAppendWithExactLengthString()
check it all works with the length == the length of the string |
void |
testRaAppendWithTooLongString()
check what happens when we right append, but the string is longer than the space |
void |
testReset()
check the reset method clears the buffer |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 PaddingStringBufferTest(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 setUp()
public void testPadTo()
public void testAppendString()
public void testReset()
public void testRaAppend()
public void testNewline()
public void testRaAppendWithTooLongString()
public void testRaAppendWithExactLengthString()
public void testAppendInt()
public void testRaAppendInt()
public void testAppendLong()
public void testRaAppendLong()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |