Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public enum BackendTest.WebEnvironment

  1. Object
  2. Enum<BackendTest.WebEnvironment>
  3. BackendTest.WebEnvironment

ImplementsComparable<BackendTest.WebEnvironment>

How a BackendTest reaches the application.

Enum constants

MOCKIn process, through MockMvc: no request crosses a socket.
RANDOM_PORTServed on a free port, which LocalServerPort names.
DEFINED_PORTServed on the configured cn1.server.port.
NONEThe 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

MOCK
In process, through MockMvc: no request crosses a socket.

RANDOM_PORT

RANDOM_PORT
Served on a free port, which LocalServerPort names.

DEFINED_PORT

DEFINED_PORT
Served on the configured cn1.server.port.

NONE

NONE
The 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)