From: David ‘Bombe’ Roden Date: Mon, 11 Nov 2024 06:56:03 +0000 (+0100) Subject: ✅ Add basic test for reaction loader X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=427cbaa42bc0a6d5ba5ba8bbe9516724fd2875b7;p=rhynodge.git ✅ Add basic test for reaction loader --- 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) + } + +}