Enum RefreshEachTimeBefore

    • Enum Constant Detail

      • SUITE_STARTING

        public static final RefreshEachTimeBefore SUITE_STARTING
        This element is used to define the strategy to invoke the ContextRefreshable.refreshContext() each time before the first method annotated by BeforeSuite is run.
      • TEST_STARTING

        public static final RefreshEachTimeBefore TEST_STARTING
        This element is used to define the strategy to invoke the ContextRefreshable.refreshContext() each time before the first annotated by BeforeTest is run.

        Rule:

        ContextRefreshable.refreshContext() is invoked when:

        1. ContextRefreshable.refreshContext() has not been invoked before any BeforeSuite/BeforeTest-method.
      • CLASS_STARTING

        public static final RefreshEachTimeBefore CLASS_STARTING
        This element is used to define the strategy to invoke the ContextRefreshable.refreshContext() each time before the first BeforeClass - method of a class is run.

        Rule:

        ContextRefreshable.refreshContext() is invoked when:

        1. ContextRefreshable.refreshContext() has not been invoked before some BeforeSuite/BeforeTest/BeforeClass-method and any Test-method has not been invoked yet.

        2. ContextRefreshable.refreshContext() has not been invoked before some BeforeClass-method and any Test-method has not been invoked yet.
      • GROUP_STARTING

        public static final RefreshEachTimeBefore GROUP_STARTING
        This element is used to define the strategy to invoke the ContextRefreshable.refreshContext() each time before the first BeforeGroups - method of a group is run.
      • BEFORE_METHOD_STARTING

        public static final RefreshEachTimeBefore BEFORE_METHOD_STARTING
        This element is used to define the strategy to invoke the ContextRefreshable.refreshContext() each time before the first method annotated by BeforeMethod is run before any test.

        Rule:

        ContextRefreshable.refreshContext() is invoked when:

        1. ContextRefreshable.refreshContext() has not been invoked before some BeforeSuite/BeforeTest/BeforeClass/BeforeGroups/ BeforeMethod-method and any Test-method has not been invoked yet.

        2. ContextRefreshable.refreshContext() has not been invoked before some BeforeMethod-method and any Test-method has not been invoked yet.
      • METHOD_STARTING

        public static final RefreshEachTimeBefore METHOD_STARTING
        This element is used to define the strategy to invoke the ContextRefreshable.refreshContext() each time before any method annotated by Test is run.

        Rule:

        ContextRefreshable.refreshContext() is invoked when:

        1. ContextRefreshable.refreshContext() has not been invoked before some BeforeSuite/BeforeTest/BeforeClass/BeforeGroups/ BeforeMethod-method and any Test-method has not been invoked yet.

        2. ContextRefreshable.refreshContext() has not been invoked before some BeforeMethod-method and any Test-method has not been invoked yet.
    • Method Detail

      • values

        public static RefreshEachTimeBefore[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RefreshEachTimeBefore c : RefreshEachTimeBefore.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RefreshEachTimeBefore valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null