Skip to content

Commit

Permalink
Fix failing AuthMeInitializationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacqu committed May 27, 2021
1 parent 0cd17df commit 5be9b38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public class AuthMeInitializationTest {
public void initAuthMe() throws IOException {
dataFolder = temporaryFolder.newFolder();
File settingsFile = new File(dataFolder, "config.yml");
given(server.getLogger()).willReturn(Logger.getAnonymousLogger());
JavaPluginLoader pluginLoader = new JavaPluginLoader(server);
Files.copy(TestHelper.getJarFile(TestHelper.PROJECT_ROOT + "config.test.yml"), settingsFile);

// Mock / wire various Bukkit components
given(server.getLogger()).willReturn(Logger.getAnonymousLogger());
ReflectionTestUtils.setField(Bukkit.class, null, "server", server);
given(server.getPluginManager()).willReturn(pluginManager);

Expand Down

0 comments on commit 5be9b38

Please sign in to comment.