org.eclipse.mylyn.wikitext.textile.core
Class TextileLanguageTest

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

public class TextileLanguageTest
extends junit.framework.TestCase

NOTE: most textile test cases can be found in MarkupParserTest

Author:
David Green
See Also:
TextileLanguageTasksTest

Constructor Summary
TextileLanguageTest()
           
 
Method Summary
 void setUp()
           
 void testAcronym()
           
 void testAcronym2()
           
 void testAcronym3()
           
 void testAcronymBug240743()
          test for bug# 240743
 void testAcronymNegative()
           
 void testAdjacentPhraseModifiers()
           
 void testApostrophe()
           
 void testBlockCode()
           
 void testBlockCodeAtEndOfDocument()
           
 void testBlockCodeAtEndOfDocument2()
           
 void testBlockCodeWithEmbeddedHtmlTags()
           
 void testBlockCodeWithLeadingNewline()
           
 void testBlockCodeWithLeadingNewlines()
           
 void testBlockCodeWithTabs()
          bug 320007
 void testBlockCodeWithTabsFormatted()
          bug 320007
 void testBlockQuote_bug304765()
          bug 304765
 void testBlockQuote()
           
 void testBlockQuoteWithCitation()
           
 void testBoldItalics()
           
 void testBoldItalicsBold()
           
 void testBug50NoXHTMLCompliance()
           
 void testBug50XHTMLCompliance()
           
 void testCodeWithCurlyBrace()
           
 void testCopyright()
           
 void testCopyright2()
           
 void testCopyright3()
           
 void testDeletedIssue22()
           
 void testDoubleQuotations()
           
 void testDoubleQuotationsGerman()
           
 void testDoubleQuotationsInTable()
           
 void testEmDash()
           
 void testEmDashAfterImage()
           
 void testEmDashAtStartOfLine()
           
 void testEmDashNegativeNoPrecedingSpace()
           
 void testEnDash()
           
 void testEscaping()
           
 void testEscaping2()
           
 void testEscaping3()
           
 void testEscaping4()
           
 void testExtendedBlockCode()
           
 void testExtendedBlockCode2()
           
 void testExtendedBlockQuote()
           
 void testExtendedPre()
           
 void testFalseMul()
           
 void testFootnote()
           
 void testFootnoteReferenceLexicalPosition()
           
 void testFootnoteRefNoFootnote()
           
 void testGlossary()
           
 void testGlossaryValidHtml()
           
 void testGlossaryWithStyle()
           
 void testHeading0NoHeading()
           
 void testHeading1()
           
 void testHeadingMultiline()
           
 void testHtmlEntityEncoding()
           
 void testHtmlEscaping()
           
 void testHtmlLiteral()
           
 void testHtmlLiteralAdjacentTags()
           
 void testHtmlLiteralAdjacentTags2()
           
 void testHtmlLiteralFalsePositive()
           
 void testHtmlLiteralFalsePositive2()
           
 void testHtmlLiteralFalsePositive3()
           
 void testHtmlLiteralFalsePositive4()
           
 void testHtmlLiteralLoneCloseTag()
           
 void testHtmlLiteralSelfClosingTag()
           
 void testHtmlLiteralTerminatingTagWithLegalWhitespace()
           
 void testHtmlLiteralTwoLinesWithAnchors()
           
 void testHtmlLiteralUnclosedTag()
           
 void testHtmlLiteralWithEmbeddedPhraseModifiers()
           
 void testHyperlink()
           
 void testHyperlinkRelative()
           
 void testHyperlinkTail()
           
 void testHyperlinkWithBold()
           
 void testHyperlinkWithBoldWrapper()
           
 void testHyperlinkWithBoldWrapper2()
           
 void testHyperlinkWithClass()
           
 void testHyperlinkWithEmphasis()
           
 void testHyperlinkWithPunctuation()
           
 void testImage()
           
 void testImageAlignCenter()
           
 void testImageAlignLeft()
           
 void testImageAlignRight()
           
 void testImageFalsePositiveOnMultipleExclamationMarks()
           
 void testImageHyperlink()
           
 void testImageHyperlinkWithAttributes()
           
 void testImageRelative()
           
 void testImageWithAltAndTitle()
           
 void testIsDetectingRawHyperlinks()
           
 void testItalicsBold()
           
 void testLineStartingWithDeletedPhraseModifier()
           
 void testListItemWithDeletedText()
           
 void testListMixed()
           
 void testListNested()
           
 void testListNestedMixed()
           
 void testListNotAList()
           
 void testListOrdered()
           
 void testListUnordered()
           
 void testListUnordered2()
           
 void testListWithStyle()
           
 void testMarkupContainingCDATA()
           
 void testMul()
           
 void testMultilineBlockCode()
           
 void testMultilinePreformatted()
           
 void testNamedLinks()
           
 void testNestedPhraseModifiersLexicalPosition()
           
 void testParagraphLeftAligned()
           
 void testParagraphs()
           
 void testParagraphsWithLineThatHasWhitespaceInDelimitingLine()
           
 void testParagraphWithClass()
           
 void testParagraphWithClassAndId()
           
 void testParagraphWithClassAndIdAndStyle()
           
 void testParagraphWithId()
           
 void testParagraphWithLeadingSpace()
           
 void testParagraphWithLeadingSpace2()
           
 void testParagraphWithNestedList()
           
 void testPhraseModifierBold()
           
 void testPhraseModifierBoldWithId()
           
 void testPhraseModifierCode()
           
 void testPhraseModifierCodeWithNestedMarkup()
          bug 276395 Incorrect quotation characters inside code
 void testPhraseModifierFalsePositives()
           
 void testPhraseModifierFalsePositives2()
           
 void testPhraseModifiers()
           
 void testPhraseModifiersEnclosingText()
           
 void testPhraseModifierSingleChar()
           
 void testPhraseModifierStrong()
           
 void testPhraseModifiersWithNonWordCharacters()
           
 void testPhraseModifierWorksAtEndOfLine()
           
 void testPhraseModifierWorksAtStartOfLine()
           
 void testPreformattedDoesntMarkupContent()
           
 void testQuotations()
           
 void testRegistered()
           
 void testRegistered2()
           
 void testRegistered3()
           
 void testRelativeUrlNoBase()
           
 void testReplacements()
           
 void testSimpleHeaders()
           
 void testSimplePhraseModifiers()
           
 void testTable()
           
 void testTable2()
           
 void testTableCellAlignment()
           
 void testTableCellColspan()
           
 void testTableCellColspanRowspan()
           
 void testTableCellRowspan()
           
 void testTableHeader()
           
 void testTableOfContents()
           
 void testTableOfContentsWithMaxLevel()
           
 void testTableWithAttributes()
           
 void testTableWithAttributes2()
           
 void testTableWithAttributes3()
           
 void testTableWithEmbeddedTextile()
           
 void testTableWithStyles()
           
 void testTableWithStylesAndTrailingWhitespace()
           
 void testTrademark()
           
 void testTrademark2()
           
 void testTrademark3()
           
 void testXmlEscaping()
           
 
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

TextileLanguageTest

public TextileLanguageTest()
Method Detail

setUp

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

testIsDetectingRawHyperlinks

public void testIsDetectingRawHyperlinks()

testSimpleHeaders

public void testSimpleHeaders()

testMultilineBlockCode

public void testMultilineBlockCode()

testPhraseModifierWorksAtStartOfLine

public void testPhraseModifierWorksAtStartOfLine()

testPhraseModifierWorksAtEndOfLine

public void testPhraseModifierWorksAtEndOfLine()

testPhraseModifierSingleChar

public void testPhraseModifierSingleChar()

testPhraseModifierFalsePositives

public void testPhraseModifierFalsePositives()

testPhraseModifierFalsePositives2

public void testPhraseModifierFalsePositives2()

testBlockCodeAtEndOfDocument

public void testBlockCodeAtEndOfDocument()

testBlockCodeAtEndOfDocument2

public void testBlockCodeAtEndOfDocument2()

testPhraseModifierStrong

public void testPhraseModifierStrong()

testPhraseModifiers

public void testPhraseModifiers()

testPhraseModifiersWithNonWordCharacters

public void testPhraseModifiersWithNonWordCharacters()

testAdjacentPhraseModifiers

public void testAdjacentPhraseModifiers()

testPhraseModifiersEnclosingText

public void testPhraseModifiersEnclosingText()

testPhraseModifierCode

public void testPhraseModifierCode()

testCodeWithCurlyBrace

public void testCodeWithCurlyBrace()

testPhraseModifierCodeWithNestedMarkup

public void testPhraseModifierCodeWithNestedMarkup()
bug 276395 Incorrect quotation characters inside code


testRelativeUrlNoBase

public void testRelativeUrlNoBase()

testGlossaryValidHtml

public void testGlossaryValidHtml()

testLineStartingWithDeletedPhraseModifier

public void testLineStartingWithDeletedPhraseModifier()

testListItemWithDeletedText

public void testListItemWithDeletedText()

testHtmlEntityEncoding

public void testHtmlEntityEncoding()

testParagraphs

public void testParagraphs()
                    throws IOException
Throws:
IOException

testParagraphWithId

public void testParagraphWithId()
                         throws IOException
Throws:
IOException

testParagraphWithClass

public void testParagraphWithClass()
                            throws IOException
Throws:
IOException

testParagraphWithClassAndId

public void testParagraphWithClassAndId()
                                 throws IOException
Throws:
IOException

testParagraphWithClassAndIdAndStyle

public void testParagraphWithClassAndIdAndStyle()
                                         throws IOException
Throws:
IOException

testParagraphLeftAligned

public void testParagraphLeftAligned()
                              throws IOException
Throws:
IOException

testParagraphWithNestedList

public void testParagraphWithNestedList()
                                 throws IOException
Throws:
IOException

testPreformattedDoesntMarkupContent

public void testPreformattedDoesntMarkupContent()
                                         throws IOException
Throws:
IOException

testHeading1

public void testHeading1()
                  throws IOException
Throws:
IOException

testHeadingMultiline

public void testHeadingMultiline()
                          throws IOException
Throws:
IOException

testHeading0NoHeading

public void testHeading0NoHeading()
                           throws IOException
Throws:
IOException

testMultilinePreformatted

public void testMultilinePreformatted()
                               throws IOException
Throws:
IOException

testBlockQuote

public void testBlockQuote()
                    throws IOException
Throws:
IOException

testBlockQuoteWithCitation

public void testBlockQuoteWithCitation()
                                throws IOException
Throws:
IOException

testBlockQuote_bug304765

public void testBlockQuote_bug304765()
bug 304765


testBlockCode

public void testBlockCode()
                   throws IOException
Throws:
IOException

testBlockCodeWithTabs

public void testBlockCodeWithTabs()
                           throws IOException
bug 320007

Throws:
IOException

testBlockCodeWithTabsFormatted

public void testBlockCodeWithTabsFormatted()
                                    throws IOException
bug 320007

Throws:
IOException

testBlockCodeWithEmbeddedHtmlTags

public void testBlockCodeWithEmbeddedHtmlTags()
                                       throws IOException
Throws:
IOException

testBlockCodeWithLeadingNewline

public void testBlockCodeWithLeadingNewline()
                                     throws IOException
Throws:
IOException

testBlockCodeWithLeadingNewlines

public void testBlockCodeWithLeadingNewlines()
                                      throws IOException
Throws:
IOException

testFootnote

public void testFootnote()
                  throws IOException
Throws:
IOException

testFootnoteRefNoFootnote

public void testFootnoteRefNoFootnote()
                               throws IOException
Throws:
IOException

testListUnordered

public void testListUnordered()
                       throws IOException
Throws:
IOException

testListUnordered2

public void testListUnordered2()
                        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

testListWithStyle

public void testListWithStyle()
                       throws IOException
Throws:
IOException

testListNotAList

public void testListNotAList()
                      throws IOException
Throws:
IOException

testTable

public void testTable()
               throws IOException
Throws:
IOException

testTable2

public void testTable2()
                throws IOException
Throws:
IOException

testTableHeader

public void testTableHeader()
                     throws IOException
Throws:
IOException

testTableCellAlignment

public void testTableCellAlignment()
                            throws IOException
Throws:
IOException

testTableCellColspan

public void testTableCellColspan()
                          throws IOException
Throws:
IOException

testTableCellRowspan

public void testTableCellRowspan()
                          throws IOException
Throws:
IOException

testTableCellColspanRowspan

public void testTableCellColspanRowspan()
                                 throws IOException
Throws:
IOException

testTableWithEmbeddedTextile

public void testTableWithEmbeddedTextile()
                                  throws IOException
Throws:
IOException

testTableWithAttributes

public void testTableWithAttributes()
                             throws IOException
Throws:
IOException

testTableWithAttributes2

public void testTableWithAttributes2()
                              throws IOException
Throws:
IOException

testTableWithAttributes3

public void testTableWithAttributes3()
                              throws IOException
Throws:
IOException

testTableWithStyles

public void testTableWithStyles()

testTableWithStylesAndTrailingWhitespace

public void testTableWithStylesAndTrailingWhitespace()

testPhraseModifierBold

public void testPhraseModifierBold()
                            throws IOException
Throws:
IOException

testPhraseModifierBoldWithId

public void testPhraseModifierBoldWithId()
                                  throws IOException
Throws:
IOException

testSimplePhraseModifiers

public void testSimplePhraseModifiers()
                               throws IOException
Throws:
IOException

testDeletedIssue22

public void testDeletedIssue22()

testImage

public void testImage()
               throws IOException
Throws:
IOException

testImageWithAltAndTitle

public void testImageWithAltAndTitle()
                              throws IOException
Throws:
IOException

testImageAlignLeft

public void testImageAlignLeft()
                        throws IOException
Throws:
IOException

testImageAlignRight

public void testImageAlignRight()
                         throws IOException
Throws:
IOException

testImageAlignCenter

public void testImageAlignCenter()
                          throws IOException
Throws:
IOException

testImageRelative

public void testImageRelative()
                       throws IOException
Throws:
IOException

testImageHyperlink

public void testImageHyperlink()
                        throws IOException
Throws:
IOException

testImageHyperlinkWithAttributes

public void testImageHyperlinkWithAttributes()
                                      throws IOException
Throws:
IOException

testImageFalsePositiveOnMultipleExclamationMarks

public void testImageFalsePositiveOnMultipleExclamationMarks()
                                                      throws IOException
Throws:
IOException

testHtmlLiteral

public void testHtmlLiteral()
                     throws IOException
Throws:
IOException

testHtmlLiteralSelfClosingTag

public void testHtmlLiteralSelfClosingTag()
                                   throws IOException
Throws:
IOException

testHtmlLiteralTwoLinesWithAnchors

public void testHtmlLiteralTwoLinesWithAnchors()
                                        throws IOException
Throws:
IOException

testHtmlLiteralUnclosedTag

public void testHtmlLiteralUnclosedTag()
                                throws IOException
Throws:
IOException

testHtmlLiteralAdjacentTags

public void testHtmlLiteralAdjacentTags()
                                 throws IOException
Throws:
IOException

testHtmlLiteralAdjacentTags2

public void testHtmlLiteralAdjacentTags2()
                                  throws IOException
Throws:
IOException

testHtmlLiteralWithEmbeddedPhraseModifiers

public void testHtmlLiteralWithEmbeddedPhraseModifiers()
                                                throws IOException
Throws:
IOException

testHtmlLiteralLoneCloseTag

public void testHtmlLiteralLoneCloseTag()
                                 throws IOException
Throws:
IOException

testHtmlLiteralTerminatingTagWithLegalWhitespace

public void testHtmlLiteralTerminatingTagWithLegalWhitespace()
                                                      throws IOException
Throws:
IOException

testHtmlLiteralFalsePositive

public void testHtmlLiteralFalsePositive()
                                  throws IOException
Throws:
IOException

testHtmlLiteralFalsePositive2

public void testHtmlLiteralFalsePositive2()
                                   throws IOException
Throws:
IOException

testHtmlLiteralFalsePositive3

public void testHtmlLiteralFalsePositive3()
                                   throws IOException
Throws:
IOException

testHtmlLiteralFalsePositive4

public void testHtmlLiteralFalsePositive4()
                                   throws IOException
Throws:
IOException

testEscaping

public void testEscaping()
                  throws IOException
Throws:
IOException

testEscaping2

public void testEscaping2()
                   throws IOException
Throws:
IOException

testEscaping3

public void testEscaping3()
                   throws IOException
Throws:
IOException

testEscaping4

public void testEscaping4()
                   throws IOException
Throws:
IOException

testReplacements

public void testReplacements()
                      throws IOException
Throws:
IOException

testApostrophe

public void testApostrophe()
                    throws IOException
Throws:
IOException

testQuotations

public void testQuotations()
                    throws IOException
Throws:
IOException

testDoubleQuotations

public void testDoubleQuotations()
                          throws IOException
Throws:
IOException

testDoubleQuotationsGerman

public void testDoubleQuotationsGerman()
                                throws IOException
Throws:
IOException

testDoubleQuotationsInTable

public void testDoubleQuotationsInTable()
                                 throws IOException
Throws:
IOException

testCopyright

public void testCopyright()
                   throws IOException
Throws:
IOException

testTrademark

public void testTrademark()
                   throws IOException
Throws:
IOException

testRegistered

public void testRegistered()
                    throws IOException
Throws:
IOException

testCopyright2

public void testCopyright2()
                    throws IOException
Throws:
IOException

testRegistered2

public void testRegistered2()
                     throws IOException
Throws:
IOException

testTrademark2

public void testTrademark2()
                    throws IOException
Throws:
IOException

testCopyright3

public void testCopyright3()
                    throws IOException
Throws:
IOException

testTrademark3

public void testTrademark3()
                    throws IOException
Throws:
IOException

testRegistered3

public void testRegistered3()
                     throws IOException
Throws:
IOException

testEmDash

public void testEmDash()
                throws IOException
Throws:
IOException

testEmDashAtStartOfLine

public void testEmDashAtStartOfLine()
                             throws IOException
Throws:
IOException

testEmDashNegativeNoPrecedingSpace

public void testEmDashNegativeNoPrecedingSpace()
                                        throws IOException
Throws:
IOException

testEmDashAfterImage

public void testEmDashAfterImage()
                          throws IOException
Throws:
IOException

testEnDash

public void testEnDash()
                throws IOException
Throws:
IOException

testMul

public void testMul()
             throws IOException
Throws:
IOException

testFalseMul

public void testFalseMul()
                  throws IOException
Throws:
IOException

testHyperlink

public void testHyperlink()
                   throws IOException
Throws:
IOException

testHyperlinkWithClass

public void testHyperlinkWithClass()
                            throws IOException
Throws:
IOException

testHyperlinkWithEmphasis

public void testHyperlinkWithEmphasis()
                               throws IOException
Throws:
IOException

testHyperlinkWithPunctuation

public void testHyperlinkWithPunctuation()
                                  throws IOException
Throws:
IOException

testHyperlinkWithBold

public void testHyperlinkWithBold()
                           throws IOException
Throws:
IOException

testHyperlinkWithBoldWrapper

public void testHyperlinkWithBoldWrapper()
                                  throws IOException
Throws:
IOException

testHyperlinkWithBoldWrapper2

public void testHyperlinkWithBoldWrapper2()
                                   throws IOException
Throws:
IOException

testHyperlinkTail

public void testHyperlinkTail()
                       throws IOException
Throws:
IOException

testHyperlinkRelative

public void testHyperlinkRelative()
                           throws IOException
Throws:
IOException

testAcronym

public void testAcronym()
                 throws IOException
Throws:
IOException

testAcronym2

public void testAcronym2()
                  throws IOException
Throws:
IOException

testAcronym3

public void testAcronym3()
                  throws IOException
Throws:
IOException

testAcronymNegative

public void testAcronymNegative()
                         throws IOException
Throws:
IOException

testAcronymBug240743

public void testAcronymBug240743()
test for bug# 240743


testGlossary

public void testGlossary()
                  throws IOException
Throws:
IOException

testGlossaryWithStyle

public void testGlossaryWithStyle()
                           throws IOException
Throws:
IOException

testTableOfContents

public void testTableOfContents()
                         throws IOException
Throws:
IOException

testTableOfContentsWithMaxLevel

public void testTableOfContentsWithMaxLevel()
                                     throws IOException
Throws:
IOException

testExtendedBlockQuote

public void testExtendedBlockQuote()

testExtendedBlockCode

public void testExtendedBlockCode()

testExtendedBlockCode2

public void testExtendedBlockCode2()

testExtendedPre

public void testExtendedPre()

testParagraphWithLeadingSpace

public void testParagraphWithLeadingSpace()

testParagraphWithLeadingSpace2

public void testParagraphWithLeadingSpace2()

testParagraphsWithLineThatHasWhitespaceInDelimitingLine

public void testParagraphsWithLineThatHasWhitespaceInDelimitingLine()

testBug50XHTMLCompliance

public void testBug50XHTMLCompliance()
                              throws Exception
Throws:
Exception

testBug50NoXHTMLCompliance

public void testBug50NoXHTMLCompliance()
                                throws Exception
Throws:
Exception

testNamedLinks

public void testNamedLinks()

testXmlEscaping

public void testXmlEscaping()

testHtmlEscaping

public void testHtmlEscaping()

testFootnoteReferenceLexicalPosition

public void testFootnoteReferenceLexicalPosition()

testBoldItalicsBold

public void testBoldItalicsBold()

testItalicsBold

public void testItalicsBold()

testBoldItalics

public void testBoldItalics()

testNestedPhraseModifiersLexicalPosition

public void testNestedPhraseModifiersLexicalPosition()

testMarkupContainingCDATA

public void testMarkupContainingCDATA()


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