void () { init(""" abc abc abc"""); initFind(); setTextToFind("b"); checkResultByText(""" a<selection>b<caret></selection>c abc abc"""); addOccurrence(); checkResultByText(""" a<selection>b<caret></selection>c a<selection>b<caret></selection>c abc"""); nextOccurrence(); checkResultByText(""" a<selection>b<caret></selection>c abc a<selection>b<caret></selection>c"""); prevOccurrence(); checkResultByText(""" a<selection>b<caret></selection>c a<selection>b<caret></selection>c abc"""); removeOccurrence(); checkResultByText(""" a<selection>b<caret></selection>c abc abc"""); allOccurrences(); checkResultByText(""" a<selection>b<caret></selection>c a<selection>b<caret></selection>c a<selection>b<caret></selection>c"""); assertNull(getEditorSearchComponent()); }