org.stringtemplate.v4.test
Class TestGroups

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

public class TestGroups
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
TestGroups()
           
 
Method Summary
 void testAlias()
           
 void testAliasWithArgs()
           
 void testBooleanDefaultArguments()
           
 void testCantSeeGroupDirIfGroupFileOfSameName()
           
 void testDefaultArgument()
           
 void testDefaultArgument2()
           
 void testDefaultArgumentAsSimpleTemplate()
           
 void testDefaultArgumentAsTemplate()
           
 void testDefaultArgumentAsTemplate2()
           
 void testDefaultArgumentImplicitlySet2()
           
 void testDefaultArgumentInParensToEvalEarly()
           
 void testDefaultArgumentManuallySet()
           
 void testDefaultArgumentSeesVarFromDynamicScoping()
           
 void testDoNotUseDefaultArgument()
           
 void testDupDef()
           
 void testEarlyEvalOfDefaultArgs()
           
 void testGetTemplateNames()
           
 void testGroupFileImport()
           
 void testGroupFileInDir()
           
 void testGroupFileInSubDir()
           
 void testGroupWithTwoTemplates()
           
 void testMissingNamedArg()
           
 void testNamedArgsInOrder()
           
 void testNamedArgsNotAllowInIndirectInclude()
           
 void testNamedArgsOutOfOrder()
           
 void testSimpleDefaultArg()
           
 void testSimpleGroup()
           
 void testSimpleGroupFromString()
           
 void testSubdir()
           
 void testSubdirWithSubtemplate()
           
 void testSubSubdir()
           
 void testSubtemplateAsDefaultArgSeesOtherArgs()
           
 void testTrueFalseArgs()
           
 void testUnknownNamedArg()
           
 void testUnloadingGroupFile()
           
 void testUnloadingSimpleGroup()
           
 void testUnloadWithImports()
           
 
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

TestGroups

public TestGroups()
Method Detail

testSimpleGroup

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

testSimpleGroupFromString

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

testGroupWithTwoTemplates

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

testSubdir

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

testSubdirWithSubtemplate

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

testGroupFileInDir

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

testSubSubdir

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

testGroupFileInSubDir

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

testDupDef

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

testAlias

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

testAliasWithArgs

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

testSimpleDefaultArg

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

testDefaultArgument

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

testBooleanDefaultArguments

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

testDefaultArgument2

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

testSubtemplateAsDefaultArgSeesOtherArgs

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

testEarlyEvalOfDefaultArgs

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

testDefaultArgumentAsSimpleTemplate

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

testDefaultArgumentManuallySet

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

testDefaultArgumentSeesVarFromDynamicScoping

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

testDefaultArgumentImplicitlySet2

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

testDefaultArgumentAsTemplate

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

testDefaultArgumentAsTemplate2

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

testDoNotUseDefaultArgument

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

testDefaultArgumentInParensToEvalEarly

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

testTrueFalseArgs

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

testNamedArgsInOrder

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

testNamedArgsOutOfOrder

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

testUnknownNamedArg

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

testMissingNamedArg

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

testNamedArgsNotAllowInIndirectInclude

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

testCantSeeGroupDirIfGroupFileOfSameName

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

testUnloadingSimpleGroup

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

testUnloadingGroupFile

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

testGroupFileImport

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

testGetTemplateNames

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

testUnloadWithImports

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