com.quiotix.html.parser.test
Class HtmlFormatterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.quiotix.html.parser.test.HtmlFormatterTest
All Implemented Interfaces:
junit.framework.Test

public class HtmlFormatterTest
extends junit.framework.TestCase

Since:
15 Nov 2007
Author:
timp

Constructor Summary
HtmlFormatterTest(String name)
           
 
Method Summary
protected  void setUp()
          
protected  void tearDown()
          
 void testFinish()
          Test method for HtmlFormatter.finish().
 void testHtmlFormatter()
          Test method for HtmlFormatter.HtmlFormatter(java.io.OutputStream).
 void testHtmlFormatterTRIM_SPACES()
          Test method for HtmlFormatter.HtmlFormatter(java.io.OutputStream).
 void testMain()
          Test method for HtmlFormatter.main(java.lang.String[]).
 void testSetIndent()
          Test method for HtmlFormatter.setIndent(int).
 void testSetRightMargin()
          Test method for HtmlFormatter.setRightMargin(int).
 void testStart()
          Test method for HtmlFormatter.start().
 void testVisitComment()
          Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Comment).
 void testVisitEndTag()
          Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.EndTag).
 void testVisitNewline()
          Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Newline).
 void testVisitTag()
          Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Tag).
 void testVisitTagBlock()
          Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.TagBlock).
 void testVisitText()
          Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Text).
 
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

HtmlFormatterTest

public HtmlFormatterTest(String name)
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()

testVisitTag

public void testVisitTag()
Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Tag).


testVisitEndTag

public void testVisitEndTag()
Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.EndTag).


testVisitComment

public void testVisitComment()
Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Comment).


testVisitText

public void testVisitText()
Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Text).


testVisitNewline

public void testVisitNewline()
Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.Newline).


testVisitTagBlock

public void testVisitTagBlock()
Test method for HtmlFormatter.visit(com.quiotix.html.parser.HtmlDocument.TagBlock).


testStart

public void testStart()
Test method for HtmlFormatter.start().


testFinish

public void testFinish()
Test method for HtmlFormatter.finish().


testHtmlFormatterTRIM_SPACES

public void testHtmlFormatterTRIM_SPACES()
                                  throws Exception
Test method for HtmlFormatter.HtmlFormatter(java.io.OutputStream).

Throws:
Exception

testHtmlFormatter

public void testHtmlFormatter()
                       throws Exception
Test method for HtmlFormatter.HtmlFormatter(java.io.OutputStream).

Throws:
Exception

testSetRightMargin

public void testSetRightMargin()
Test method for HtmlFormatter.setRightMargin(int).


testSetIndent

public void testSetIndent()
Test method for HtmlFormatter.setIndent(int).


testMain

public void testMain()
Test method for HtmlFormatter.main(java.lang.String[]).



Copyright © 1999-2011 Quiotix. All Rights Reserved.