All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ajug.jsl.jester.cases.TestContext

java.lang.Object
   |
   +----org.ajug.jsl.jester.cases.TestContext

public class TestContext
extends Object
This class provides a test with the context the test uses to go about its business when it needs outside assistance. This is the Context Pattern, which enshrounds a class with no view at all of the rest of the system except through the controlled avenue of a context. For example see Applet.getAppletontext().

A context has properties the test may use. Property creation is be done by the factory method createProperty(...).

TODO - Document methods, add convenience methods for long, double, boolean, String. Add PropertyNotFoundException and use it. See Jack for convenience suggestions.


Constructor Index

 o TestContext()

Method Index

 o addProperty(Property)
 o addProperty(String, Object, boolean)
 o getAssertionCount()
 o getInt(String)
 o getObject(String)
 o getProperty(String)
 o hasProperty(String)
 o incrementAssertionCount()
 o listProperties()

Constructors

 o TestContext
 public TestContext()

Methods

 o addProperty
 public void addProperty(String name,
                         Object value,
                         boolean isInherited)
 o getProperty
 public Property getProperty(String name)
 o addProperty
 public void addProperty(Property property)
 o hasProperty
 public boolean hasProperty(String name)
 o listProperties
 public Enumeration listProperties()
 o getObject
 public Object getObject(String name)
 o incrementAssertionCount
 public void incrementAssertionCount()
 o getAssertionCount
 public int getAssertionCount()
 o getInt
 public int getInt(String name)

All Packages  Class Hierarchy  This Package  Previous  Next  Index