| de.susebox.jtopas.TestStandardTokenizer
TestStandardTokenizer | public class TestStandardTokenizer extends TestCase (Code) | |
This test suite works with a test configuration file. This file contains some
sets of properties, each set for one or more different test runs.
The properties are defined as class constants. In the configuration file, a
property consists of the property name and a number identifying the property
set.
See Also: Tokenizer See Also: AbstractTokenizer See Also: java.io.InputStreamReader author: Heiko Blau |
Method Summary | |
public static void | main(String[] args) | protected void | setUp() Sets up the fixture, for example, open a network connection. | public static Test | suite() Implementation of the JUnit method suite . | protected void | tearDown() Tears down the fixture, for example, close a network connection. | public void | testContentsFormatting() Advanced contents extracting. | public void | testContentsParsing() Extracting the pure contents of a HTML stream. | public void | testLineCounting() Testing the line and column counting correctness. | public void | testLinkParsing() |
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.
|
testContentsFormatting | public void testContentsFormatting() throws Throwable(Code) | | Advanced contents extracting. Lines will be around 80 characters, a basic
paragraph recognition takes place.
|
testContentsParsing | public void testContentsParsing() throws Throwable(Code) | | Extracting the pure contents of a HTML stream.
|
testLineCounting | public void testLineCounting() throws Throwable(Code) | | Testing the line and column counting correctness. This is done by using a
specially formatted file. At a line x and a column y, the method expects
the token "x/y", e.g. "0/0" at the very beginning of the file.
|
|
|