org.eclipse.mylyn.wikitext.confluence.core
Class ConfluenceLanguageTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.mylyn.wikitext.confluence.core.ConfluenceLanguageTest
All Implemented Interfaces:
junit.framework.Test

public class ConfluenceLanguageTest
extends junit.framework.TestCase

Author:
David Green

Constructor Summary
ConfluenceLanguageTest()
           
 
Method Summary
 void setUp()
           
 void testBlockCode()
           
 void testBlockCode2()
           
 void testBlockCodeJava()
           
 void testBlockQuote()
           
 void testBlockQuoteExtended()
           
 void testBlockQuoteExtended2()
           
 void testBlockQuoteExtendedBreaksPara()
           
 void testBlockQuoteExtendedLeadingSpaces()
           
 void testBlockQuoteExtendedUnclosed()
           
 void testBlockQuoteWithBulletedList()
           
 void testBoldItalics()
           
 void testBoldItalicsBold()
           
 void testCharacterEscapeSequence()
           
 void testColor()
           
 void testColor2()
           
 void testColor3()
           
 void testEmdash()
           
 void testEndash()
           
 void testHangOnBug318695()
          bug 318695
 void testHeadings()
           
 void testHorizontalRule()
           
 void testHorizontalRule2()
          line starts with a horizontal rule, which is important since it is very similar to a level-4 list case.
 void testHorizontalRule3()
           
 void testHorizontalRule4()
           
 void testHyperlink()
           
 void testHyperlinkHash()
           
 void testHyperlinkHash2()
           
 void testHyperlinkImplied()
           
 void testHyperlinkImpliedNegativeMatch()
           
 void testHyperlinkImpliedNegativeMatch2()
           
 void testHyperlinkMailtoNoBase()
           
 void testHyperlinkMailtoWithBase()
           
 void testHyperlinkPartiallyExpressed()
           
 void testHyperlinkWithBold()
           
 void testHyperlinkWithBoldItalics()
           
 void testHyperlinkWithItalics()
           
 void testHyperlinkWithSpaces()
           
 void testHyperlinkWithTip()
           
 void testHyperlinkWithTitle()
           
 void testHyperlinkWithTitle2()
           
 void testHyperlinkWithTitleAndSpace()
           
 void testImage()
           
 void testImageNegativeMatch()
           
 void testImageWithAttributesAlignCenter()
           
 void testImageWithAttributesAlignCenterToDocbook()
           
 void testImageWithAttributesAlignLeft()
           
 void testImageWithAttributesAlignMiddle()
           
 void testImageWithAttributesAlignRight()
           
 void testImageWithAttributesAlt()
           
 void testImageWithAttributesBorder()
           
 void testImageWithAttributesHeight()
           
 void testImageWithAttributesHeightBadValue()
           
 void testImageWithAttributesWidth()
           
 void testImageWithFullUrl()
           
 void testInfo()
           
 void testInlineQuote()
           
 void testInlineQuoteNegativeMatch()
           
 void testInlineQuoteNegativeMatch2()
           
 void testInlineQuoteWithBullets()
           
 void testInlineQuoteWithBullets2()
           
 void testIsDetectingRawHyperlinks()
           
 void testItalics()
           
 void testItalicsBold()
           
 void testItalicsNegativeMatchLeadingWhitespace()
           
 void testItalicsNegativeMatchNoContent()
           
 void testItalicsNegativeMatchTrailingWhitespace()
           
 void testItalicsNonGreedy()
           
 void testItalicsWithHyperlink()
           
 void testItalicsWithHyperlink2()
           
 void testItalicsWithHyperlink3()
           
 void testLineBreak()
           
 void testListMixed()
           
 void testListNested()
           
 void testListNestedMixed()
           
 void testListOrdered()
           
 void testListUnordered()
           
 void testListWithHrPattern()
          test scenario where we have a level-4 nested list, which happens to start with the same pattern as a horizontal rule.
 void testMonospaced_NegativeTest()
           
 void testMonospaced()
           
 void testNamedAnchor()
           
 void testNote()
           
 void testNote2()
           
 void testNote3()
           
 void testNote4()
           
 void testParagraph()
           
 void testPreformattedExtended()
           
 void testPreformattedExtended2()
           
 void testSimplePhraseModifiers()
           
 void testTable()
           
 void testTableNestedWithHeader()
           
 void testTableOfContents()
           
 void testTableOfContentsWithMaxLevel()
           
 void testTableWithHeader()
           
 void testTableWithLinkAndPipes()
           
 void testTableWithLinkAndPipes2()
           
 void testTip()
           
 void testTipToDocBook()
           
 void testWarning()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfluenceLanguageTest

public ConfluenceLanguageTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testIsDetectingRawHyperlinks

public void testIsDetectingRawHyperlinks()

testParagraph

public void testParagraph()
                   throws Exception
Throws:
Exception

testHeadings

public void testHeadings()

testBlockQuote

public void testBlockQuote()

testBlockQuoteExtended

public void testBlockQuoteExtended()

testBlockQuoteExtended2

public void testBlockQuoteExtended2()

testBlockQuoteExtendedUnclosed

public void testBlockQuoteExtendedUnclosed()

testBlockQuoteExtendedLeadingSpaces

public void testBlockQuoteExtendedLeadingSpaces()

testBlockQuoteExtendedBreaksPara

public void testBlockQuoteExtendedBreaksPara()

testBlockQuoteWithBulletedList

public void testBlockQuoteWithBulletedList()

testSimplePhraseModifiers

public void testSimplePhraseModifiers()
                               throws IOException
Throws:
IOException

testMonospaced

public void testMonospaced()

testMonospaced_NegativeTest

public void testMonospaced_NegativeTest()

testCharacterEscapeSequence

public void testCharacterEscapeSequence()

testLineBreak

public void testLineBreak()

testEndash

public void testEndash()

testEmdash

public void testEmdash()

testHorizontalRule

public void testHorizontalRule()

testHorizontalRule2

public void testHorizontalRule2()
line starts with a horizontal rule, which is important since it is very similar to a level-4 list case.


testHorizontalRule3

public void testHorizontalRule3()

testHorizontalRule4

public void testHorizontalRule4()

testHyperlink

public void testHyperlink()

testHyperlinkPartiallyExpressed

public void testHyperlinkPartiallyExpressed()

testHyperlinkWithTitle

public void testHyperlinkWithTitle()

testHyperlinkWithTitle2

public void testHyperlinkWithTitle2()

testHyperlinkHash

public void testHyperlinkHash()

testHyperlinkHash2

public void testHyperlinkHash2()

testHyperlinkWithTip

public void testHyperlinkWithTip()

testHyperlinkImplied

public void testHyperlinkImplied()

testHyperlinkImpliedNegativeMatch

public void testHyperlinkImpliedNegativeMatch()

testHyperlinkImpliedNegativeMatch2

public void testHyperlinkImpliedNegativeMatch2()

testHyperlinkWithSpaces

public void testHyperlinkWithSpaces()

testHyperlinkWithTitleAndSpace

public void testHyperlinkWithTitleAndSpace()

testHyperlinkMailtoNoBase

public void testHyperlinkMailtoNoBase()

testHyperlinkMailtoWithBase

public void testHyperlinkMailtoWithBase()
                                 throws URISyntaxException
Throws:
URISyntaxException

testItalicsWithHyperlink

public void testItalicsWithHyperlink()

testItalicsWithHyperlink2

public void testItalicsWithHyperlink2()

testItalicsWithHyperlink3

public void testItalicsWithHyperlink3()

testNamedAnchor

public void testNamedAnchor()

testListUnordered

public void testListUnordered()
                       throws IOException
Throws:
IOException

testListOrdered

public void testListOrdered()
                     throws IOException
Throws:
IOException

testListNested

public void testListNested()
                    throws IOException
Throws:
IOException

testListMixed

public void testListMixed()
                   throws IOException
Throws:
IOException

testListNestedMixed

public void testListNestedMixed()
                         throws IOException
Throws:
IOException

testListWithHrPattern

public void testListWithHrPattern()
                           throws IOException
test scenario where we have a level-4 nested list, which happens to start with the same pattern as a horizontal rule. We want to match as a list in this case.

Throws:
IOException

testImage

public void testImage()

testImageWithFullUrl

public void testImageWithFullUrl()

testImageWithAttributesAlignRight

public void testImageWithAttributesAlignRight()

testImageWithAttributesAlignLeft

public void testImageWithAttributesAlignLeft()

testImageWithAttributesAlignMiddle

public void testImageWithAttributesAlignMiddle()

testImageWithAttributesAlignCenter

public void testImageWithAttributesAlignCenter()

testImageWithAttributesAlignCenterToDocbook

public void testImageWithAttributesAlignCenterToDocbook()

testImageWithAttributesAlt

public void testImageWithAttributesAlt()

testImageWithAttributesBorder

public void testImageWithAttributesBorder()

testImageWithAttributesWidth

public void testImageWithAttributesWidth()

testImageWithAttributesHeight

public void testImageWithAttributesHeight()

testImageWithAttributesHeightBadValue

public void testImageWithAttributesHeightBadValue()

testImageNegativeMatch

public void testImageNegativeMatch()

testTable

public void testTable()

testTableWithHeader

public void testTableWithHeader()

testTableNestedWithHeader

public void testTableNestedWithHeader()

testTableWithLinkAndPipes

public void testTableWithLinkAndPipes()

testTableWithLinkAndPipes2

public void testTableWithLinkAndPipes2()

testPreformattedExtended

public void testPreformattedExtended()

testPreformattedExtended2

public void testPreformattedExtended2()

testBlockCode

public void testBlockCode()

testBlockCode2

public void testBlockCode2()

testBlockCodeJava

public void testBlockCodeJava()

testNote

public void testNote()

testNote2

public void testNote2()

testNote3

public void testNote3()

testNote4

public void testNote4()

testInfo

public void testInfo()

testWarning

public void testWarning()

testTip

public void testTip()

testTipToDocBook

public void testTipToDocBook()

testTableOfContents

public void testTableOfContents()
                         throws IOException
Throws:
IOException

testTableOfContentsWithMaxLevel

public void testTableOfContentsWithMaxLevel()
                                     throws IOException
Throws:
IOException

testBoldItalicsBold

public void testBoldItalicsBold()

testItalicsBold

public void testItalicsBold()

testItalics

public void testItalics()

testItalicsNegativeMatchTrailingWhitespace

public void testItalicsNegativeMatchTrailingWhitespace()

testItalicsNegativeMatchLeadingWhitespace

public void testItalicsNegativeMatchLeadingWhitespace()

testItalicsNegativeMatchNoContent

public void testItalicsNegativeMatchNoContent()

testItalicsNonGreedy

public void testItalicsNonGreedy()

testHyperlinkWithItalics

public void testHyperlinkWithItalics()

testHyperlinkWithBold

public void testHyperlinkWithBold()

testHyperlinkWithBoldItalics

public void testHyperlinkWithBoldItalics()

testBoldItalics

public void testBoldItalics()

testInlineQuote

public void testInlineQuote()

testInlineQuoteWithBullets

public void testInlineQuoteWithBullets()

testInlineQuoteWithBullets2

public void testInlineQuoteWithBullets2()

testInlineQuoteNegativeMatch

public void testInlineQuoteNegativeMatch()

testInlineQuoteNegativeMatch2

public void testInlineQuoteNegativeMatch2()

testColor

public void testColor()

testColor2

public void testColor2()

testColor3

public void testColor3()

testHangOnBug318695

public void testHangOnBug318695()
                         throws IOException
bug 318695

Throws:
IOException


Copyright © 2011 FuseSource, Corp.. All Rights Reserved.