junit.extensions
クラス TestSetup

java.lang.Object
  拡張junit.framework.Assert
      拡張junit.extensions.TestDecorator
          拡張junit.extensions.TestSetup
すべての実装インタフェース:
Test

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.


フィールドの概要
 
クラス junit.extensions.TestDecorator から継承したフィールド
fTest
 
コンストラクタの概要
TestSetup(Test test)
           
 
メソッドの概要
 void run(TestResult result)
          Runs a test and collects its result in a TestResult instance.
protected  void setUp()
          Sets up the fixture.
protected  void tearDown()
          Tears down the fixture.
 
クラス junit.extensions.TestDecorator から継承したメソッド
basicRun, countTestCases, getTest, toString
 
クラス junit.framework.Assert から継承したメソッド
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

TestSetup

public TestSetup(Test test)
メソッドの詳細

run

public void run(TestResult result)
インタフェース Test の記述:
Runs a test and collects its result in a TestResult instance.

定義:
インタフェース Test 内の run
オーバーライド:
クラス TestDecorator 内の run

setUp

protected void setUp()
              throws java.lang.Exception
Sets up the fixture. Override to set up additional fixture state.

例外:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tears down the fixture. Override to tear down the additional fixture state.

例外:
java.lang.Exception


Copyright © 2001-2004 JUnit.org. All Rights Reserved.