org.seasar.framework.unit
クラス S2TestClassMethodsRunner

java.lang.Object
  上位を拡張 org.junit.runner.Runner
      上位を拡張 org.seasar.framework.unit.S2TestClassMethodsRunner
すべての実装されたインタフェース:
org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

public class S2TestClassMethodsRunner
extends org.junit.runner.Runner
implements org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable

作成者:
taedium

入れ子のクラスの概要
static class S2TestClassMethodsRunner.DefaultProvider
           
static interface S2TestClassMethodsRunner.Provider
           
 
フィールドの概要
protected static S2TestClassMethodsRunner.Provider provider
           
protected  Class<?> testClass
           
protected  List<Method> testMethods
           
 
コンストラクタの概要
S2TestClassMethodsRunner(Class<?> clazz)
           
 
メソッドの概要
protected  void addFailure(Throwable targetException, org.junit.runner.notification.RunNotifier notifier)
           
protected  S2TestMethodRunner createMethodRunner(Object test, Method method, org.junit.runner.notification.RunNotifier notifier)
           
protected  Object createTest()
           
static void dispose()
           
 void filter(org.junit.runner.manipulation.Filter filter)
           
protected  List<Method> getAfterClassMethods()
           
protected  List<Method> getBeforeClassMethods()
           
 org.junit.runner.Description getDescription()
           
protected  String getName()
           
protected static S2TestClassMethodsRunner.Provider getProvider()
           
protected  Class<?> getTestClass()
           
protected  List<Method> getTestMethods()
           
protected  void invokeTestMethod(Method method, org.junit.runner.notification.RunNotifier notifier)
           
protected  org.junit.runner.Description methodDescription(Method method)
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
protected  void runAfters(org.junit.runner.notification.RunNotifier notifier)
           
protected  void runBefores(org.junit.runner.notification.RunNotifier notifier)
           
protected static void setProvider(S2TestClassMethodsRunner.Provider p)
           
 void sort(org.junit.runner.manipulation.Sorter sorter)
           
protected  void testAborted(org.junit.runner.notification.RunNotifier notifier, org.junit.runner.Description description, Throwable cause)
           
protected  String testName(Method method)
           
 
クラス org.junit.runner.Runner から継承されたメソッド
testCount
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

provider

protected static S2TestClassMethodsRunner.Provider provider

testMethods

protected final List<Method> testMethods

testClass

protected final Class<?> testClass
コンストラクタの詳細

S2TestClassMethodsRunner

public S2TestClassMethodsRunner(Class<?> clazz)
メソッドの詳細

dispose

public static void dispose()

run

public void run(org.junit.runner.notification.RunNotifier notifier)
定義:
クラス org.junit.runner.Runner 内の run

runBefores

protected void runBefores(org.junit.runner.notification.RunNotifier notifier)
                   throws org.seasar.framework.unit.S2TestClassMethodsRunner.FailedBefore
例外:
org.seasar.framework.unit.S2TestClassMethodsRunner.FailedBefore

runAfters

protected void runAfters(org.junit.runner.notification.RunNotifier notifier)

addFailure

protected void addFailure(Throwable targetException,
                          org.junit.runner.notification.RunNotifier notifier)

testAborted

protected void testAborted(org.junit.runner.notification.RunNotifier notifier,
                           org.junit.runner.Description description,
                           Throwable cause)

getTestMethods

protected List<Method> getTestMethods()

getBeforeClassMethods

protected List<Method> getBeforeClassMethods()

getAfterClassMethods

protected List<Method> getAfterClassMethods()

getDescription

public org.junit.runner.Description getDescription()
定義:
クラス org.junit.runner.Runner 内の getDescription

getName

protected String getName()

createTest

protected Object createTest()
                     throws Exception
例外:
Exception

invokeTestMethod

protected void invokeTestMethod(Method method,
                                org.junit.runner.notification.RunNotifier notifier)

createMethodRunner

protected S2TestMethodRunner createMethodRunner(Object test,
                                                Method method,
                                                org.junit.runner.notification.RunNotifier notifier)

testName

protected String testName(Method method)

methodDescription

protected org.junit.runner.Description methodDescription(Method method)

filter

public void filter(org.junit.runner.manipulation.Filter filter)
            throws org.junit.runner.manipulation.NoTestsRemainException
定義:
インタフェース org.junit.runner.manipulation.Filterable 内の filter
例外:
org.junit.runner.manipulation.NoTestsRemainException

sort

public void sort(org.junit.runner.manipulation.Sorter sorter)
定義:
インタフェース org.junit.runner.manipulation.Sortable 内の sort

getTestClass

protected Class<?> getTestClass()

getProvider

protected static S2TestClassMethodsRunner.Provider getProvider()

setProvider

protected static void setProvider(S2TestClassMethodsRunner.Provider p)


Copyright © 2005-2007 The Seasar Foundation. All Rights Reserved.