Source:
public void errorsWarningTest() throws Exception { final String expectedTabTitle = "AppController"; final URL errorsWarningFilePath = getClass().getResource("errors-warnings"); final List<String> expectedErrorsWarningsList = readFile(errorsWarningFilePath); projectExplorer.openItemByVisibleNameInExplorer(expectedTabTitle + ".java"); editor.waitTabIsPresent(expectedTabTitle); editor.waitTabSelection(0, expectedTabTitle); editor.waitActive(); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); preferences.waitPreferencesForm(); preferences.waitMenuInCollapsedDropdown(Preferences.DropDownJavaCompilerMenu.ERRORS_WARNINGS); preferences.selectDroppedMenuByName(Preferences.DropDownJavaCompilerMenu.ERRORS_WARNINGS); assertEquals(preferences.getItemsFromErrorWarningsWidget(), expectedErrorsWarningsList); preferences.close(); consoles.closeProcessesArea(); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); changeAllSettingsInErrorsWarningsTab(Preferences.DropDownValueForErrorWaitingWidget.WARNING); editor.waitAnnotationsAreNotPresent(ERROR_OVERVIEW); waitWarningMarkersCount(); editor.waitAnnotationsAreNotPresent(ERROR_OVERVIEW); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); changeAllSettingsInErrorsWarningsTab(Preferences.DropDownValueForErrorWaitingWidget.ERROR); waitErrorMarkersCount(); editor.waitAnnotationsAreNotPresent(WARNING_OVERVIEW); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); changeAllSettingsInErrorsWarningsTab(Preferences.DropDownValueForErrorWaitingWidget.IGNORE); editor.waitAnnotationsAreNotPresent(ERROR_OVERVIEW); editor.waitAnnotationsAreNotPresent(WARNING_OVERVIEW); }

Target:
public void errorsWarningTest() throws Exception { final String expectedTabTitle = "AppController"; final URL errorsWarningFilePath = getClass().getResource("errors-warnings"); final List<String> expectedErrorsWarningsList = readFile(errorsWarningFilePath); projectExplorer.openItemByVisibleNameInExplorer(expectedTabTitle + ".java"); editor.waitTabIsPresent(expectedTabTitle); editor.waitTabSelection(0, expectedTabTitle); editor.waitActive(); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); preferences.waitPreferencesForm(); preferences.waitMenuInCollapsedDropdown(Preferences.DropDownJavaCompilerMenu.ERRORS_WARNINGS); preferences.selectDroppedMenuByName(Preferences.DropDownJavaCompilerMenu.ERRORS_WARNINGS); assertEquals(preferences.getItemsFromErrorWarningsWidget(), expectedErrorsWarningsList); preferences.close(); consoles.closeProcessesArea(); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); changeAllSettingsInErrorsWarningsTab(Preferences.DropDownValueForErrorWaitingWidget.WARNING); editor.waitAnnotationsAreNotPresent(ERROR_OVERVIEW); waitWarningMarkersQuantity(); editor.waitAnnotationsAreNotPresent(ERROR_OVERVIEW); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); changeAllSettingsInErrorsWarningsTab(Preferences.DropDownValueForErrorWaitingWidget.ERROR); waitErrorMarkersQuantity(); editor.waitAnnotationsAreNotPresent(WARNING_OVERVIEW); menu.runCommand(TestMenuCommandsConstants.Profile.PROFILE_MENU, PREFERENCES); changeAllSettingsInErrorsWarningsTab(Preferences.DropDownValueForErrorWaitingWidget.IGNORE); editor.waitAnnotationsAreNotPresent(ERROR_OVERVIEW); editor.waitAnnotationsAreNotPresent(WARNING_OVERVIEW); }