Skip to content
Snippets Groups Projects
Commit f58721ba authored by Dominique Blouin's avatar Dominique Blouin
Browse files

Avoid null pointer exceptions in tests

parent d72adfeb
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,15 @@ import static org.junit.Assert.fail;
import myutil.PluginManager;
import test.AbstractTest;
import ui.util.IconManager;
public abstract class AbstractUITest extends AbstractTest {
protected final MainGUI mainGui;
protected AbstractUITest() {
IconManager.loadImg();
// DB: Not needed for tests (causes NPE)
//IconManager.loadImg();
mainGui = new MainGUI(false,false, false, false, false, false, false, false, false, false, true, false, false);
mainGui.build();
PluginManager.pluginManager = new PluginManager();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment