void () { initProject("libUnderProject", "src"); String libDir = JavaTestUtil.getJavaTestDataPath() + "/find/libUnderProject/lib"; PsiTestUtil.addLibrary(myModule, "lib", libDir, new String[]{""}, ArrayUtilRt.EMPTY_STRING_ARRAY); FindModel findModel = new FindModel(); findModel.setStringToFind("TargetWord"); findModel.setFromCursor(false); findModel.setGlobal(true); findModel.setMultipleFiles(true); findModel.setWholeWordsOnly(false); assertSize(2, findInProject(findModel)); findModel.setWholeWordsOnly(true); assertSize(2, findInProject(findModel)); findModel.setWholeWordsOnly(false); findModel.setRegularExpressions(true); findModel.setStringToFind("Ta(rgetWord)"); assertSize(2, findInProject(findModel)); }