Added tests for reformat code action on changed vcs changed lines

This commit is contained in:
Yaroslav Lepenkin
2014-12-26 20:53:30 +02:00
parent a68fe14f58
commit 276b9556ae
11 changed files with 193 additions and 2 deletions
@@ -0,0 +1,10 @@
public class Main {
public int a = 3;
protected Object obj = null;
private long e = 4;
public static void main(String[] args) {
}
}
@@ -0,0 +1,17 @@
import java.lang.Object;
import java.util.LinkedHashSet;
import java.util.Set;
public class Main {
public int a = 3;
private long e = 4;
protected Object obj = null;
public static void main(String[] args) {
}
}
@@ -0,0 +1,10 @@
import java.util.LinkedHashSet;
import java.util.Set;
public class Main {
public static void main(String[] args) {
}
}
@@ -0,0 +1,23 @@
import java.util.LinkedHashSet;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Runnable runnable = new Runnable() {
@Override
public void run() {
Set<String> test = new LinkedHashSet<String>();
if (test.contains("AA")) {
if (test.contains("AS")) {
System.out.println("AAAA!");
}
}
}
};
runnable.run();
}
}
@@ -0,0 +1,27 @@
import java.lang.Override;
import java.lang.Runnable;
import java.lang.String;
import java.util.Set;
import java.util.HashSet;
import java.util.LinkedHashSet;
public class Main {
public static void main(String[] args) {
Runnable runnable = new Runnable() {
@Override
public void run() {
Set<String> test = new LinkedHashSet<String>();
if (test.contains("AA")) {
if (test.contains("AS")) {
System.out.println("AAAA!");
}
}
}
};
runnable.run();
}
}
@@ -0,0 +1,23 @@
import com.intellij.util.containers.HashSet;
import java.util.Set;
import java.util.HashSet;
public class Main {
public static void main(String[] args) {
Runnable runnable = new Runnable() {
@Override
public void run() {
Set<String> test = new HashSet<String>();
if (test.contains("AA")) {
System.out.println("AAAA!");
}
}
};
runnable.run();
}
}
@@ -0,0 +1,13 @@
public class Test {
public void run() {
int a = 3;
int b = 12;
}
public void test() {
}
}
@@ -0,0 +1,13 @@
public class Test {
public void run() {
int a = 3;
int b = 12;
}
public void test() {
}
}
@@ -0,0 +1,10 @@
public class Test {
public void run() {
int a = 3;
}
}