| de.susebox.jtopas.TestDifficultSituations
TestDifficultSituations | public TestDifficultSituations(String test, Class sourceClass)(Code) | | Default constructor. Standard input
java.lang.System.in is used
to construct the input stream reader.
|
main | public static void main(String[] args)(Code) | | call this method to invoke the tests
|
setUp | protected void setUp() throws Exception(Code) | | Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
|
suite | public static Test suite()(Code) | | Implementation of the JUnit method suite . For each set of test
properties one or more tests are instantiated.
a test suite |
tearDown | protected void tearDown() throws Exception(Code) | | Tears down the fixture, for example, close a network connection.
This method is called after a test is executed.
|
testDOSEOL | public void testDOSEOL() throws Throwable(Code) | | Line counting and line comments in DOS files
|
testEOFInBlockComment | public void testEOFInBlockComment() throws Throwable(Code) | | Test the case, when a block comment is not terminated. That means EOF
occurs unexpectedly in a block comment.
|
testEOFInLineComment | public void testEOFInLineComment() throws Throwable(Code) | | Test the case, when a line comment is not terminated by a newline character.
This happens when the last line of a file is a line comment without a
newline on its end.
This is a rather common situation.
|
testEOFInString | public void testEOFInString() throws Throwable(Code) | | Test the case, when a block comment is not terminated. That means EOF
occurs unexpectedly in a block comment.
|
testEmptySource | public void testEmptySource() throws Throwable(Code) | | Test the case of an completely empty data source. This is always a good
candidate for failures :-)
|
testLineCounting | public void testLineCounting() throws Throwable(Code) | | Line counting with setReadPosition
|
testMACEOL | public void testMACEOL() throws Throwable(Code) | | Line counting and line comments in MAC files
|
testNestedComments | public void testNestedComments() throws Throwable(Code) | | Test nested comments.
|
testNonASCIICharacters | public void testNonASCIICharacters() throws Throwable(Code) | | Test similar special sequences.
|
testReaderSwitching | public void testReaderSwitching() throws Throwable(Code) | | Test reader switching
|
testSequencesAndSeparators | public void testSequencesAndSeparators() throws Throwable(Code) | | Check mixed special sequences and separators
|
testSimilarSpecialSequences | public void testSimilarSpecialSequences() throws Throwable(Code) | | Test similar special sequences.
|
testSmallSource | public void testSmallSource() throws Throwable(Code) | | Test small sources.
|
testSpecialCalls | public void testSpecialCalls() throws Throwable(Code) | | Test various calls to methods with a special contract.
|
testStringEscapes1 | public void testStringEscapes1() throws Throwable(Code) | | Test various situations of string escapes, if the escape character is the
backslash (not equal to the string character).
This test takes a number of lines each with a string including escapes in
it. It passes if the right number of strings is returned and also the line
counting is ok.
|
testStringEscapes2 | public void testStringEscapes2() throws Throwable(Code) | | Test various situations of string escapes, if the escape character is equal
to the string character).
This test takes a number of lines each with a string including escapes in
it. It passes if the right number of strings is returned and also the line
counting is ok.
|
testUncommonWhitespaces | public void testUncommonWhitespaces() throws Throwable(Code) | | Test the uncommon whitespaces. Note that the \r\n-combination is only treated
as one newline only, if both characters fall into one token.
|
testWhitespaceHandling | public void testWhitespaceHandling() throws Throwable(Code) | | Test the various whitespace flags
|
|
|