fix invalid negative tests for quick-fixes

This commit is contained in:
Tagir Valeev
2016-10-10 18:24:14 +07:00
parent 11b34b7afc
commit eaff2cebb6
11 changed files with 22 additions and 12 deletions
@@ -1,4 +1,4 @@
// "Add method body" "false"
// "Add 'return' statement" "false"
class a {
String f() {
return null;
@@ -1,4 +1,4 @@
// "Do not try to create class Inner" "false"
// "Create class 'Inner'" "false"
public class Test {
public static void main() {
new Te<caret>st.Inner();
@@ -1,4 +1,4 @@
// "Do not try to create class Inner" "false"
// "Create class 'Inner'" "false"
public class Test {
public static void main() {
new Inner<caret>();
@@ -1,4 +1,4 @@
// "Do not create anything" "false"
// "Create class 'boolean'" "false"
import javax.swing.*;
public class Test {
@@ -0,0 +1,10 @@
// "Create method 'test'" "true"
public class Test {
public Test() {
test();
}
private void test() {
<caret><selection></selection>
}
}
@@ -1,4 +1,4 @@
// "Do not create method" "false"
// "Create method 'test'" "true"
public class Test {
public Test() {
test(<caret>);
@@ -1,10 +1,10 @@
// "Add tag @throws java.langException" "false"
// "Add tag @throws java.lang.Exception" "false"
class a {
/**
/**<caret>
* @throws java.lang.Exception
*/
public void <caret>run() throws Exception{
public void run() throws Exception{
}
}
@@ -1,4 +1,4 @@
// "Split into filter's chain" "false"
// "Merge filter's chain" "false"
import java.util.stream.Stream;
class Test {
@@ -1,4 +1,4 @@
// "Change parameter 'i' type to 'long'" "false"
// "Change parameter 'obj' type to 'long'" "false"
class M extends Thread {
@Override
@@ -1,4 +1,4 @@
// "Wrap using 'Arrays.asList'" "false"
// "Wrap using 'Arrays.asList'" "true"
import java.util.List;
public class Test {