Enum BackendTest.Feature

java.lang.Object
java.lang.Enum<BackendTest.Feature>
com.codename1.backend.test.BackendTest.Feature
All Implemented Interfaces:
Comparable<BackendTest.Feature>
Enclosing class:
BackendTest

public static enum BackendTest.Feature extends Enum<BackendTest.Feature>
A production feature BackendTest.features() can add to the test's application.
  • Enum Constant Details

    • MANAGEMENT

      public static final BackendTest.Feature MANAGEMENT
      The management endpoints, at cn1.management.path and with cn1.management.token, as a test's settings give them. Turning them on also has the server record its own metrics.
    • TELEMETRY

      public static final BackendTest.Feature TELEMETRY
      The OpenTelemetry exporters, for traces and metrics, sending where the test's cn1.otel.* settings point -- an OtlpTestCollector, say.
    • MCP

      public static final BackendTest.Feature MCP
      The MCP endpoint, with the application's @McpTool methods.
    • AS_PACKAGED

      public static final BackendTest.Feature AS_PACKAGED
      Each of the above the module's build links into the packaged server: what cn1.management.enabled, cn1.otel.enabled or @OpenTelemetry, and cn1.mcp.enabled or an @McpTool turn on.
  • Method Details

    • values

      public static BackendTest.Feature[] 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

      public static BackendTest.Feature valueOf(String name)
      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 name
      NullPointerException - if the argument is null