Source:
<code>public void autoCompleteClassInTheSamePackage() { projectExplorer.waitProjectExplorer(); projectExplorer.waitItem(PROJECT_NAME); consoles.closeProcessesArea(); projectExplorer.quickExpandWithJavaScript(); mavenPluginStatusBar.waitClosingInfoPanel(); projectExplorer.openItemByPath( PROJECT_NAME + "/src/main/java/org/eclipse/qa/examples/AppController.java"); editor.waitActiveEditor(); <START> editor.setCursorToLine(28); <END> editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor("\n"); editor.waitAllMarkersDisappear(ERROR_MARKER); editor.typeTextIntoEditor(TEXT_FOR_WARNING); editor.waitMarkerInPosition(WARNING_MARKER, 29); editor.waitAnnotationCodeAssistIsClosed(); editor.moveToMarkerAndWaitAssistContent(WARNING_MARKER); loader.waitOnClosed(); editor.waitTextIntoAnnotationAssist("The value of the local variable l is not used"); editor.waitTextIntoAnnotationAssist("The value of the local variable n is not used"); editor.launchPropositionAssistPanel(); editor.waitTextIntoFixErrorProposition("Remove 'l', keep assignments with side effects"); editor.waitTextIntoFixErrorProposition("Remove 'l' and all assignments"); editor.typeTextIntoEditor(Keys.ESCAPE.toString()); editor.waitErrorPropositionPanelClosed(); editor.setCursorToLine(30); editor.waitActiveEditor(); editor.typeTextIntoEditor(TEXT_FOR_ERROR); editor.waitMarkerInPosition(ERROR_MARKER, 30); editor.waitActiveEditor(); editor.waitAnnotationCodeAssistIsClosed(); editor.moveToMarkerAndWaitAssistContent(ERROR_MARKER); editor.waitTextIntoAnnotationAssist("Type mismatch: cannot convert from double to Integer"); editor.waitTextIntoAnnotationAssist("Keys cannot be resolved to a variable"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.HOME.toString()); editor.launchPropositionAssistPanel(); editor.waitTextIntoFixErrorProposition("Add cast to 'int'"); editor.waitTextIntoFixErrorProposition("Change type of 'f' to 'double'"); }</code><technical_language>removed? important check - ensure error markers **AppController.java** opened, it</technical_language>

Target:
public void autoCompleteClassInTheSamePackage() { projectExplorer.waitProjectExplorer(); projectExplorer.waitItem(PROJECT_NAME); consoles.closeProcessesArea(); projectExplorer.quickExpandWithJavaScript(); mavenPluginStatusBar.waitClosingInfoPanel(); projectExplorer.openItemByPath( PROJECT_NAME + "/src/main/java/org/eclipse/qa/examples/AppController.java"); editor.waitActiveEditor(); editor.waitAllMarkersDisappear(ERROR_MARKER); editor.setCursorToLine(28); editor.typeTextIntoEditor(Keys.END.toString()); editor.typeTextIntoEditor("\n"); editor.waitAllMarkersDisappear(ERROR_MARKER); editor.typeTextIntoEditor(TEXT_FOR_WARNING); editor.waitMarkerInPosition(WARNING_MARKER, 29); editor.waitAnnotationCodeAssistIsClosed(); editor.moveToMarkerAndWaitAssistContent(WARNING_MARKER); loader.waitOnClosed(); editor.waitTextIntoAnnotationAssist("The value of the local variable l is not used"); editor.waitTextIntoAnnotationAssist("The value of the local variable n is not used"); editor.launchPropositionAssistPanel(); editor.waitTextIntoFixErrorProposition("Remove 'l', keep assignments with side effects"); editor.waitTextIntoFixErrorProposition("Remove 'l' and all assignments"); editor.typeTextIntoEditor(Keys.ESCAPE.toString()); editor.waitErrorPropositionPanelClosed(); editor.setCursorToLine(30); editor.waitActiveEditor(); editor.typeTextIntoEditor(TEXT_FOR_ERROR); editor.waitMarkerInPosition(ERROR_MARKER, 30); editor.waitActiveEditor(); editor.waitAnnotationCodeAssistIsClosed(); editor.moveToMarkerAndWaitAssistContent(ERROR_MARKER); editor.waitTextIntoAnnotationAssist("Type mismatch: cannot convert from double to Integer"); editor.waitTextIntoAnnotationAssist("Keys cannot be resolved to a variable"); loader.waitOnClosed(); editor.typeTextIntoEditor(Keys.HOME.toString()); editor.launchPropositionAssistPanel(); editor.waitTextIntoFixErrorProposition("Add cast to 'int'"); editor.waitTextIntoFixErrorProposition("Change type of 'f' to 'double'"); }