void () { String origText = "ab Ab AB aB"; init(origText); initFind(); EditorSearchSession session = getEditorSearchComponent(); FindModel model = session.getFindModel(); SearchReplaceComponent component = session.getComponent(); ActionButton actionButton = findActionButton(component, "find.case.sensitive"); assertFalse(model.isCaseSensitive()); // default is false assertFalse(actionButton.isSelected()); model.setStringToFind("ab"); assertEquals(ApplicationBundle.message("editorsearch.current.cursor.position", 1, 4), component.getStatusText()); model.setCaseSensitive(true); assertTrue(actionButton.isSelected()); assertEquals(ApplicationBundle.message("editorsearch.current.cursor.position", 1, 1), component.getStatusText()); }