Just always use TEXT_MATCH to test replacements

This commit is contained in:
Stephan Schroevers
2017-12-31 15:03:32 +01:00
parent 47bfe88d66
commit db7ffddeed
4 changed files with 8 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ package com.picnicinternational.errorprone.bugpatterns;
import com.google.errorprone.BugCheckerRefactoringTestHelper;
import com.google.errorprone.CompilationTestHelper;
import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -93,6 +94,6 @@ public final class AutowiredConstructorCheckTest {
" B(String x) {}",
" }",
"}")
.doTest();
.doTest(TestMode.TEXT_MATCH);
}
}

View File

@@ -3,6 +3,7 @@ package com.picnicinternational.errorprone.bugpatterns;
import com.google.common.collect.ImmutableList;
import com.google.errorprone.BugCheckerRefactoringTestHelper;
import com.google.errorprone.CompilationTestHelper;
import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -139,7 +140,7 @@ public final class LexicographicalAnnotationAttributeListingCheckTest {
" @Foo(anns = {@Bar(value = \"a\"), @Bar(value = \"b\")}) A unsortedAnns();",
" @Foo(anns = {@Bar(\"a\"), @Bar({\"a\", \"b\"})}) A unsortedInnderAnns();",
"}")
.doTest();
.doTest(TestMode.TEXT_MATCH);
}
@Test

View File

@@ -3,6 +3,7 @@ package com.picnicinternational.errorprone.bugpatterns;
import com.google.common.collect.ImmutableList;
import com.google.errorprone.BugCheckerRefactoringTestHelper;
import com.google.errorprone.CompilationTestHelper;
import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -524,6 +525,6 @@ public final class RedundantStringConversionCheckTest {
" String.format(\"%s\", o);",
" }",
"}")
.doTest();
.doTest(TestMode.TEXT_MATCH);
}
}

View File

@@ -2,6 +2,7 @@ package com.picnicinternational.errorprone.bugpatterns;
import com.google.errorprone.BugCheckerRefactoringTestHelper;
import com.google.errorprone.CompilationTestHelper;
import com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -101,6 +102,6 @@ public final class SpringMvcAnnotationCheckTest {
" @PutMapping(path = \"/foo/bar\", consumes = {\"a\", \"b\"}) A surrounded();",
" @PatchMapping() A curly();",
"}")
.doTest();
.doTest(TestMode.TEXT_MATCH);
}
}