psdi.util.unittest

Class HTMLToPlainTest

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


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

      • HTMLToPlainTest

        public HTMLToPlainTest()
    • Method Detail

      • setUp

        protected void setUp()
                      throws java.lang.Exception
        Overrides:
        setUp in class junit.framework.TestCase
        Throws:
        java.lang.Exception
      • tearDown

        protected void tearDown()
                         throws java.lang.Exception
        Overrides:
        tearDown in class junit.framework.TestCase
        Throws:
        java.lang.Exception
      • testEncodeForHtmlAttribute

        public void testEncodeForHtmlAttribute()
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSpecialChar

        public void testSpecialChar()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEntityRef

        public void testEntityRef()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnknownEntityRef

        public void testUnknownEntityRef()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMalformedEntityRef

        public void testMalformedEntityRef()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnterminatedEntityRef

        public void testUnterminatedEntityRef()
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnterminatedRunonEntityRef

        public void testUnterminatedRunonEntityRef()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUnterminatedLongEntityRef

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

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

        public void testAttributeWithEntityInValue()
                                            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
      • testBr

        public void testBr()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOpenDiv

        public void testOpenDiv()
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDiv

        public void testDiv()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDivs

        public void testDivs()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDivsNested

        public void testDivsNested()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testParagraph

        public void testParagraph()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testParagraphs

        public void testParagraphs()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testParagraphsNested

        public void testParagraphsNested()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testImg

        public void testImg()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHeadings

        public void testHeadings()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBlockquote

        public void testBlockquote()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testBlockquoteNested

        public void testBlockquoteNested()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOl

        public void testOl()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testOlNested

        public void testOlNested()
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUl

        public void testUl()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testUlNested

        public void testUlNested()
                          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
      • 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
      • testRTESample

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