X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FPreferencesLoaderTest.java;fp=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FPreferencesLoaderTest.java;h=e12fe9342b73b74e0410158a3634b5d2dded12bf;hp=88745df1b3bdeb5363a34a83af8d2193eab3cdb8;hb=1a3f2a00bb5180470db1515e646615dff2744e39;hpb=2524f4d47c56874a263f9e53ec5c4035f2baa7e0 diff --git a/src/test/java/net/pterodactylus/sone/core/PreferencesLoaderTest.java b/src/test/java/net/pterodactylus/sone/core/PreferencesLoaderTest.java index 88745df..e12fe93 100644 --- a/src/test/java/net/pterodactylus/sone/core/PreferencesLoaderTest.java +++ b/src/test/java/net/pterodactylus/sone/core/PreferencesLoaderTest.java @@ -38,20 +38,20 @@ public class PreferencesLoaderTest { setupIntValue("PositiveTrust", 50); setupIntValue("NegativeTrust", -50); when(configuration.getStringValue("Option/TrustComment")).thenReturn( - new TestValue("Trusted")); + TestValue.from("Trusted")); setupBooleanValue("ActivateFcpInterface", true); setupIntValue("FcpFullAccessRequired", 1); } private void setupIntValue(String optionName, int value) { when(configuration.getIntValue("Option/" + optionName)).thenReturn( - new TestValue(value)); + TestValue.from(value)); } private void setupBooleanValue(String optionName, boolean value) { when(configuration.getBooleanValue( "Option/" + optionName)).thenReturn( - new TestValue(value)); + TestValue.from(value)); } @Test