Source:
<code>public void globalConfigTest() { TextField repoOwnerField = find("#repoOwnerField"); doubleClick(repoOwnerField); doubleClick(repoOwnerField); type("dummy").push(KeyCode.TAB); type("dummy").push(KeyCode.TAB); type("test").push(KeyCode.TAB); type("test"); click("Sign in"); sleep(2000); ComboBox<String> repositorySelector = find("#repositorySelector"); assertEquals(repositorySelector.getValue(), "dummy/dummy"); click("Boards"); click("Save"); ((TextField) find("#boardnameinput")).setText("Empty Board"); click("OK"); press(KeyCode.CONTROL).press(KeyCode.P).release(KeyCode.P).release(KeyCode.CONTROL); click("#dummy/dummy_col1_filterTextField"); type("repo"); press(KeyCode.SHIFT).press(KeyCode.SEMICOLON).release(KeyCode.SEMICOLON).release(KeyCode.SHIFT); type("dummy2/dummy2"); push(KeyCode.ENTER); sleep(2000); click("Boards"); click("Save"); ((TextField) find("#boardnameinput")).setText("Dummy Board"); click("OK"); click("Preferences"); click("Quit"); File testConfig = new File(configFileDirectory, testConfigFileName); if (!(testConfig.exists() && testConfig.isFile())) fail(); Preferences testPref = new Preferences(true); assertEquals("test", testPref.getLastLoginUsername()); assertEquals("test", testPref.getLastLoginPassword()); List<String> lastOpenFilters = testPref.getLastOpenFilters(); assertEquals(2, lastOpenFilters.size()); assertEquals("", lastOpenFilters.get(0)); assertEquals("repo:dummy2/dummy2", lastOpenFilters.get(1)); RepositoryId lastViewedRepository = testPref.getLastViewedRepository().get(); <START> assertEquals("dummy/dummy", lastViewedRepository.generateId()); <END> Map<String, List<String>> boards = testPref.getAllBoards(); List<String> emptyBoard = boards.get("Empty Board"); assertEquals(1, emptyBoard.size()); assertEquals("", emptyBoard.get(0)); List<String> dummyBoard = boards.get("Dummy Board"); assertEquals(2, dummyBoard.size()); assertEquals("", dummyBoard.get(0)); assertEquals("repo:dummy2/dummy2", dummyBoard.get(1)); }</code><technical_language>testing for cases? is a lot of functional code test code in this PR</technical_language>

Target:
public void globalConfigTest() { TextField repoOwnerField = find("#repoOwnerField"); doubleClick(repoOwnerField); doubleClick(repoOwnerField); type("dummy").push(KeyCode.TAB); type("dummy").push(KeyCode.TAB); type("test").push(KeyCode.TAB); type("test"); click("Sign in"); sleep(2000); ComboBox<String> repositorySelector = find("#repositorySelector"); assertEquals(repositorySelector.getValue(), "dummy/dummy"); click("Boards"); click("Save"); ((TextField) find("#boardnameinput")).setText("Empty Board"); click("OK"); press(KeyCode.CONTROL).press(KeyCode.P).release(KeyCode.P).release(KeyCode.CONTROL); click("#dummy/dummy_col1_filterTextField"); type("repo"); press(KeyCode.SHIFT).press(KeyCode.SEMICOLON).release(KeyCode.SEMICOLON).release(KeyCode.SHIFT); type("dummy2/dummy2"); push(KeyCode.ENTER); sleep(2000); click("Boards"); click("Save"); ((TextField) find("#boardnameinput")).setText("Dummy Board"); click("OK"); click("Preferences"); click("Quit"); File testConfig = new File(Preferences.DIRECTORY, Preferences.TEST_CONFIG_FILE); if (!(testConfig.exists() && testConfig.isFile())) fail(); Preferences testPref = new Preferences(true); assertEquals("test", testPref.getLastLoginUsername()); assertEquals("test", testPref.getLastLoginPassword()); List<String> lastOpenFilters = testPref.getLastOpenFilters(); assertEquals(2, lastOpenFilters.size()); assertEquals("", lastOpenFilters.get(0)); assertEquals("repo:dummy2/dummy2", lastOpenFilters.get(1)); RepositoryId lastViewedRepository = testPref.getLastViewedRepository().get(); assertEquals("dummy/dummy", lastViewedRepository.generateId()); Map<String, List<String>> boards = testPref.getAllBoards(); List<String> emptyBoard = boards.get("Empty Board"); assertEquals(1, emptyBoard.size()); assertEquals("", emptyBoard.get(0)); List<String> dummyBoard = boards.get("Dummy Board"); assertEquals(2, dummyBoard.size()); assertEquals("", dummyBoard.get(0)); assertEquals("repo:dummy2/dummy2", dummyBoard.get(1)); }