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(IPropertyHolder h, String propertyName, String expectedValue)
           
protected  ValueConverter createValueConverter()
           
protected  org.apache.hivemind.Resource getSpecificationResourceLocation(String simpleName)
           
protected  org.apache.tapestry.junit.TapestryTestCase.BindingSourceFixture newBindingSource()
           
protected  IComponent newComponent()
           
protected  IApplicationSpecification parseApp(String simpleName)
           
protected  IComponentSpecification parseComponent(String simpleName)
           
protected  ILibrarySpecification parseLib(String simpleName)
           
protected  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 IComponentSpecification parseComponent(String simpleName)
                                          throws Exception
Throws:
Exception

parsePage

protected IComponentSpecification parsePage(String simpleName)
                                     throws Exception
Throws:
Exception

parseApp

protected IApplicationSpecification parseApp(String simpleName)
                                      throws Exception
Throws:
Exception

getSpecificationResourceLocation

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

parseLib

protected 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(IPropertyHolder h,
                                 String propertyName,
                                 String expectedValue)

checkException

public static void checkException(Throwable ex,
                                  String string)

createValueConverter

protected ValueConverter createValueConverter()

newComponent

protected IComponent newComponent()


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