LightQuickFixTestCase: Check whether <caret> is present in "before" files; wrong tests fixed

This commit is contained in:
Tagir Valeev
2016-10-07 16:34:42 +07:00
parent 4f11cff6d0
commit aa605118de
13 changed files with 64 additions and 13 deletions
@@ -1,5 +1,5 @@
// "Break string on '\n'" "false"
class A {
String s = "Hello!\n";
String s = "Hello!<caret>\n";
}
@@ -1,5 +1,5 @@
// "Break string on '\n'" "false"
class A {
String s = "Hello!\n\r";
String s = "Hello!<caret>\n\r";
}
@@ -7,6 +7,6 @@ class Example {
}
{
Function<String, String> r = (s) -> m(s, s);
Function<String, String> r = (s) -> <caret>m(s, s);
}
}
@@ -12,7 +12,7 @@ public class Test {
}
@SuppressWarnings("unchecked")
void foo() {
void f<caret>oo() {
foo(new ArrayList<String>()).addAll(foo1(new ArrayList<String>);
}
}
@@ -1,5 +1,13 @@
// "Suppress for field" "false"
/** @noinspection ALL*/
class a {
static private String mm = "00";
static private String <caret>mm = "00";
// The "Convert to local" inspection should be reported here if not suppressed
static void test() {
mm = "1";
if(mm == "1") {
mm = "2";
}
}
}
@@ -4,6 +4,6 @@ public class Test {
{
int i = 0;
//noinspection SillyAssignment my very long comment
i = i;
i = <caret>i;
}
}
@@ -1,6 +1,6 @@
// "Suppress for method" "false"
/** @noinspection UNUSED_SYMBOL*/
class a {
private void run() {
private void <caret>run() {
}
}
@@ -4,7 +4,7 @@ import java.util.Optional;
public class Test {
void m(String ss) {
f(ss);
f(<caret>ss);
}