mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix compile
This commit is contained in:
@@ -579,7 +579,7 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
FindModel findModel = FindManagerTestUtils.configureFindModel("done");
|
||||
String text = "/** done done done */";
|
||||
|
||||
findModel.setInCommentsOnly(true);
|
||||
findModel.setSearchContext(FindModel.SearchContext.IN_COMMENTS);
|
||||
FindManagerTestUtils.runFindForwardAndBackward(myFindManager, findModel, text);
|
||||
|
||||
findModel.setRegularExpressions(true);
|
||||
@@ -592,7 +592,7 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
String prefix = "/*";
|
||||
String text = prefix + "done*/";
|
||||
|
||||
findModel.setInCommentsOnly(true);
|
||||
findModel.setSearchContext(FindModel.SearchContext.IN_COMMENTS);
|
||||
LightVirtualFile file = new LightVirtualFile("A.java", text);
|
||||
|
||||
FindResult findResult = myFindManager.findString(text, prefix.length(), findModel, file);
|
||||
@@ -615,8 +615,7 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
FindModel findModel = FindManagerTestUtils.configureFindModel("^done$");
|
||||
|
||||
findModel.setRegularExpressions(true);
|
||||
findModel.setInStringLiteralsOnly(true);
|
||||
findModel.setInCommentsOnly(false);
|
||||
findModel.setSearchContext(FindModel.SearchContext.IN_STRINGS);
|
||||
String text = "\"done\"; 'done'; 'done' \"done2\"";
|
||||
FindManagerTestUtils.runFindForwardAndBackward(myFindManager, findModel, text, "java");
|
||||
|
||||
@@ -633,7 +632,7 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
|
||||
String text = "/** do ne do ne do ne */";
|
||||
|
||||
findModel.setInCommentsOnly(true);
|
||||
findModel.setSearchContext(FindModel.SearchContext.IN_COMMENTS);
|
||||
FindManagerTestUtils.runFindForwardAndBackward(myFindManager, findModel, text, "java");
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,7 @@ public class GrFindManagerTest extends DaemonAnalyzerTestCase {
|
||||
public void testFindInLiteralToSkipQuotes() {
|
||||
FindModel findModel = FindManagerTestUtils.configureFindModel("^done$");
|
||||
findModel.setRegularExpressions(true);
|
||||
findModel.setInStringLiteralsOnly(true);
|
||||
findModel.setInCommentsOnly(false);
|
||||
findModel.setSearchContext(FindModel.SearchContext.IN_STRINGS);
|
||||
String text = "def n = \"\"\"done\"\"\"\n def n = /done/\n def n = \"done\"\n def n = \"done2\"";
|
||||
FindManagerTestUtils.runFindForwardAndBackward(myFindManager, findModel, text, "groovy");
|
||||
}
|
||||
@@ -53,7 +52,7 @@ public class GrFindManagerTest extends DaemonAnalyzerTestCase {
|
||||
public void testFindInShellCommentsOfGroovy() {
|
||||
FindModel findModel = FindManagerTestUtils.configureFindModel("done");
|
||||
findModel.setWholeWordsOnly(true);
|
||||
findModel.setInCommentsOnly(true);
|
||||
findModel.setSearchContext(FindModel.SearchContext.IN_COMMENTS);
|
||||
String text = "#! done done done\n";
|
||||
FindManagerTestUtils.runFindForwardAndBackward(myFindManager, findModel, text, "groovy");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user