Android
junit.extensions
public class

junit.extensions.TestSetup

java.lang.Object
junit.framework.Assert
junit.extensions.TestDecorator Test
junit.extensions.TestSetup

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.

Summary

Fields inherited from class junit.extensions.TestDecorator

Public Constructors

            TestSetup(Test test)

Public Methods

          void  run(TestResult result)
Runs a test and collects its result in a TestResult instance.

Protected Methods

          void  setUp()
Sets up the fixture.
          void  tearDown()
Tears down the fixture.
Methods inherited from class junit.extensions.TestDecorator
Methods inherited from class junit.framework.Assert
Methods inherited from class java.lang.Object
Methods inherited from interface junit.framework.Test

Details

Public Constructors

public TestSetup(Test test)

Public Methods

public void run(TestResult result)

Runs a test and collects its result in a TestResult instance.

Protected Methods

protected void setUp()

Sets up the fixture. Override to set up additional fixture state.

Throws

Exception

protected void tearDown()

Tears down the fixture. Override to tear down the additional fixture state.

Throws

Exception
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48