mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
for nonword characters consider whole words boundary to be just different character (r=Peter.Gromov)
This commit is contained in:
@@ -619,6 +619,14 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
List<Usage> usages = FindUtil.findAll(myProject, myEditor, model);
|
||||
assertNotNull(usages);
|
||||
assertEquals(2, usages.size());
|
||||
|
||||
configureByText(FileTypes.PLAIN_TEXT, "myproperty=@AspectJ");
|
||||
model = new FindModel();
|
||||
model.setStringToFind("@AspectJ");
|
||||
model.setWholeWordsOnly(true);
|
||||
usages = FindUtil.findAll(myProject, myEditor, model);
|
||||
assertNotNull(usages);
|
||||
assertEquals(1, usages.size());
|
||||
}
|
||||
|
||||
public void testFindInCurrentFileOutsideProject() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user