FakeServer

class FakeServer(val platform: FakePlatform = FakePlatform())

Fully controllable fake server runtime.

Purpose

  • Allows testing KTale-based plugins without any real server.

  • Provides deterministic time + manual scheduler execution.

  • Provides event simulation by posting into the core event bus.

Constructors

Link copied to clipboard
constructor(platform: FakePlatform = FakePlatform())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun <E : Event> post(event: E): E

Posts an event into the core event bus.

Link copied to clipboard
fun runPlugin(pluginId: String, plugin: KtalePlugin, block: (PluginContext) -> Unit = {})

Simulates the plugin lifecycle using the fake runtime.