Console implements Initializable { public boolean show() { if (this.gui != null) { gui.show(); return true; } else { LOGGER.error("Tried to display gui without being set"); return false; } } Console(); static Console getInstance(); @Override void initialize(URL location, ResourceBundle resources); void attachGui(Stage gui); void close(); boolean show(); List<String> getCommandKeys(); @FXML void sendInput(ActionEvent event); void setInitText(); void printCommand(String command); void commandHelp(); void clear(); Boolean parseCommand(String input); void print(String input); void println(String input); String getConsoleOutputBuffer(); static boolean isLevel(String proposedLevel); static List<String> createLog(String level, String msg); void addLog(String level, String msg); List<String> getLog(String level); void clearLog(); void appendLog(List<String> log); Text formatLog(String level, String msg);  }
@Test public void loadGui() { Console console = new Console(); Assert.assertFalse("no gui attached", console.show()); }