org.progeeks.junit
Interface TestContext

All Superinterfaces:
StandardBean
All Known Implementing Classes:
DefaultTestContext

public interface TestContext
extends StandardBean

Represents the context for a a single test. Also provides the ability for the test to observe the changes to the context (through listeners) for validation of the test results.

Version:
$Revision: 1.3 $
Author:
Paul Wisneskey

Method Summary
 java.lang.String getDescription()
          Brief description of the key traits of this context.
 TestFixture getTestFixture()
          Returns the test fixture that can be used to set up and tear down this context.
 void setDescription(java.lang.String desc)
           
 void setTestFixture(TestFixture testFixture)
          Set the test fixture for setting up and tearing down this context.
 
Methods inherited from interface org.progeeks.util.beans.StandardBean
addPropertyChangeListener, addPropertyChangeListener, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Method Detail

getTestFixture

TestFixture getTestFixture()
Returns the test fixture that can be used to set up and tear down this context.


setTestFixture

void setTestFixture(TestFixture testFixture)
Set the test fixture for setting up and tearing down this context.


getDescription

java.lang.String getDescription()
Brief description of the key traits of this context. Used by ContextualTestCase when showing where an error occurred.


setDescription

void setDescription(java.lang.String desc)
Parameters:
desc - The desc to set.


Copyright © 2002-2003 Paul Speed. All Rights Reserved.