fix invalid negative tests for quick-fixes

This commit is contained in:
Tagir Valeev
2016-10-10 18:22:50 +07:00
parent 11b34b7afc
commit eaff2cebb6
11 changed files with 22 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
// "Add method body" "false"
// "Add 'return' statement" "false"
class a {
String f() {
return null;

View File

@@ -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();

View File

@@ -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>();

View File

@@ -1,4 +1,4 @@
// "Do not create anything" "false"
// "Create class 'boolean'" "false"
import javax.swing.*;
public class Test {

View File

@@ -0,0 +1,10 @@
// "Create method 'test'" "true"
public class Test {
public Test() {
test();
}
private void test() {
<caret><selection></selection>
}
}

View File

@@ -1,4 +1,4 @@
// "Do not create method" "false"
// "Create method 'test'" "true"
public class Test {
public Test() {
test(<caret>);

View File

@@ -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{
}
}

View File

@@ -1,4 +1,4 @@
// "Split into filter's chain" "false"
// "Merge filter's chain" "false"
import java.util.stream.Stream;
class Test {

View File

@@ -1,4 +1,4 @@
// "Change parameter 'i' type to 'long'" "false"
// "Change parameter 'obj' type to 'long'" "false"
class M extends Thread {
@Override

View File

@@ -1,4 +1,4 @@
// "Wrap using 'Arrays.asList'" "false"
// "Wrap using 'Arrays.asList'" "true"
import java.util.List;
public class Test {

View File

@@ -264,7 +264,7 @@ add.qualifier=Add qualifier
add.qualifier.original.class.chooser.title=Original class
wrap.array.to.arrays.as.list.parameter.text=Wrap {0, choice, 1#1st|2#2nd|3#3rd|4#{0,number}th} parameter using ''Arrays.asList''
wrap.array.to.arrays.as.list.single.parameter.text=Wrap using ''Arrays.asList''
wrap.array.to.arrays.as.list.single.parameter.text=Wrap using 'Arrays.asList'
annotations.fix=Annotations
add.missing.annotation.parameters.fix=Add missing annotation parameters - {0}