From: David ‘Bombe’ Roden Date: Sat, 26 Oct 2013 13:02:48 +0000 (+0200) Subject: Explicitely set initial state of FCP interface. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9f263aeceac0e0da5b140ea61858040128753de0;p=Sone.git Explicitely set initial state of FCP interface. --- diff --git a/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java b/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java index 6648d12..8fd09c1 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java +++ b/src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java @@ -20,6 +20,7 @@ package net.pterodactylus.sone.fcp; import static freenet.pluginmanager.FredPluginFCP.ACCESS_DIRECT; import static freenet.pluginmanager.FredPluginFCP.ACCESS_FCP_FULL; import static freenet.pluginmanager.FredPluginFCP.ACCESS_FCP_RESTRICTED; +import static net.pterodactylus.sone.fcp.FcpInterface.FullAccessRequired.ALWAYS; import static net.pterodactylus.sone.fcp.FcpInterface.FullAccessRequired.NO; import static net.pterodactylus.sone.fcp.FcpInterface.FullAccessRequired.WRITING; import static org.hamcrest.MatcherAssert.assertThat; @@ -59,6 +60,11 @@ public class FcpInterfaceTest { private final FcpInterface fcpInterface = new FcpInterface(core); private final CapturingPluginReplySender pluginReplySender = new CapturingPluginReplySender(); + public FcpInterfaceTest() { + fcpInterface.setActive(false); + fcpInterface.setFullAccessRequired(ALWAYS); + } + @Test public void testThatAnInactiveFcpInterfaceReturnsAnErrorForDirectAccess() throws PluginNotFoundException { SimpleFieldSet fieldSet = new SimpleFieldSetBuilder().get();