public class SpringProfileConstants extends Object
String
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).@ActiveProfile
annotation.Modifier and Type | Field and 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 and Description |
---|
SpringProfileConstants() |
public static final String JUNIT
public static final String NOT_JUNIT
public static final String DEV
public static final String NOT_DEV
JUNIT
or real stages).public static final String MODULE_TEST
public static final String COMPONENT_TEST
public static final String SUBSYSTEM_TEST
public static final String SYSTEM_TEST
Copyright © 2014–2019 devon4j-Team. All rights reserved.