Source Code Cross Referenced for VBHTMLRendererTest.java in  » Code-Analyzer » pmd-4.2rc1 » test » net » sourceforge » pmd » renderers » 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 » Code Analyzer » pmd 4.2rc1 » test.net.sourceforge.pmd.renderers 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package test.net.sourceforge.pmd.renderers;
002:
003:        import net.sourceforge.pmd.PMD;
004:        import net.sourceforge.pmd.Report.ProcessingError;
005:        import net.sourceforge.pmd.renderers.AbstractRenderer;
006:        import net.sourceforge.pmd.renderers.VBHTMLRenderer;
007:
008:        public class VBHTMLRendererTest extends AbstractRendererTst {
009:
010:            public AbstractRenderer getRenderer() {
011:                return new VBHTMLRenderer();
012:            }
013:
014:            public String getExpected() {
015:                return "<html><head><title>PMD</title></head><style type=\"text/css\"><!--"
016:                        + PMD.EOL
017:                        + "body { background-color: white; font-family:verdana, arial, helvetica, geneva; font-size: 16px; font-style: italic; color: black; }"
018:                        + PMD.EOL
019:                        + ".title { font-family: verdana, arial, helvetica,geneva; font-size: 12px; font-weight:bold; color: white; }"
020:                        + PMD.EOL
021:                        + ".body { font-family: verdana, arial, helvetica, geneva; font-size: 12px; font-weight:plain; color: black; }"
022:                        + PMD.EOL
023:                        + "#TableHeader { background-color: #003366; }"
024:                        + PMD.EOL
025:                        + "#RowColor1 { background-color: #eeeeee; }"
026:                        + PMD.EOL
027:                        + "#RowColor2 { background-color: white; }"
028:                        + PMD.EOL
029:                        + "--></style><body><center><table border=\"0\" width=\"80%\"><tr id=TableHeader><td colspan=\"2\"><font class=title>&nbsp;n/a</font></tr>"
030:                        + PMD.EOL
031:                        + "<tr id=RowColor2><td width=\"50\" align=\"right\"><font class=body>1&nbsp;&nbsp;&nbsp;</font></td><td><font class=body>msg</font></td></tr>"
032:                        + PMD.EOL + "</table><br></center></body></html>";
033:            }
034:
035:            public String getExpectedEmpty() {
036:                return "<html><head><title>PMD</title></head><style type=\"text/css\"><!--"
037:                        + PMD.EOL
038:                        + "body { background-color: white; font-family:verdana, arial, helvetica, geneva; font-size: 16px; font-style: italic; color: black; }"
039:                        + PMD.EOL
040:                        + ".title { font-family: verdana, arial, helvetica,geneva; font-size: 12px; font-weight:bold; color: white; }"
041:                        + PMD.EOL
042:                        + ".body { font-family: verdana, arial, helvetica, geneva; font-size: 12px; font-weight:plain; color: black; }"
043:                        + PMD.EOL
044:                        + "#TableHeader { background-color: #003366; }"
045:                        + PMD.EOL
046:                        + "#RowColor1 { background-color: #eeeeee; }"
047:                        + PMD.EOL
048:                        + "#RowColor2 { background-color: white; }"
049:                        + PMD.EOL
050:                        + "--></style><body><center><br></center></body></html>";
051:            }
052:
053:            public String getExpectedMultiple() {
054:                return "<html><head><title>PMD</title></head><style type=\"text/css\"><!--"
055:                        + PMD.EOL
056:                        + "body { background-color: white; font-family:verdana, arial, helvetica, geneva; font-size: 16px; font-style: italic; color: black; }"
057:                        + PMD.EOL
058:                        + ".title { font-family: verdana, arial, helvetica,geneva; font-size: 12px; font-weight:bold; color: white; }"
059:                        + PMD.EOL
060:                        + ".body { font-family: verdana, arial, helvetica, geneva; font-size: 12px; font-weight:plain; color: black; }"
061:                        + PMD.EOL
062:                        + "#TableHeader { background-color: #003366; }"
063:                        + PMD.EOL
064:                        + "#RowColor1 { background-color: #eeeeee; }"
065:                        + PMD.EOL
066:                        + "#RowColor2 { background-color: white; }"
067:                        + PMD.EOL
068:                        + "--></style><body><center><table border=\"0\" width=\"80%\"><tr id=TableHeader><td colspan=\"2\"><font class=title>&nbsp;n/a</font></tr>"
069:                        + PMD.EOL
070:                        + "<tr id=RowColor2><td width=\"50\" align=\"right\"><font class=body>1&nbsp;&nbsp;&nbsp;</font></td><td><font class=body>msg</font></td></tr>"
071:                        + PMD.EOL
072:                        + "<tr id=RowColor1><td width=\"50\" align=\"right\"><font class=body>1&nbsp;&nbsp;&nbsp;</font></td><td><font class=body>msg</font></td></tr>"
073:                        + PMD.EOL + "</table><br></center></body></html>";
074:            }
075:
076:            public String getExpectedError(ProcessingError error) {
077:                return "<html><head><title>PMD</title></head><style type=\"text/css\"><!--"
078:                        + PMD.EOL
079:                        + "body { background-color: white; font-family:verdana, arial, helvetica, geneva; font-size: 16px; font-style: italic; color: black; }"
080:                        + PMD.EOL
081:                        + ".title { font-family: verdana, arial, helvetica,geneva; font-size: 12px; font-weight:bold; color: white; }"
082:                        + PMD.EOL
083:                        + ".body { font-family: verdana, arial, helvetica, geneva; font-size: 12px; font-weight:plain; color: black; }"
084:                        + PMD.EOL
085:                        + "#TableHeader { background-color: #003366; }"
086:                        + PMD.EOL
087:                        + "#RowColor1 { background-color: #eeeeee; }"
088:                        + PMD.EOL
089:                        + "#RowColor2 { background-color: white; }"
090:                        + PMD.EOL
091:                        + "--></style><body><center><br><table border=\"0\" width=\"80%\"><tr id=TableHeader><td><font class=title>&nbsp;Problems found</font></td></tr><tr id=RowColor2><td><font class=body>"
092:                        + error
093:                        + "\"</font></td></tr></table></center></body></html>";
094:            }
095:
096:            public static junit.framework.Test suite() {
097:                return new junit.framework.JUnit4TestAdapter(
098:                        VBHTMLRendererTest.class);
099:            }
100:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.