@Test
fun `default image loader can be loaded by guice`() {
val injector = createInjector(bindMock<FreenetInterface>())
- assertThat(injector.getInstance(ElementLoader::class.java), notNullValue());
+ assertThat(injector.getInstance(ElementLoader::class.java), notNullValue())
}
}
@Test
fun `filter does not replace values if there are no parameters`() {
translations["data"] = "{link}"
- assertThat(filter.format(templateContext, "data", emptyMap()), equalTo("{link}"));
+ assertThat(filter.format(templateContext, "data", emptyMap()), equalTo("{link}"))
}
}
init {
TestUtil.setFinalField(node, "clientCore", clientCore)
whenever(pluginRespirator.node).thenReturn(node)
- TestUtil.setFinalField(clientCore, "uskManager", uskManager);
+ TestUtil.setFinalField(clientCore, "uskManager", uskManager)
}
@Test