aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/Main.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/kotlin/Main.kt')
-rw-r--r--src/test/kotlin/Main.kt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/kotlin/Main.kt b/src/test/kotlin/Main.kt
new file mode 100644
index 0000000..0933c97
--- /dev/null
+++ b/src/test/kotlin/Main.kt
@@ -0,0 +1,26 @@
+import me.bush.illnamethislater.*
+
+/**
+ * @author bush
+ * @since 3/13/2022
+ */
+fun main() {
+ EventBus().run {
+
+ subscribe(Subscriber())
+
+ post("Object()")
+
+ register(listener<String> {
+ println("it")
+ })
+ }
+}
+
+class Subscriber {
+// clean up and writr tests
+ @EventListener
+ fun onDeez() = listener(listener = { e: String ->
+ println(e.uppercase())
+ }, receiveCancelled = false, )
+}