From 9f263aeceac0e0da5b140ea61858040128753de0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 26 Oct 2013 15:02:48 +0200 Subject: [PATCH] Explicitely set initial state of FCP interface. --- src/test/java/net/pterodactylus/sone/fcp/FcpInterfaceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.7.4