fix compile

This commit is contained in:
Maxim.Mossienko
2014-07-31 14:06:47 +02:00
parent 4eea0332cd
commit 627db489ca
2 changed files with 6 additions and 8 deletions
@@ -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");
}