✅ Add test for AlwaysTrigger
[rhynodge.git] / src / test / kotlin / net / pterodactylus / rhynodge / Testing.kt
1 package net.pterodactylus.rhynodge
2
3 import net.pterodactylus.rhynodge.output.Output
4 import net.pterodactylus.rhynodge.states.StateManagerTest.TestState
5
6 fun testQuery(state: State = TestState()): Query = TestQuery(state)
7 fun testAction(): Action = TestAction()
8
9 class TestQuery(private val state: State) : Query {
10         override fun state(): State = state
11 }
12
13 class TestAction : Action {
14         override fun execute(output: Output?) = Unit
15 }