@Test (expected = UnsupportedOperationException.class) public void testFillConfig2 () throws IOException { WindowConfig windowConfig = new WindowConfig("../config/junit-window2.cfg"); Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration(); windowConfig.fillConfig(config); }
public void fillConfig (Lwjgl3ApplicationConfiguration config) { config.setTitle(section.get("title")); config.setWindowedMode(getInt("width"), getInt("height")); config.setWindowIcon(section.get("iconPath")); config.setResizable(getBoolean("resizeable")); config.useVsync(getBoolean("vsync")); if (getBoolean("fullscreen")) { throw new UnsupportedOperationException("fullscreen isnt supported yet."); } }
WindowConfig { public void fillConfig (Lwjgl3ApplicationConfiguration config) { config.setTitle(section.get("title")); config.setWindowedMode(getInt("width"), getInt("height")); config.setWindowIcon(section.get("iconPath")); config.setResizable(getBoolean("resizeable")); config.useVsync(getBoolean("vsync")); if (getBoolean("fullscreen")) { throw new UnsupportedOperationException("fullscreen isnt supported yet."); } } }
WindowConfig { public void fillConfig (Lwjgl3ApplicationConfiguration config) { config.setTitle(section.get("title")); config.setWindowedMode(getInt("width"), getInt("height")); config.setWindowIcon(section.get("iconPath")); config.setResizable(getBoolean("resizeable")); config.useVsync(getBoolean("vsync")); if (getBoolean("fullscreen")) { throw new UnsupportedOperationException("fullscreen isnt supported yet."); } } WindowConfig(String filePath); }
WindowConfig { public void fillConfig (Lwjgl3ApplicationConfiguration config) { config.setTitle(section.get("title")); config.setWindowedMode(getInt("width"), getInt("height")); config.setWindowIcon(section.get("iconPath")); config.setResizable(getBoolean("resizeable")); config.useVsync(getBoolean("vsync")); if (getBoolean("fullscreen")) { throw new UnsupportedOperationException("fullscreen isnt supported yet."); } } WindowConfig(String filePath); void fillConfig(Lwjgl3ApplicationConfiguration config); }
WindowConfig { public void fillConfig (Lwjgl3ApplicationConfiguration config) { config.setTitle(section.get("title")); config.setWindowedMode(getInt("width"), getInt("height")); config.setWindowIcon(section.get("iconPath")); config.setResizable(getBoolean("resizeable")); config.useVsync(getBoolean("vsync")); if (getBoolean("fullscreen")) { throw new UnsupportedOperationException("fullscreen isnt supported yet."); } } WindowConfig(String filePath); void fillConfig(Lwjgl3ApplicationConfiguration config);  }