import freenet.node.Node
import freenet.node.NodeClientCore
import freenet.pluginmanager.PluginRespirator
-import net.pterodactylus.sone.test.TestUtil
-import net.pterodactylus.sone.test.deepMock
-import net.pterodactylus.sone.test.whenever
+import net.pterodactylus.sone.test.*
import org.junit.Test
/**
private val uskManager = deepMock<USKManager>()
init {
- TestUtil.setFinalField(node, "clientCore", clientCore)
+ setField(node, "clientCore", clientCore)
whenever(pluginRespirator.node).thenReturn(node)
- TestUtil.setFinalField(clientCore, "uskManager", uskManager)
+ setField(clientCore, "uskManager", uskManager)
}
@Test