From 427cbaa42bc0a6d5ba5ba8bbe9516724fd2875b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 11 Nov 2024 07:56:03 +0100 Subject: [PATCH] =?utf8?q?=E2=9C=85=20Add=20basic=20test=20for=20reaction?= =?utf8?q?=20loader?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../rhynodge/loader/ReactionLoaderTest.kt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/test/kotlin/net/pterodactylus/rhynodge/loader/ReactionLoaderTest.kt diff --git a/src/test/kotlin/net/pterodactylus/rhynodge/loader/ReactionLoaderTest.kt b/src/test/kotlin/net/pterodactylus/rhynodge/loader/ReactionLoaderTest.kt new file mode 100644 index 0000000..c20a362 --- /dev/null +++ b/src/test/kotlin/net/pterodactylus/rhynodge/loader/ReactionLoaderTest.kt @@ -0,0 +1,19 @@ +package net.pterodactylus.rhynodge.loader + +import com.google.inject.Guice +import net.pterodactylus.util.inject.ObjectBinding +import org.junit.jupiter.api.Test + +class ReactionLoaderTest { + + @Test + fun `reaction loader can be created by guice`() { + val injector = Guice.createInjector( + ObjectBinding.forClass(String::class.java).named("smtpHostname").`is`("host"), + ObjectBinding.forClass(String::class.java).named("emailSender").`is`("sender"), + ObjectBinding.forClass(String::class.java).named("emailRecipient").`is`("recipient"), + ) + injector.getInstance(ReactionLoader::class.java) + } + +} -- 2.7.4