IDEA-172425 Add tests to check that generated code is correct

This commit is contained in:
Vitaliy.Bibaev
2018-03-27 12:11:27 +03:00
parent 3317d14e8d
commit de907c6cd3
10 changed files with 465 additions and 0 deletions
@@ -0,0 +1,28 @@
public class WithReflectionAccess {
private int field = 10;
private WithReflectionAccess(int value) {
field = value;
}
public static void main(String[] args) {
WithReflectionAccess instance = new WithReflectionAccess(2000);
<caret>int a = 42;
}
private static void method() {
}
private int method(int arg) {
return 0;
}
private Object method(WithReflectionAccess arg) {
return arg;
}
public static void apply(Runnable runnable) {
runnable.run();
}
}