From d2373ed73fd55307cd0e7efe7954e4b6beeb57f1 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Tue, 23 Oct 2018 16:12:00 +0200 Subject: [PATCH] Fix unit test --- .../xephi/authme/settings/WelcomeMessageConfigurationTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/fr/xephi/authme/settings/WelcomeMessageConfigurationTest.java b/src/test/java/fr/xephi/authme/settings/WelcomeMessageConfigurationTest.java index 2109edbd9..0cf66a973 100644 --- a/src/test/java/fr/xephi/authme/settings/WelcomeMessageConfigurationTest.java +++ b/src/test/java/fr/xephi/authme/settings/WelcomeMessageConfigurationTest.java @@ -9,6 +9,7 @@ import fr.xephi.authme.initialization.DataFolder; import fr.xephi.authme.service.BukkitService; import fr.xephi.authme.service.CommonService; import fr.xephi.authme.service.GeoIpService; +import fr.xephi.authme.settings.properties.RegistrationSettings; import org.bukkit.Server; import org.bukkit.World; import org.bukkit.entity.Player; @@ -66,6 +67,7 @@ public class WelcomeMessageConfigurationTest { testPluginFolder = temporaryFolder.newFolder(); welcomeFile = new File(testPluginFolder, "welcome.txt"); welcomeFile.createNewFile(); + given(service.getProperty(RegistrationSettings.USE_WELCOME_MESSAGE)).willReturn(true); } @Test