org.apache.tapestry.junit.script
Class TestScript

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.junit.TapestryTestCase
          extended by org.apache.tapestry.junit.script.TestScript

public class TestScript
extends TapestryTestCase

A collection of tests for Tapestry scripting.

Since:
2.2
Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.junit.TapestryTestCase
IS_JDK13
 
Constructor Summary
TestScript()
           
 
Method Summary
protected  ExpressionEvaluator createExpressionEvaluator()
           
 void reset()
           
 void testAntSyntax()
           
 void testCheats()
          A bunch of quickies to push up the code coverage numbers.
 void testEmpty()
          Test omitting body and initialization, ensure they return null.
 void testIncludeScript()
           
 void testInputSymbol()
           
 void testInputSymbolClass()
           
 void testInputSymbolInvalidKey()
           
 void testInputSymbolRequired()
           
 void testInvalidKeyLet()
           
 void testInvalidKeySet()
           
 void testLet()
          Test the ability of the let element to create an output symbol.
 void testNameAppend()
           
 void testSet()
           
 void testSimple()
          Simple test where the body and initialization are static.
 void testUnique()
          Test the <unique> element, new in the 1.3 DTD
 void testUniqueLet()
          Test the unique attribute on the <let> element.
 
Methods inherited from class org.apache.tapestry.junit.TapestryTestCase
checkException, checkList, checkList, checkProperty, createValueConverter, getSpecificationResourceLocation, newBindingSource, newComponent, parseApp, parseComponent, parseLib, parsePage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestScript

public TestScript()
Method Detail

reset

public void reset()

createExpressionEvaluator

protected ExpressionEvaluator createExpressionEvaluator()

testSimple

public void testSimple()
                throws Exception
Simple test where the body and initialization are static.

Throws:
Exception

testUnique

public void testUnique()
                throws Exception
Test the <unique> element, new in the 1.3 DTD

Throws:
Exception
Since:
3.0

testEmpty

public void testEmpty()
               throws Exception
Test omitting body and initialization, ensure they return null.

Throws:
Exception

testLet

public void testLet()
             throws Exception
Test the ability of the let element to create an output symbol. Also, test the insert element.

Throws:
Exception

testUniqueLet

public void testUniqueLet()
                   throws Exception
Test the unique attribute on the <let> element. New in the 1.3 DTD

Throws:
Exception
Since:
3.0

testIncludeScript

public void testIncludeScript()
                       throws Exception
Throws:
Exception

testAntSyntax

public void testAntSyntax()
                   throws Exception
Throws:
Exception

testSet

public void testSet()
             throws Exception
Throws:
Exception

testInvalidKeyLet

public void testInvalidKeyLet()
                       throws Exception
Throws:
Exception

testInvalidKeySet

public void testInvalidKeySet()
                       throws Exception
Throws:
Exception

testInputSymbolClass

public void testInputSymbolClass()
                          throws Exception
Throws:
Exception

testInputSymbol

public void testInputSymbol()
                     throws Exception
Throws:
Exception

testInputSymbolRequired

public void testInputSymbolRequired()
                             throws Exception
Throws:
Exception

testInputSymbolInvalidKey

public void testInputSymbolInvalidKey()
                               throws Exception
Throws:
Exception

testNameAppend

public void testNameAppend()
                    throws Exception
Throws:
Exception
Since:
3.0

testCheats

public void testCheats()
                throws Exception
A bunch of quickies to push up the code coverage numbers.

Throws:
Exception


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.