|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.ujac.util.template.test.BaseTemplateTest org.ujac.util.template.test.TemplateTest
public class TemplateTest
Name: TemplateTest
Description: Defines main template interpreter test cases.
Field Summary |
---|
Fields inherited from class org.ujac.util.template.test.BaseTemplateTest |
---|
ctx, interpreter |
Constructor Summary | |
---|---|
TemplateTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testAssert()
Tests the _assert_ statement. |
void |
testDefine()
Tests the _define_ statement. |
void |
testExtendedForeach()
Extended tests for the execution of _foreach_ statements. |
void |
testForeach()
Tests the execution of _foreach_ statements. |
void |
testIfElseifElseEndif()
Tests the _if_ _elseif_ _else_ _endif_ statement. |
void |
testLog()
Tests the _log_ statement. |
void |
testMapEntriesLoop()
Extended tests for the execution of _foreach_ statements. |
void |
testUnderscores()
Tests the execution of templates, containing underscores. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TemplateTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class BaseTemplateTest
Exception
TestCase.setUp()
public void testUnderscores() throws TemplateException
TemplateException
- In case the template execution failed.public void testForeach() throws TemplateException
TemplateException
- In case the template execution failed.public void testExtendedForeach() throws TemplateException
TemplateException
- In case the template execution failed.public void testMapEntriesLoop() throws TemplateException
TemplateException
- In case the template execution failed.public void testIfElseifElseEndif() throws TemplateException
TemplateException
- In case the template execution failed.public void testDefine() throws TemplateException
TemplateException
- In case the template execution failed.public void testLog() throws TemplateException
TemplateException
- In case the template execution failed.public void testAssert() throws TemplateException
TemplateException
- In case the template execution failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |