test.atlassian.mail
Class TestHtmlToTextConverter

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bytest.atlassian.mail.TestHtmlToTextConverter
All Implemented Interfaces:
junit.framework.Test

public class TestHtmlToTextConverter
extends junit.framework.TestCase


Constructor Summary
TestHtmlToTextConverter()
           
 
Method Summary
 void testIgnoreHeader()
           
 void testParagraphsAndBreaks()
           
 void testXHTMLBreaks()
          There is a bug in JDK prior to 1.6 whereby this html "Some
text" would be converted to "Some\n>text" instead of "Some\ntext".
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

TestHtmlToTextConverter

public TestHtmlToTextConverter()
Method Detail

testParagraphsAndBreaks

public void testParagraphsAndBreaks()
                             throws java.io.IOException
Throws:
java.io.IOException

testXHTMLBreaks

public void testXHTMLBreaks()
                     throws java.io.IOException

There is a bug in JDK prior to 1.6 whereby this html "Some
text" would be converted to "Some\n>text" instead of "Some\ntext".

The bug is reported as Issue 4806463.

This is why this test doesn't expect the same result depending on the jdk version.

Throws:
java.io.IOException

testIgnoreHeader

public void testIgnoreHeader()
                      throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.