Class SpringProfileConstants
- java.lang.Object
-
- com.devonfw.module.basic.common.api.config.SpringProfileConstants
-
public class SpringProfileConstants extends Object
This class providesString
constants which allow to distinguish several bean definition profiles. The constants should be used in@Profile
annotations to avoid multiple points of failure (e.g., through typos within annotations).
In test scenarios, these constants should be used in conjunction with the@ActiveProfile
annotation.- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_TEST
Profile for component tests.static String
DEV
Profile active in local development environment.static String
JUNIT
Profile active in JUnit tests.static String
MODULE_TEST
Profile for module tests.static String
NOT_DEV
Profile active if not in local development environment (JUNIT
or real stages).static String
NOT_JUNIT
Profile active if not in JUnit tests (on real application startup).static String
SUBSYSTEM_TEST
Profile for subsystem tests.static String
SYSTEM_TEST
Profile for system tests.
-
Constructor Summary
Constructors Constructor Description SpringProfileConstants()
-
-
-
Field Detail
-
JUNIT
public static final String JUNIT
Profile active in JUnit tests.- See Also:
- Constant Field Values
-
NOT_JUNIT
public static final String NOT_JUNIT
Profile active if not in JUnit tests (on real application startup).- See Also:
- Constant Field Values
-
DEV
public static final String DEV
Profile active in local development environment.- See Also:
- Constant Field Values
-
NOT_DEV
public static final String NOT_DEV
Profile active if not in local development environment (JUNIT
or real stages).- See Also:
- Constant Field Values
-
MODULE_TEST
public static final String MODULE_TEST
Profile for module tests.- See Also:
- Constant Field Values
-
COMPONENT_TEST
public static final String COMPONENT_TEST
Profile for component tests.- See Also:
- Constant Field Values
-
SUBSYSTEM_TEST
public static final String SUBSYSTEM_TEST
Profile for subsystem tests.- See Also:
- Constant Field Values
-
SYSTEM_TEST
public static final String SYSTEM_TEST
Profile for system tests.- See Also:
- Constant Field Values
-
-