diff --git a/tests/src/test/java/ApplicationTests.java b/tests/src/test/java/ApplicationTests.java index a142826e26..1292813e23 100644 --- a/tests/src/test/java/ApplicationTests.java +++ b/tests/src/test/java/ApplicationTests.java @@ -85,6 +85,8 @@ public class ApplicationTests{ }catch(Throwable r){ fail(r); } + + Log.info("init app"); } @BeforeEach diff --git a/tests/src/test/java/power/PowerTestFixture.java b/tests/src/test/java/power/PowerTestFixture.java index ceed02b530..559d11bed9 100644 --- a/tests/src/test/java/power/PowerTestFixture.java +++ b/tests/src/test/java/power/PowerTestFixture.java @@ -25,18 +25,26 @@ public class PowerTestFixture{ @BeforeAll static void initializeDependencies(){ + Log.info("init power test fixture"); headless = true; Core.graphics = new FakeGraphics(); Core.files = new MockFiles(); - Vars.content = new ContentLoader(){ - @Override - public void handleMappableContent(MappableContent content){ - } - }; + boolean make = content == null; + + if(make){ + Vars.content = new ContentLoader(){ + @Override + public void handleMappableContent(MappableContent content){ + + } + }; + } Vars.state = new GameState(); Vars.tree = new FileTree(); - content.createBaseContent(); + if(make){ + content.createBaseContent(); + } Log.useColors = false; Time.setDeltaProvider(() -> 0.5f); }