Interface ILightkeeperFramework

All Superinterfaces:
AutoCloseable

public interface ILightkeeperFramework extends AutoCloseable
LightKeeper end-to-end test framework entrypoint.

The framework surface is organised into facets, each returned by an accessor: server(), worlds(), bots(), and events().

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the bots facet: join synthetic players into a world, or configure one via a builder.
    void
     
    Gets the events facet: capture Bukkit events for later inspection.
    Gets the server-control facet: command execution, console output, platform, filesystem access, process lifecycle, tick counter, and captured server errors.
    void
    waitUntil(Condition condition, Duration timeout)
    Waits until a condition is true or timeout expires.
    Gets the worlds facet: create worlds from defaults, specs, or provisioned templates, or via a builder.
  • Method Details

    • server

      IServerControl server()
      Gets the server-control facet: command execution, console output, platform, filesystem access, process lifecycle, tick counter, and captured server errors.
      Returns:
      The server-control facet.
    • worlds

      IWorlds worlds()
      Gets the worlds facet: create worlds from defaults, specs, or provisioned templates, or via a builder.
      Returns:
      The worlds facet.
    • bots

      IBots bots()
      Gets the bots facet: join synthetic players into a world, or configure one via a builder.
      Returns:
      The bots facet.
    • events

      IEvents events()
      Gets the events facet: capture Bukkit events for later inspection.
      Returns:
      The events facet.
    • waitUntil

      void waitUntil(Condition condition, Duration timeout)
      Waits until a condition is true or timeout expires.
      Parameters:
      condition - The condition.
      timeout - Timeout duration.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable