Testing tests
This commit is contained in:
@@ -85,6 +85,8 @@ public class ApplicationTests{
|
|||||||
}catch(Throwable r){
|
}catch(Throwable r){
|
||||||
fail(r);
|
fail(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.info("init app");
|
||||||
}
|
}
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
|
|||||||
@@ -25,18 +25,26 @@ public class PowerTestFixture{
|
|||||||
|
|
||||||
@BeforeAll
|
@BeforeAll
|
||||||
static void initializeDependencies(){
|
static void initializeDependencies(){
|
||||||
|
Log.info("init power test fixture");
|
||||||
headless = true;
|
headless = true;
|
||||||
Core.graphics = new FakeGraphics();
|
Core.graphics = new FakeGraphics();
|
||||||
Core.files = new MockFiles();
|
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.state = new GameState();
|
||||||
Vars.tree = new FileTree();
|
Vars.tree = new FileTree();
|
||||||
content.createBaseContent();
|
if(make){
|
||||||
|
content.createBaseContent();
|
||||||
|
}
|
||||||
Log.useColors = false;
|
Log.useColors = false;
|
||||||
Time.setDeltaProvider(() -> 0.5f);
|
Time.setDeltaProvider(() -> 0.5f);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user