From 28585dd6f92ca848d8ff6e658159ffe6ea57a209 Mon Sep 17 00:00:00 2001 From: Kermina Awad Date: Sun, 18 Jul 2021 13:12:09 -0400 Subject: [PATCH] remove unnecessary stub --- .../MultiverseCore/utils/TestInstanceCreator.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/test/java/com/onarandombox/MultiverseCore/utils/TestInstanceCreator.java b/src/test/java/com/onarandombox/MultiverseCore/utils/TestInstanceCreator.java index a0343c38..6bb5d85b 100644 --- a/src/test/java/com/onarandombox/MultiverseCore/utils/TestInstanceCreator.java +++ b/src/test/java/com/onarandombox/MultiverseCore/utils/TestInstanceCreator.java @@ -85,12 +85,6 @@ public class TestInstanceCreator { "com.onarandombox.MultiverseCore.MultiverseCore")); when(pdf.getAuthors()).thenReturn(new ArrayList()); core = PowerMockito.spy(new MultiverseCore(mockPluginLoader, pdf, pluginDirectory, new File(pluginDirectory, "testPluginFile"))); - PowerMockito.doAnswer(new Answer() { - @Override - public Void answer(InvocationOnMock invocation) throws Throwable { - return null; // don't run metrics in tests - } - }).when(core, "setupMetrics"); // Let's let all MV files go to bin/test doReturn(pluginDirectory).when(core).getDataFolder();