Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public enum BackendTest.WebEnvironment
- Object
- Enum<BackendTest.WebEnvironment>
- BackendTest.WebEnvironment
ImplementsComparable<BackendTest.WebEnvironment>
How a
BackendTest reaches the application.Enum constants
MOCK | In process, through MockMvc: no request crosses a socket. |
RANDOM_PORT | Served on a free port, which LocalServerPort names. |
DEFINED_PORT | Served on the configured cn1.server.port. |
NONE | The beans only; the test makes no requests. |
Methods
public static BackendTest.WebEnvironment[] values() | |
public static BackendTest.WebEnvironment valueOf(String name) |
Inherited methods
Enum constant details
MOCK
MOCKIn process, through
MockMvc: no request crosses a socket.RANDOM_PORT
RANDOM_PORTServed on a free port, which
LocalServerPort names.DEFINED_PORT
DEFINED_PORTServed on the configured
cn1.server.port.NONE
NONEThe beans only; the test makes no requests. The application still
listens on a free loopback port, as
MOCK does: its server is also
what owns the threads its tasks run on, so it does not start without one.Method details
values
public static BackendTest.WebEnvironment[] values()valueOf
public static BackendTest.WebEnvironment valueOf(String name)