org.stringtemplate.v4.test
Class TestWhitespace

java.lang.Object
  extended by org.stringtemplate.v4.test.BaseTest
      extended by org.stringtemplate.v4.test.TestWhitespace

public class TestWhitespace
extends BaseTest


Nested Class Summary
 
Nested classes/interfaces inherited from class org.stringtemplate.v4.test.BaseTest
BaseTest.HashableUser, BaseTest.StreamVacuum, BaseTest.User
 
Field Summary
 
Fields inherited from class org.stringtemplate.v4.test.BaseTest
CLASSPATH, newline, pathSep, SUREFIRE_CLASSPATH, tmpdir
 
Constructor Summary
TestWhitespace()
           
 
Method Summary
 void testCommentOnlyLineGivesNoOutput()
           
 void testCommentOnlyLineGivesNoOutput2()
           
 void testDontTrimJustSpaceBeforeAfterInTemplate()
           
 void testElseIFOnMultipleLines()
           
 void testElseIFOnMultipleLines2()
           
 void testElseIFOnMultipleLines3()
           
 void testEmptyExprAsFirstLineGetsNoOutput()
           
 void testEmptyLine()
           
 void testEmptyLineWithIndent()
           
 void testEndifNotOnLineAlone()
           
 void testIFElseExprOnSingleLine()
           
 void testIFExpr()
           
 void testIFOnMultipleLines()
           
 void testIndentedIFExpr()
           
 void testLeaveNewlineOnEndInSubtemplates()
           
 void testLineBreak()
           
 void testLineBreak2()
           
 void testLineBreakNoWhiteSpace()
           
 void testNestedIFOnMultipleLines()
           
 void testNewlineNormalizationInAttribute()
           
 void testNewlineNormalizationInTemplateString()
           
 void testNewlineNormalizationInTemplateStringPC()
           
 void testSizeZeroOnLineByItselfGetsNoOutput()
           
 void testSizeZeroOnLineWithIndentGetsNoOutput()
           
 void testSizeZeroOnLineWithMultipleExpr()
           
 void testTabBeforeEndInSubtemplates()
           
 void testTrimJustOneWSInSubtemplates()
           
 void testTrimmedNewlinesBeforeAfterInTemplate()
           
 void testTrimmedSubtemplates()
           
 void testTrimmedSubtemplatesArgs()
           
 void testTrimmedSubtemplatesNoArgs()
           
 void testTrimNewlineInSubtemplates()
           
 
Methods inherited from class org.stringtemplate.v4.test.BaseTest
checkTokens, checkTokens, compile, deleteFile, deleteFile, exec, getRandomDir, jar, java, setUp, writeFile, writeTestFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestWhitespace

public TestWhitespace()
Method Detail

testTrimmedSubtemplates

public void testTrimmedSubtemplates()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testTrimmedNewlinesBeforeAfterInTemplate

public void testTrimmedNewlinesBeforeAfterInTemplate()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testDontTrimJustSpaceBeforeAfterInTemplate

public void testDontTrimJustSpaceBeforeAfterInTemplate()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testTrimmedSubtemplatesNoArgs

public void testTrimmedSubtemplatesNoArgs()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testTrimmedSubtemplatesArgs

public void testTrimmedSubtemplatesArgs()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testTrimJustOneWSInSubtemplates

public void testTrimJustOneWSInSubtemplates()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testTrimNewlineInSubtemplates

public void testTrimNewlineInSubtemplates()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testLeaveNewlineOnEndInSubtemplates

public void testLeaveNewlineOnEndInSubtemplates()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testTabBeforeEndInSubtemplates

public void testTabBeforeEndInSubtemplates()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyExprAsFirstLineGetsNoOutput

public void testEmptyExprAsFirstLineGetsNoOutput()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyLineWithIndent

public void testEmptyLineWithIndent()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyLine

public void testEmptyLine()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testSizeZeroOnLineByItselfGetsNoOutput

public void testSizeZeroOnLineByItselfGetsNoOutput()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testSizeZeroOnLineWithIndentGetsNoOutput

public void testSizeZeroOnLineWithIndentGetsNoOutput()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testSizeZeroOnLineWithMultipleExpr

public void testSizeZeroOnLineWithMultipleExpr()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testIFExpr

public void testIFExpr()
                throws java.lang.Exception
Throws:
java.lang.Exception

testIndentedIFExpr

public void testIndentedIFExpr()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testIFElseExprOnSingleLine

public void testIFElseExprOnSingleLine()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testIFOnMultipleLines

public void testIFOnMultipleLines()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testEndifNotOnLineAlone

public void testEndifNotOnLineAlone()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testElseIFOnMultipleLines

public void testElseIFOnMultipleLines()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testElseIFOnMultipleLines2

public void testElseIFOnMultipleLines2()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testElseIFOnMultipleLines3

public void testElseIFOnMultipleLines3()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testNestedIFOnMultipleLines

public void testNestedIFOnMultipleLines()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testLineBreak

public void testLineBreak()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testLineBreak2

public void testLineBreak2()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testLineBreakNoWhiteSpace

public void testLineBreakNoWhiteSpace()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testNewlineNormalizationInTemplateString

public void testNewlineNormalizationInTemplateString()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testNewlineNormalizationInTemplateStringPC

public void testNewlineNormalizationInTemplateStringPC()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testNewlineNormalizationInAttribute

public void testNewlineNormalizationInAttribute()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testCommentOnlyLineGivesNoOutput

public void testCommentOnlyLineGivesNoOutput()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testCommentOnlyLineGivesNoOutput2

public void testCommentOnlyLineGivesNoOutput2()
                                       throws java.lang.Exception
Throws:
java.lang.Exception