Enum BackendTest.WebEnvironment
- All Implemented Interfaces:
Comparable<BackendTest.WebEnvironment>
- Enclosing class:
BackendTest
How a
BackendTest reaches the application.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionServed on the configuredcn1.server.port.In process, throughMockMvc: no request crosses a socket.The beans only; the test makes no requests.Served on a free port, whichLocalServerPortnames. -
Method Summary
Modifier and TypeMethodDescriptionstatic BackendTest.WebEnvironmentReturns the enum constant of this type with the specified name.static BackendTest.WebEnvironment[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
MOCK
In process, throughMockMvc: no request crosses a socket. -
RANDOM_PORT
Served on a free port, whichLocalServerPortnames. -
DEFINED_PORT
Served on the configuredcn1.server.port. -
NONE
The beans only; the test makes no requests. The application still listens on a free loopback port, asMOCKdoes: its server is also what owns the threads its tasks run on, so it does not start without one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-