[jvm-lang] update Java-to-Java Create Field from usage tests

This commit is contained in:
Daniil Ovchinnikov
2017-08-28 13:33:38 +03:00
parent b8153ebd95
commit c7b4b47dc9
6 changed files with 31 additions and 4 deletions
@@ -2,7 +2,7 @@
class Main {
static void foo() {
new Object() {
public int field<caret>;
private int field<caret>;
void bar() {
this.field = 0;
@@ -1,10 +1,10 @@
// "Create field 'FIELD'" "true"
// "Create constant field 'FIELD'" "true"
class C {
public void foo() {
int i = ITest.FIELD;
}
public static interface ITest {
int FIELD<caret>;
int FIELD = <caret>;
}
}
@@ -1,4 +1,4 @@
// "Create field 'FIELD'" "true"
// "Create constant field 'FIELD'" "true"
class C {
public void foo() {
int i = ITest.FIELD<caret>;
@@ -0,0 +1,9 @@
// "Create field 'FIELD'" "false"
class C {
public void foo() {
int i = ITest.FIELD<caret>;
}
public static interface ITest {
}
}
@@ -0,0 +1,10 @@
// "Create constant field 'bar' in 'I'" "false"
interface I {}
interface II extends I {}
class Usage {
void usage() {
II.bar<caret>;
}
}