Class ConfigurationAnnotation

    • Field Detail

      • m_beforeTestClass

        private boolean m_beforeTestClass
      • m_afterTestClass

        private boolean m_afterTestClass
      • m_beforeTestMethod

        private boolean m_beforeTestMethod
      • m_afterTestMethod

        private boolean m_afterTestMethod
      • m_beforeTest

        private boolean m_beforeTest
      • m_afterTest

        private boolean m_afterTest
      • m_beforeSuite

        private boolean m_beforeSuite
      • m_afterSuite

        private boolean m_afterSuite
      • m_alwaysRun

        private boolean m_alwaysRun
      • m_inheritGroups

        private boolean m_inheritGroups
      • m_isBeforeGroups

        private boolean m_isBeforeGroups
      • m_isAfterGroups

        private boolean m_isAfterGroups
      • m_beforeGroups

        private java.lang.String[] m_beforeGroups
      • m_afterGroups

        private java.lang.String[] m_afterGroups
      • m_groupFilters

        private java.lang.String[] m_groupFilters
      • m_isFakeConfiguration

        private boolean m_isFakeConfiguration
      • m_firstTimeOnly

        private boolean m_firstTimeOnly
      • m_lastTimeOnly

        private boolean m_lastTimeOnly
    • Constructor Detail

      • ConfigurationAnnotation

        public ConfigurationAnnotation()
    • Method Detail

      • setAfterSuite

        public void setAfterSuite​(boolean afterSuite)
      • setAfterTest

        public void setAfterTest​(boolean afterTest)
      • setAfterTestClass

        public void setAfterTestClass​(boolean afterTestClass)
      • setAfterTestMethod

        public void setAfterTestMethod​(boolean afterTestMethod)
      • setAlwaysRun

        public void setAlwaysRun​(boolean alwaysRun)
      • setBeforeSuite

        public void setBeforeSuite​(boolean beforeSuite)
      • setBeforeTest

        public void setBeforeTest​(boolean beforeTest)
      • setBeforeTestClass

        public void setBeforeTestClass​(boolean beforeTestClass)
      • setBeforeTestMethod

        public void setBeforeTestMethod​(boolean beforeTestMethod)
      • setInheritGroups

        public void setInheritGroups​(boolean inheritGroups)
      • setIsBeforeGroups

        public void setIsBeforeGroups​(boolean isBeforeGroups)
      • setIsAfterGroups

        public void setIsAfterGroups​(boolean isAfterGroups)
      • getBeforeTestClass

        public boolean getBeforeTestClass()
        Specified by:
        getBeforeTestClass in interface IConfigurationAnnotation
        Returns:
        true if the annotated method will be run after the test class is instantiated and before the test method is invoked.
      • getAfterTestClass

        public boolean getAfterTestClass()
        Specified by:
        getAfterTestClass in interface IConfigurationAnnotation
        Returns:
        true if the annotated method will be run after all the tests in the test class have been run.
      • getBeforeTestMethod

        public boolean getBeforeTestMethod()
        Specified by:
        getBeforeTestMethod in interface IConfigurationAnnotation
        Returns:
        true true if the annotated method will be run before any test method is invoked.
      • getAfterTestMethod

        public boolean getAfterTestMethod()
        Specified by:
        getAfterTestMethod in interface IConfigurationAnnotation
        Returns:
        true if the annotated method will be run after any test method is invoked.
      • getBeforeSuite

        public boolean getBeforeSuite()
        Specified by:
        getBeforeSuite in interface IConfigurationAnnotation
        Returns:
        true if the annotated method will be run before this suite starts.
      • getAfterSuite

        public boolean getAfterSuite()
        Specified by:
        getAfterSuite in interface IConfigurationAnnotation
        Returns:
        true if the annotated method will be run after all tests in this suite have run.
      • getAfterTest

        public boolean getAfterTest()
        Specified by:
        getAfterTest in interface IConfigurationAnnotation
        Returns:
        true if the annotated method will be run after all every test.
      • getAfterGroups

        public java.lang.String[] getAfterGroups()
        Specified by:
        getAfterGroups in interface IConfigurationAnnotation
        Returns:
        The list of groups that this configuration method will run after.
      • setAfterGroups

        public void setAfterGroups​(java.lang.String[] afterGroups)
      • getBeforeGroups

        public java.lang.String[] getBeforeGroups()
        Specified by:
        getBeforeGroups in interface IConfigurationAnnotation
        Returns:
        The list of groups that this configuration method will run before.
      • setBeforeGroups

        public void setBeforeGroups​(java.lang.String[] beforeGroups)
      • getGroupFilters

        public java.lang.String[] getGroupFilters()
        Specified by:
        getGroupFilters in interface IBaseBeforeAfterMethod
        Returns:
        The list of groups the test method must belong to one of which.
      • setGroupFilters

        void setGroupFilters​(java.lang.String[] groupFilters)
      • setFakeConfiguration

        public void setFakeConfiguration​(boolean b)
      • isFakeConfiguration

        public boolean isFakeConfiguration()
        Description copied from interface: IConfigurationAnnotation
        Internal use only.
        Specified by:
        isFakeConfiguration in interface IConfigurationAnnotation
        Returns:
        true if this configuration annotation is not a "true" configuration annotation but a @BeforeSuite or similar that is represented as a configuration annotation.
      • setFirstTimeOnly

        public void setFirstTimeOnly​(boolean f)
      • isFirstTimeOnly

        public boolean isFirstTimeOnly()
      • setLastTimeOnly

        public void setLastTimeOnly​(boolean f)
      • isLastTimeOnly

        public boolean isLastTimeOnly()