Class CitrusFrameworkMethod

  • All Implemented Interfaces:
    org.junit.runners.model.Annotatable

    public class CitrusFrameworkMethod
    extends org.junit.runners.model.FrameworkMethod
    Special framework method also holding test name and package coming from CitrusTest or CitrusXmlTest annotation. 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.
    • Constructor Detail

      • CitrusFrameworkMethod

        public CitrusFrameworkMethod​(Method method,
                                     String testName,
                                     String packageName)
        Returns a new FrameworkMethod for method
        Parameters:
        method -
    • Method Detail

      • getTestName

        public String getTestName()
        Gets the test name.
        Returns:
      • getPackageName

        public String getPackageName()
        Gets the test package name.
        Returns:
      • setAttribute

        public void setAttribute​(String key,
                                 Object value)
        Adds attribute value to framework method.
        Parameters:
        key -
        value -
      • getAttribute

        public Object getAttribute​(String key)
        Gets attribute value from framework method.
        Parameters:
        key -
        Returns: