| |
|
| org.archive.util.PaddingStringBufferTest
PaddingStringBufferTest | public class PaddingStringBufferTest extends TestCase (Code) | | JUnit test suite for PaddingStringBuffer
author: James Casey version: $Id: PaddingStringBufferTest.java 4644 2006-09-20 22:40:21Z paul_jack $ |
PaddingStringBufferTest | public PaddingStringBufferTest(String testName)(Code) | | Create a new PaddingStringBufferTest object
Parameters: testName - the name of the test |
main | public static void main(String argv)(Code) | | run all the tests for PaddingStringBufferTest
Parameters: argv - the command line arguments |
setUp | public void setUp()(Code) | | |
suite | public static Test suite()(Code) | | return the suite of tests for PaddingStringBufferTest
the suite of test |
testAppendInt | public void testAppendInt()(Code) | | check that append(int) works
|
testAppendLong | public void testAppendLong()(Code) | | check that append(long) works
|
testAppendString | public void testAppendString()(Code) | | test that append(String) works correctly
|
testNewline | public void testNewline()(Code) | | test the newline()
|
testPadTo | public void testPadTo()(Code) | | first check that padTo works ok, since all depends on it
|
testRaAppend | public void testRaAppend()(Code) | | test the raAppend(String) works in the simple cases
|
testRaAppendInt | public void testRaAppendInt()(Code) | | check that raAppend(int) works
|
testRaAppendLong | public void testRaAppendLong()(Code) | | check that raAppend(long) works
|
testRaAppendWithExactLengthString | public void testRaAppendWithExactLengthString()(Code) | | check it all works with the length == the length of the string
|
testRaAppendWithTooLongString | public void testRaAppendWithTooLongString()(Code) | | check what happens when we right append, but the string is longer
than the space
|
testReset | public void testReset()(Code) | | check the reset method clears the buffer
|
|
|
|