psdi.util.unittest

Class HTMLTest

  • java.lang.Object
    • junit.framework.Assert
      • junit.framework.TestCase
        • psdi.util.unittest.HTMLTest
  • All Implemented Interfaces:
    junit.framework.Test


    public class HTMLTest
    extends junit.framework.TestCase
    • Constructor Detail

      • HTMLTest

        public HTMLTest()
    • Method Detail

      • testNullAndZeroLength

        public void testNullAndZeroLength()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNonEscapeForJavascriptQuotes

        public void testNonEscapeForJavascriptQuotes()
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEscapeForHtmlAttribute

        public void testEscapeForHtmlAttribute()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEscapeForJSandHtmlAttribute

        public void testEscapeForJSandHtmlAttribute()
                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSpecialCharText

        public void testSpecialCharText()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testWhitespaceText

        public void testWhitespaceText()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSpecialCharHtml

        public void testSpecialCharHtml()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNewlinesText

        public void testNewlinesText()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNewlinesHtml

        public void testNewlinesHtml()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEntityRefText

        public void testEntityRefText()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEntityRefHtml

        public void testEntityRefHtml()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnknownEntityRefText

        public void testUnknownEntityRefText()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMalformedEntityRefText

        public void testMalformedEntityRefText()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testURLsText

        public void testURLsText()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testURLsWhitespaceText

        public void testURLsWhitespaceText()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testURLsSpecialChar

        public void testURLsSpecialChar()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNegativeURLsText

        public void testNegativeURLsText()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnknownEntityRefHtml

        public void testUnknownEntityRefHtml()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnterminatedEntityRefHtml

        public void testUnterminatedEntityRefHtml()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnterminatedRunonEntityRefHtml

        public void testUnterminatedRunonEntityRefHtml()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnterminatedLongEntityRefHtml

        public void testUnterminatedLongEntityRefHtml()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeSpecialCharatersInValue

        public void testAttributeSpecialCharatersInValue()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeWhitespace

        public void testAttributeWhitespace()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeQuotes

        public void testAttributeQuotes()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeUnquoted

        public void testAttributeUnquoted()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeNoValue

        public void testAttributeNoValue()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeUnendedTag

        public void testAttributeUnendedTag()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAttributeComplex

        public void testAttributeComplex()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTags

        public void testTags()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnendedTag

        public void testUnendedTag()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptTag

        public void testJavascriptTag()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testObjectTag

        public void testObjectTag()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEmbedTag

        public void testEmbedTag()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptInAttribute

        public void testJavascriptInAttribute()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHrefNoTarget

        public void testHrefNoTarget()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHref

        public void testHref()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHrefWithTarget

        public void testHrefWithTarget()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptInHref

        public void testJavascriptInHref()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptInHrefWithWhitespace

        public void testJavascriptInHrefWithWhitespace()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testFormAction

        public void testFormAction()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptInFormAction

        public void testJavascriptInFormAction()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testJavascriptInText

        public void testJavascriptInText()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHtmlElement

        public void testHtmlElement()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDirective

        public void testDirective()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testXML

        public void testXML()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testCDATA

        public void testCDATA()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTagAfterCDATA

        public void testTagAfterCDATA()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testScriptAfterCDATA

        public void testScriptAfterCDATA()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testComment

        public void testComment()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTagAfterComment

        public void testTagAfterComment()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testScriptAfterComment

        public void testScriptAfterComment()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testW3

        public void testW3()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLLI

        public void testLLI()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRichTextTestData

        public void testRichTextTestData()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRichTextTestDataHtmlAttr

        public void testRichTextTestDataHtmlAttr()
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testRichTextTestDataHtmlJSandAttr

        public void testRichTextTestDataHtmlJSandAttr()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception