org.apache.tapestry.junit
Class TapestryTestCase

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.junit.TapestryTestCase
Direct Known Subclasses:
BaseValidatorTestCase, ContentTypeTest, FormComponentContributorTestCase, TestAbsoluteURLBuilder, TestApplicationSpecification, TestComponentMessages, TestComponentSpecification, TestIdAllocator, TestListEditMap, TestLocalizedProperties, TestMultipart, TestRegexpMatcher, TestScript, TestSpecificationParser, TestStaticLink, TestTapestryCheckMethodInvocation, TestValidatorFactory

public abstract class TapestryTestCase
extends BaseComponentTestCase

Base class for Tapestry test cases.

Since:
2.2
Author:
Howard Lewis Ship

Field Summary
protected static boolean IS_JDK13
           
 
Constructor Summary
TapestryTestCase()
           
 
Method Summary
static void checkException(Throwable ex, String string)
           
static void checkList(String propertyName, Object[] expected, List actual)
           
static void checkList(String propertyName, Object[] expected, Object[] actual)
           
static void checkProperty(org.apache.tapestry.util.IPropertyHolder h, String propertyName, String expectedValue)
           
protected  org.apache.tapestry.coerce.ValueConverter createValueConverter()
           
protected  org.apache.hivemind.Resource getSpecificationResourceLocation(String simpleName)
           
protected  org.apache.tapestry.junit.TapestryTestCase.BindingSourceFixture newBindingSource()
           
protected  org.apache.tapestry.IComponent newComponent()
           
protected  org.apache.tapestry.spec.IApplicationSpecification parseApp(String simpleName)
           
protected  org.apache.tapestry.spec.IComponentSpecification parseComponent(String simpleName)
           
protected  org.apache.tapestry.spec.ILibrarySpecification parseLib(String simpleName)
           
protected  org.apache.tapestry.spec.IComponentSpecification parsePage(String simpleName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_JDK13

protected static final boolean IS_JDK13
Constructor Detail

TapestryTestCase

public TapestryTestCase()
Method Detail

newBindingSource

protected org.apache.tapestry.junit.TapestryTestCase.BindingSourceFixture newBindingSource()
Since:
4.0

parseComponent

protected org.apache.tapestry.spec.IComponentSpecification parseComponent(String simpleName)
                                                                   throws Exception
Throws:
Exception

parsePage

protected org.apache.tapestry.spec.IComponentSpecification parsePage(String simpleName)
                                                              throws Exception
Throws:
Exception

parseApp

protected org.apache.tapestry.spec.IApplicationSpecification parseApp(String simpleName)
                                                               throws Exception
Throws:
Exception

getSpecificationResourceLocation

protected org.apache.hivemind.Resource getSpecificationResourceLocation(String simpleName)

parseLib

protected org.apache.tapestry.spec.ILibrarySpecification parseLib(String simpleName)
                                                           throws Exception
Throws:
Exception

checkList

public static void checkList(String propertyName,
                             Object[] expected,
                             Object[] actual)

checkList

public static void checkList(String propertyName,
                             Object[] expected,
                             List actual)

checkProperty

public static void checkProperty(org.apache.tapestry.util.IPropertyHolder h,
                                 String propertyName,
                                 String expectedValue)

checkException

public static void checkException(Throwable ex,
                                  String string)

createValueConverter

protected org.apache.tapestry.coerce.ValueConverter createValueConverter()

newComponent

protected org.apache.tapestry.IComponent newComponent()


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