org.seasar.framework.unit.impl
クラス ConventionTestIntrospector

java.lang.Object
  上位を拡張 org.seasar.framework.unit.impl.AnnotationTestIntrospector
      上位を拡張 org.seasar.framework.unit.impl.ConventionTestIntrospector
すべての実装されたインタフェース:
S2TestIntrospector

public class ConventionTestIntrospector
extends AnnotationTestIntrospector

作成者:
taedium

フィールドの概要
protected  String afterClassMethodName
           
protected  String afterMethodName
           
protected  String beforeClassMethodName
           
protected  String beforeMethodName
           
protected  Set<Class<? extends Annotation>> nonTestAnnotations
           
protected  Set<Pattern> nonTestMethodNamePatterns
           
protected  String recordMethodName
           
 
クラス org.seasar.framework.unit.impl.AnnotationTestIntrospector から継承されたフィールド
afterAnnotation, afterClassAnnotation, beforeAnnotation, beforeClassAnnotation, enableIgnore, enablePrerequisite
 
コンストラクタの概要
ConventionTestIntrospector()
           
 
メソッドの概要
 void addNonTestAnnotation(Class<? extends Annotation> annotation)
           
 void addNonTestMethodNamePattern(String pattern)
           
 List<Method> getAfterClassMethods(Class<?> clazz)
           
 List<Method> getAfterMethods(Class<?> clazz)
           
 List<Method> getBeforeClassMethods(Class<?> clazz)
           
 List<Method> getBeforeMethods(Class<?> clazz)
           
 Method getEachAfterMethod(Class<?> clazz, Method method)
           
 Method getEachBeforeMethod(Class<?> clazz, Method method)
           
 Method getEachRecordMethod(Class<?> clazz, Method method)
           
protected  Method getMethod(Class<?> clazz, String methodName)
           
protected  List<Class<?>> getSuperClasses(Class<?> clazz)
           
 List<Method> getTestMethods(Class<?> clazz)
           
protected  boolean hasNonTestAnnotation(Method method)
           
protected  boolean hasNonTestMethodName(Method method)
           
protected  boolean hasValidNonStaticSignature(Method method)
           
protected  boolean hasValidSignature(Method method)
           
protected  boolean hasValidStaticSignature(Method method)
           
 void init()
           
protected  boolean isShadowed(Method method, List<Method> results)
           
protected  boolean isShadowed(Method current, Method previous)
           
protected  boolean isTestMethod(Method method)
           
 void setAfterClassMethodName(String afterClassMethodName)
           
 void setAfterMethodName(String afterMethodName)
           
 void setBeforeClassMethodName(String beforeClassMethodName)
           
 void setBeforeMethodName(String beforeMethodName)
           
 void setRecordMethodName(String recordMethodName)
           
 
クラス org.seasar.framework.unit.impl.AnnotationTestIntrospector から継承されたメソッド
createExpression, createMock, createMock, expectedException, getTimeout, getTxBehaviorType, isFulfilled, isFulfilled, isIgnored, needsTransaction, needsWarmDeploy, requiresTransactionCommitment, setAfterAnnotation, setAfterClassAnnotation, setBeforeAnnotation, setBeforeClassAnnotation, setEnableIgnore, setEnablePrerequisite
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

nonTestAnnotations

protected final Set<Class<? extends Annotation>> nonTestAnnotations

nonTestMethodNamePatterns

protected final Set<Pattern> nonTestMethodNamePatterns

beforeClassMethodName

protected String beforeClassMethodName

afterClassMethodName

protected String afterClassMethodName

beforeMethodName

protected String beforeMethodName

afterMethodName

protected String afterMethodName

recordMethodName

protected String recordMethodName
コンストラクタの詳細

ConventionTestIntrospector

public ConventionTestIntrospector()
メソッドの詳細

init

public void init()

setBeforeClassMethodName

public void setBeforeClassMethodName(String beforeClassMethodName)

setAfterClassMethodName

public void setAfterClassMethodName(String afterClassMethodName)

setBeforeMethodName

public void setBeforeMethodName(String beforeMethodName)

setAfterMethodName

public void setAfterMethodName(String afterMethodName)

setRecordMethodName

public void setRecordMethodName(String recordMethodName)

addNonTestAnnotation

public void addNonTestAnnotation(Class<? extends Annotation> annotation)

addNonTestMethodNamePattern

public void addNonTestMethodNamePattern(String pattern)

getBeforeClassMethods

public List<Method> getBeforeClassMethods(Class<?> clazz)
定義:
インタフェース S2TestIntrospector 内の getBeforeClassMethods
オーバーライド:
クラス AnnotationTestIntrospector 内の getBeforeClassMethods

getAfterClassMethods

public List<Method> getAfterClassMethods(Class<?> clazz)
定義:
インタフェース S2TestIntrospector 内の getAfterClassMethods
オーバーライド:
クラス AnnotationTestIntrospector 内の getAfterClassMethods

getBeforeMethods

public List<Method> getBeforeMethods(Class<?> clazz)
定義:
インタフェース S2TestIntrospector 内の getBeforeMethods
オーバーライド:
クラス AnnotationTestIntrospector 内の getBeforeMethods

getAfterMethods

public List<Method> getAfterMethods(Class<?> clazz)
定義:
インタフェース S2TestIntrospector 内の getAfterMethods
オーバーライド:
クラス AnnotationTestIntrospector 内の getAfterMethods

getEachBeforeMethod

public Method getEachBeforeMethod(Class<?> clazz,
                                  Method method)
定義:
インタフェース S2TestIntrospector 内の getEachBeforeMethod
オーバーライド:
クラス AnnotationTestIntrospector 内の getEachBeforeMethod

getEachAfterMethod

public Method getEachAfterMethod(Class<?> clazz,
                                 Method method)
定義:
インタフェース S2TestIntrospector 内の getEachAfterMethod
オーバーライド:
クラス AnnotationTestIntrospector 内の getEachAfterMethod

getEachRecordMethod

public Method getEachRecordMethod(Class<?> clazz,
                                  Method method)
定義:
インタフェース S2TestIntrospector 内の getEachRecordMethod
オーバーライド:
クラス AnnotationTestIntrospector 内の getEachRecordMethod

getTestMethods

public List<Method> getTestMethods(Class<?> clazz)
定義:
インタフェース S2TestIntrospector 内の getTestMethods
オーバーライド:
クラス AnnotationTestIntrospector 内の getTestMethods

getSuperClasses

protected List<Class<?>> getSuperClasses(Class<?> clazz)

isShadowed

protected boolean isShadowed(Method method,
                             List<Method> results)

isShadowed

protected boolean isShadowed(Method current,
                             Method previous)

isTestMethod

protected boolean isTestMethod(Method method)

hasNonTestAnnotation

protected boolean hasNonTestAnnotation(Method method)

hasNonTestMethodName

protected boolean hasNonTestMethodName(Method method)

hasValidStaticSignature

protected boolean hasValidStaticSignature(Method method)

hasValidNonStaticSignature

protected boolean hasValidNonStaticSignature(Method method)

hasValidSignature

protected boolean hasValidSignature(Method method)

getMethod

protected Method getMethod(Class<?> clazz,
                           String methodName)


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