org.melati.util.test
Class HTMLUtilsTest

Package class diagram package HTMLUtilsTest
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.melati.util.test.HTMLUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class HTMLUtilsTest
extends junit.framework.TestCase

Since:
25 Oct 2008
Author:
timp

Constructor Summary
HTMLUtilsTest(String name)
          Constructor.
 
Method Summary
protected  void setUp()
          
protected  void tearDown()
          
 void testAdd()
          Test method for HTMLUtils.add(javax.swing.text.html.parser.ContentModel, javax.swing.text.html.parser.Element, javax.swing.text.html.parser.Element).
 void testAddToContentModels()
          Test method for HTMLUtils.addToContentModels(javax.swing.text.html.parser.DTD, javax.swing.text.html.parser.Element, javax.swing.text.html.parser.Element).
 void testDtdForHTMLParser()
          Test method for HTMLUtils.dtdForHTMLParser().
 void testEntitiedString()
          Test method for HTMLUtils.entitied(java.lang.String).
 void testEntitiedStringBooleanStringBoolean()
          Test method for HTMLUtils.entitied(java.lang.String, boolean, java.lang.String, boolean).
 void testEntityFor()
          Test method for HTMLUtils.entityFor(char, boolean, java.nio.charset.CharsetEncoder, boolean).
 void testJsEscaped()
          Test method for HTMLUtils.jsEscaped(java.lang.String).
 void testJsEscapeFor()
          Test method for HTMLUtils.jsEscapeFor(char).
 void testStringOf()
          Test method for HTMLUtils.stringOf(javax.swing.text.html.HTML.Tag, javax.swing.text.AttributeSet).
 void testWrite()
          Test method for HTMLUtils.write(java.io.Writer, javax.swing.text.html.HTML.Tag, javax.swing.text.AttributeSet).
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HTMLUtilsTest

public HTMLUtilsTest(String name)
Constructor.

Parameters:
name -
Method Detail

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws Exception

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception
See Also:
TestCase.tearDown()

testAdd

public void testAdd()
Test method for HTMLUtils.add(javax.swing.text.html.parser.ContentModel, javax.swing.text.html.parser.Element, javax.swing.text.html.parser.Element).


testAddToContentModels

public void testAddToContentModels()
Test method for HTMLUtils.addToContentModels(javax.swing.text.html.parser.DTD, javax.swing.text.html.parser.Element, javax.swing.text.html.parser.Element).


testDtdForHTMLParser

public void testDtdForHTMLParser()
Test method for HTMLUtils.dtdForHTMLParser().


testEntityFor

public void testEntityFor()
Test method for HTMLUtils.entityFor(char, boolean, java.nio.charset.CharsetEncoder, boolean).


testEntitiedStringBooleanStringBoolean

public void testEntitiedStringBooleanStringBoolean()
Test method for HTMLUtils.entitied(java.lang.String, boolean, java.lang.String, boolean).


testEntitiedString

public void testEntitiedString()
Test method for HTMLUtils.entitied(java.lang.String).


testJsEscapeFor

public void testJsEscapeFor()
Test method for HTMLUtils.jsEscapeFor(char).


testJsEscaped

public void testJsEscaped()
Test method for HTMLUtils.jsEscaped(java.lang.String).


testWrite

public void testWrite()
Test method for HTMLUtils.write(java.io.Writer, javax.swing.text.html.HTML.Tag, javax.swing.text.AttributeSet).


testStringOf

public void testStringOf()
Test method for HTMLUtils.stringOf(javax.swing.text.html.HTML.Tag, javax.swing.text.AttributeSet).



Copyright © 2000-2010 PanEris. All Rights Reserved.