|
||||||||||
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.melati.poem.test.PoemTestCase org.melati.template.test.TreeTestCase org.melati.template.test.MarkupLanguageSpec
public abstract class MarkupLanguageSpec
An abstract test which is run against most permutations of configuaration.
Field Summary | |
---|---|
protected static org.melati.template.AttributeMarkupLanguage |
aml
|
protected static org.melati.Melati |
m
|
protected static org.melati.MelatiConfig |
mc
|
protected static org.melati.template.MarkupLanguage |
ml
|
protected static org.melati.template.TemplateEngine |
templateEngine
|
Fields inherited from class org.melati.template.test.TreeTestCase |
---|
databaseName |
Fields inherited from class org.melati.poem.test.PoemTestCase |
---|
maxTrans, result |
Constructor Summary | |
---|---|
MarkupLanguageSpec()
Constructor. |
|
MarkupLanguageSpec(String arg0)
Constructor for PoemTest. |
Method Summary | |
---|---|
protected abstract void |
melatiConfig()
|
protected void |
setUp()
|
void |
testEncoded()
Test method for encoded. |
void |
testEntitySubstitution()
Test entity substitution. |
void |
testEscapedPersistent()
Test method for escaped(Persistent). |
void |
testEscapedString()
Test method for escaped(String). |
void |
testEvaluationErrorInTemplet()
Test that an evaluation error in a templet is handled. |
void |
testGetAttr()
Test method for getAttr(). |
void |
testHTMLMarkupLanguageMelatiTempletLoaderPoemLocale()
Test method for Constructor. |
void |
testHTMLMarkupLanguageStringHTMLMarkupLanguage()
Test method for Constructor |
void |
testInputAs()
Test method for inputAs(Field, String). |
void |
testInputField()
Test method for input(Field). |
void |
testInputFieldForRestrictedField()
Test access to password field. |
void |
testInputFieldSelection()
Test method for input(Field) where field to be rendered as a dropdown. |
void |
testNull()
Test NPE thrown. |
void |
testRenderedAccessPoemException()
Test method for rendered(Exception). |
void |
testRenderedField()
Test method for rendered(Field). |
void |
testRenderedFieldInt()
Test method for rendered(Field, int). |
void |
testRenderedFieldIntInt()
Test method for rendered(Field, int, int). |
void |
testRenderedMarkupString()
|
void |
testRenderedObject()
Test method for rendered(Object). |
void |
testRenderedStart()
Test method for renderedStart(Field). |
void |
testRenderedString()
Test method for rendered(String). |
void |
testRenderedStringInt()
Test method for rendered(String, int). |
void |
testRenderedTreeable()
Test method for rendered(Treeable). |
void |
testSearchInput()
Test method for searchInput(Field, String). |
void |
testSelectionWindowField()
Test method for input(Field) where the renderinfo is selectionWindow. |
void |
testSpecialTemplateFound()
Test that special templets are found. |
void |
testSyntaxErrorInTemplet()
Test that a syntax error in a templet is handled. |
void |
testSyntaxErrorInWMTemplet()
Test that a syntax error in a WM templet is handled by Velocity. |
void |
testTemplateFoundOnClasspath()
Test that we can find a template on the classpath. |
void |
testUntemplatedObjectUsesToString()
Test that toString is used if no template found. |
Methods inherited from class org.melati.template.test.TreeTestCase |
---|
databaseUnchanged, getDb, getTreeDatabase |
Methods inherited from class org.melati.poem.test.PoemTestCase |
---|
assertEquals, assertEquals, assertEquals, checkColumns, checkDbUnchanged, checkTables, checkTablesAndColumns, dropTable, dumpTable, getDatabase, getDatabaseName, getDb, getName, getOrDie, getProperties, getPropertiesFileName, getUserToRunAs, run, runTest, setDatabaseName, setName, setPropertiesFileName, setUserToRunAs, tearDown, testNothing |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, run, runBare, 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, 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 |
Methods inherited from interface junit.framework.Test |
---|
countTestCases |
Field Detail |
---|
protected static org.melati.MelatiConfig mc
protected static org.melati.template.TemplateEngine templateEngine
protected static org.melati.template.MarkupLanguage ml
protected static org.melati.template.AttributeMarkupLanguage aml
protected static org.melati.Melati m
Constructor Detail |
---|
public MarkupLanguageSpec(String arg0)
arg0
- public MarkupLanguageSpec()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class PoemTestCase
Exception
TestCase.setUp()
protected abstract void melatiConfig() throws org.melati.util.MelatiException
org.melati.util.MelatiException
public void testRenderedAccessPoemException() throws Exception
Exception
rendered(AccessPoemException)
public void testHTMLMarkupLanguageMelatiTempletLoaderPoemLocale()
HTMLMarkupLanguage(Melati, TempletLoader, PoemLocale)
public void testHTMLMarkupLanguageStringHTMLMarkupLanguage()
HTMLMarkupLanguage(String, HTMLMarkupLanguage)
public void testGetAttr()
HTMLMarkupLanguage.getAttr()
public void testEscapedString() throws Exception
Exception
HTMLLikeMarkupLanguage.escaped(String)
public void testEntitySubstitution() throws Exception
Exception
public void testEscapedPersistent()
HTMLLikeMarkupLanguage.escaped(Persistent)
public void testEncoded()
HTMLLikeMarkupLanguage.encoded(String)
public void testRenderedObject() throws Exception
Exception
MarkupLanguage.rendered(Object)
public void testRenderedMarkupString() throws Exception
Exception
MarkupLanguage.renderedMarkup(java.lang.String)
public void testSyntaxErrorInTemplet() throws Exception
Exception
public void testEvaluationErrorInTemplet() throws Exception
Exception
public void testSyntaxErrorInWMTemplet() throws Exception
Exception
public void testTemplateFoundOnClasspath() throws Exception
Exception
public void testUntemplatedObjectUsesToString() throws Exception
Exception
public void testSpecialTemplateFound() throws Exception
Exception
public void testRenderedString() throws Exception
Exception
org.melati.template.MarkupLanguage#rendered(String)
public void testNull() throws Exception
Exception
public void testRenderedStringInt() throws Exception
Exception
MarkupLanguage.rendered(String, int)
public void testRenderedField() throws Exception
Exception
org.melati.template.MarkupLanguage#rendered(Field)
public void testRenderedFieldInt() throws Exception
Exception
MarkupLanguage.rendered(Field, int)
public void testRenderedFieldIntInt() throws Exception
Exception
MarkupLanguage.rendered(Field, int, int)
public void testRenderedStart() throws Exception
Exception
MarkupLanguage.renderedStart(Field)
public void testInputField() throws Exception
Exception
MarkupLanguage.input(Field)
public void testInputFieldSelection() throws Exception
Exception
MarkupLanguage.input(Field)
public void testSelectionWindowField() throws Exception
Exception
MarkupLanguage.input(Field)
public void testInputFieldForRestrictedField() throws Exception
Exception
public void testInputAs() throws Exception
Exception
MarkupLanguage.inputAs(Field, String)
public void testSearchInput() throws Exception
Exception
MarkupLanguage.searchInput(Field, String)
public void testRenderedTreeable() throws Exception
Exception
MarkupLanguage.rendered(Object)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |