Package net.thucydides.core.adapters
Class MultiStrategyAdapter
java.lang.Object
net.thucydides.core.adapters.MultiStrategyAdapter
- All Implemented Interfaces:
TestStrategyAdapter
public class MultiStrategyAdapter extends java.lang.Object implements TestStrategyAdapter
-
Constructor Summary
Constructors Constructor Description MultiStrategyAdapter()MultiStrategyAdapter(java.util.List<TestStrategyAdapter> strategies) -
Method Summary
Modifier and Type Method Description java.util.List<TestTag>getTagsFor(java.lang.reflect.Method testMethod)java.util.Optional<java.lang.String>getTitleAnnotation(java.lang.reflect.Method testMethod)booleanisAssumptionViolatedException(java.lang.Throwable throwable)booleanisATaggableClass(java.lang.Class<?> testClass)booleanisIgnored(java.lang.reflect.Method method)booleanisSerenityTestCase(java.lang.Class<?> testClass)booleanisTestClass(java.lang.Class<?> testClass)booleanisTestMethod(java.lang.reflect.Method method)booleanisTestSetupMethod(java.lang.reflect.Method method)java.lang.Doublepriority()Indicates the priority this adopter should take when multiple adapters are found on the classpath.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MultiStrategyAdapter
public MultiStrategyAdapter() -
MultiStrategyAdapter
-
-
Method Details
-
getTitleAnnotation
public java.util.Optional<java.lang.String> getTitleAnnotation(java.lang.reflect.Method testMethod)- Specified by:
getTitleAnnotationin interfaceTestStrategyAdapter
-
getTagsFor
- Specified by:
getTagsForin interfaceTestStrategyAdapter
-
priority
public java.lang.Double priority()Description copied from interface:TestStrategyAdapterIndicates the priority this adopter should take when multiple adapters are found on the classpath. Adapters with higher prioity will be prefered.- Specified by:
priorityin interfaceTestStrategyAdapter
-
isTestClass
public boolean isTestClass(java.lang.Class<?> testClass)- Specified by:
isTestClassin interfaceTestStrategyAdapter
-
isTestMethod
public boolean isTestMethod(java.lang.reflect.Method method)- Specified by:
isTestMethodin interfaceTestStrategyAdapter
-
isTestSetupMethod
public boolean isTestSetupMethod(java.lang.reflect.Method method)- Specified by:
isTestSetupMethodin interfaceTestStrategyAdapter
-
isSerenityTestCase
public boolean isSerenityTestCase(java.lang.Class<?> testClass)- Specified by:
isSerenityTestCasein interfaceTestStrategyAdapter
-
isAssumptionViolatedException
public boolean isAssumptionViolatedException(java.lang.Throwable throwable)- Specified by:
isAssumptionViolatedExceptionin interfaceTestStrategyAdapter
-
isATaggableClass
public boolean isATaggableClass(java.lang.Class<?> testClass)- Specified by:
isATaggableClassin interfaceTestStrategyAdapter
-
isIgnored
public boolean isIgnored(java.lang.reflect.Method method)- Specified by:
isIgnoredin interfaceTestStrategyAdapter
-