Java Doc for TestDifficultSituations.java in  » Parser » JTopas » de » susebox » jtopas » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » JTopas » de.susebox.jtopas 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.susebox.jtopas.TestDifficultSituations

TestDifficultSituations
public class TestDifficultSituations extends TestCase (Code)

The class contains a number of test cases that are supposed to be difficult to handle for a Tokenizer , e.g. EOF conditions inside strings etc.


See Also:   Tokenizer
See Also:   StandardTokenizer
See Also:   StandardTokenizerProperties
author:
   Heiko Blau



Constructor Summary
public  TestDifficultSituations(String test, Class sourceClass)
     Default constructor.

Method Summary
public static  voidmain(String[] args)
    
protected  voidsetUp()
     Sets up the fixture, for example, open a network connection.
public static  Testsuite()
     Implementation of the JUnit method suite.
protected  voidtearDown()
     Tears down the fixture, for example, close a network connection.
public  voidtestDOSEOL()
    
public  voidtestEOFInBlockComment()
     Test the case, when a block comment is not terminated.
public  voidtestEOFInLineComment()
     Test the case, when a line comment is not terminated by a newline character.
public  voidtestEOFInString()
     Test the case, when a block comment is not terminated.
public  voidtestEmptySource()
     Test the case of an completely empty data source.
public  voidtestLineCounting()
    
public  voidtestMACEOL()
    
public  voidtestNestedComments()
     Test nested comments.
public  voidtestNonASCIICharacters()
     Test similar special sequences.
public  voidtestReaderSwitching()
    
public  voidtestSequencesAndSeparators()
    
public  voidtestSimilarSpecialSequences()
     Test similar special sequences.
public  voidtestSmallSource()
     Test small sources.
public  voidtestSpecialCalls()
     Test various calls to methods with a special contract.
public  voidtestStringEscapes1()
     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.
public  voidtestStringEscapes2()
     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.
public  voidtestUncommonWhitespaces()
     Test the uncommon whitespaces.
public  voidtestWhitespaceHandling()
    


Constructor Detail
TestDifficultSituations
public TestDifficultSituations(String test, Class sourceClass)(Code)
Default constructor. Standard input java.lang.System.in is used to construct the input stream reader.




Method Detail
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



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.