1 package net.pterodactylus.sone.core
3 import com.google.inject.Guice.createInjector
4 import net.pterodactylus.sone.test.bindMock
5 import org.hamcrest.MatcherAssert.assertThat
6 import org.hamcrest.Matchers.notNullValue
10 * Unit test for [ElementLoader].
12 class ElementLoaderTest {
15 fun `default image loader can be loaded by guice`() {
16 val injector = createInjector(bindMock<FreenetInterface>())
17 assertThat(injector.getInstance(ElementLoader::class.java), notNullValue())