Package com.consol.citrus.junit
Class CitrusFrameworkMethod
- java.lang.Object
-
- org.junit.runners.model.FrameworkMember<org.junit.runners.model.FrameworkMethod>
-
- org.junit.runners.model.FrameworkMethod
-
- com.consol.citrus.junit.CitrusFrameworkMethod
-
- All Implemented Interfaces:
TestSourceAware,org.junit.runners.model.Annotatable
public class CitrusFrameworkMethod extends org.junit.runners.model.FrameworkMethod implements TestSourceAware
Special framework method also holding test name and package coming fromCitrusTestorCitrusXmlTestannotation. This way execution can decide which test to invoke when annotation has more than one test name defined or package scan is used in annotation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCitrusFrameworkMethod.Runner
-
Constructor Summary
Constructors Constructor Description CitrusFrameworkMethod(Method method, String testName, String packageName)Returns a newFrameworkMethodformethod
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String key)Gets attribute value from framework method.StringgetPackageName()Gets the test package name.StringgetSource()Gets the test source.StringgetTestName()Gets the test name.voidsetAttribute(String key, Object value)Adds attribute value to framework method.voidsetSource(String source)-
Methods inherited from class org.junit.runners.model.FrameworkMethod
equals, getAnnotation, getAnnotations, getDeclaringClass, getMethod, getModifiers, getName, getReturnType, getType, hashCode, invokeExplosively, isShadowedBy, producesType, toString, validateNoTypeParametersOnArgs, validatePublicVoid, validatePublicVoidNoArg
-
-
-
-
Method Detail
-
getTestName
public String getTestName()
Gets the test name.- Returns:
-
getPackageName
public String getPackageName()
Gets the test package name.- Returns:
-
setSource
public void setSource(String source)
- Specified by:
setSourcein interfaceTestSourceAware
-
getSource
public String getSource()
Gets the test source.- Returns:
-
setAttribute
public void setAttribute(String key, Object value)
Adds attribute value to framework method.- Parameters:
key-value-
-
-