org.stringtemplate.v4.test
Class TestDictionaries

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

public class TestDictionaries
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
TestDictionaries()
           
 
Method Summary
 void TestAccessDictionaryFromAnonymousTemplate()
           
 void TestAccessDictionaryFromAnonymousTemplateInRegion()
           
 void testDict()
           
 void testDictDefaultIsDefaultString()
          Test that a map can return a string with the word: default.
 void testDictDefaultStringAsKey()
          Test that a map can have only the default entry.
 void testDictDefaultValue()
           
 void testDictDefaultValueIsKey()
           
 void testDictEmptyDefaultValue()
           
 void testDictEmptyValueAndAngleBracketStrings()
           
 void testDictHiddenByFormalArg()
           
 void testDictKeyLookupAsNonToStringableObject()
           
 void testDictKeyLookupViaTemplate()
           
 void testDictMissingDefaultValueIsEmpty()
           
 void testDictMissingDefaultValueIsEmptyForNullKey()
           
 void testDictNullKeyGetsDefaultValue()
           
 void testDictValuesAreTemplates()
           
 void testDictViaEnclosingTemplates()
           
 void testDictViaEnclosingTemplates2()
           
 void testImportDictionary()
           
 
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

TestDictionaries

public TestDictionaries()
Method Detail

testDict

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

testDictValuesAreTemplates

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

testDictKeyLookupViaTemplate

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

testDictKeyLookupAsNonToStringableObject

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

testDictMissingDefaultValueIsEmpty

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

testDictMissingDefaultValueIsEmptyForNullKey

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

testDictHiddenByFormalArg

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

testDictEmptyValueAndAngleBracketStrings

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

testDictDefaultValue

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

testDictNullKeyGetsDefaultValue

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

testDictEmptyDefaultValue

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

testDictDefaultValueIsKey

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

testDictDefaultStringAsKey

public void testDictDefaultStringAsKey()
                                throws java.lang.Exception
Test that a map can have only the default entry.

Throws:
java.lang.Exception

testDictDefaultIsDefaultString

public void testDictDefaultIsDefaultString()
                                    throws java.lang.Exception
Test that a map can return a string with the word: default.

Throws:
java.lang.Exception

testDictViaEnclosingTemplates

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

testDictViaEnclosingTemplates2

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

TestAccessDictionaryFromAnonymousTemplate

public void TestAccessDictionaryFromAnonymousTemplate()

TestAccessDictionaryFromAnonymousTemplateInRegion

public void TestAccessDictionaryFromAnonymousTemplateInRegion()

testImportDictionary

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