org.seasar.junitcdi.core.event
クラス TestInfo

java.lang.Object
  上位を拡張 org.seasar.junitcdi.core.event.TestInfo

public class TestInfo
extends Object

実行中のテストの情報です.

作成者:
koichik

フィールドの概要
protected  Bean<?> bean
          テストクラスのbean定義
protected  Description description
          テストの記述
protected  Object instance
          テストのインスタンス
protected  Method method
          テストメソッド
protected  Throwable throwable
          テストメソッドがスローした例外
 
コンストラクタの概要
TestInfo(Description description, Bean<?> bean, Object instance)
          インスタンスを構築します.
TestInfo(Description description, Bean<?> bean, Object instance, Method method)
          インスタンスを構築します.
TestInfo(Description description, Bean<?> bean, Object instance, Method method, Throwable throwable)
          インスタンスを構築します.
 
メソッドの概要
 Bean<?> getBean()
          テストクラスのbean定義を返します.
 Description getDescription()
          テストの記述を返します.
 Class<? extends Throwable> getExpectedException()
          テストメソッドが期待する例外を返します.
 Object getInstance()
          テストのインスタンスを返します.
 Method getMethod()
          テストメソッドを返します.
 Throwable getThrowable()
          テストメソッドがスローした例外を返します.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

description

protected final Description description
テストの記述


bean

protected final Bean<?> bean
テストクラスのbean定義


instance

protected final Object instance
テストのインスタンス


method

protected final Method method
テストメソッド


throwable

protected final Throwable throwable
テストメソッドがスローした例外

コンストラクタの詳細

TestInfo

public TestInfo(Description description,
                Bean<?> bean,
                Object instance)
インスタンスを構築します.

パラメータ:
description - テストの記述
bean - テストクラスのbean定義
instance - テストのインスタンス

TestInfo

public TestInfo(Description description,
                Bean<?> bean,
                Object instance,
                Method method)
インスタンスを構築します.

パラメータ:
description - テストの記述
bean - テストクラスのbean定義
instance - テストのインスタンス
method - テストメソッド

TestInfo

public TestInfo(Description description,
                Bean<?> bean,
                Object instance,
                Method method,
                Throwable throwable)
インスタンスを構築します.

パラメータ:
description - テストの記述
bean - テストクラスのbean定義
instance - テストのインスタンス
method - テストメソッド
throwable - テストメソッドがスローした例外
メソッドの詳細

getDescription

public Description getDescription()
テストの記述を返します.

戻り値:
テストの記述

getBean

public Bean<?> getBean()
テストクラスのbean定義を返します.

戻り値:
テストクラスのbean定義

getInstance

public Object getInstance()
テストのインスタンスを返します.

戻り値:
テストのインスタンス

getMethod

public Method getMethod()
テストメソッドを返します.

戻り値:
テストメソッド

getExpectedException

public Class<? extends Throwable> getExpectedException()
テストメソッドが期待する例外を返します.

戻り値:
テストメソッドが期待する例外

getThrowable

public Throwable getThrowable()
テストメソッドがスローした例外を返します.

戻り値:
テストメソッドがスローした例外


Copyright © 2010 The Seasar Foundation. All Rights Reserved.