FileDocCategorySizeDatePackage
TestSetup.javaAPI DocAndroid 1.5 API847Wed May 06 22:41:02 BST 2009junit.extensions

TestSetup

public class TestSetup extends TestDecorator
A Decorator to set up and tear down additional fixture state. Subclass TestSetup and insert it into your tests when you want to set up additional state once before the tests are run.

Fields Summary
Constructors Summary
public TestSetup(Test test)

		super(test);
	
Methods Summary
public voidrun(junit.framework.TestResult result)

		Protectable p= new Protectable() {
			public void protect() throws Exception {
				setUp();
				basicRun(result);
				tearDown();
			}
		};
		result.runProtected(this, p);
	
protected voidsetUp()
Sets up the fixture. Override to set up additional fixture state.

	
protected voidtearDown()
Tears down the fixture. Override to tear down the additional fixture state.