mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
more java tests moved to community
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Enum Constant 'EEE'" "true"
|
||||
|
||||
enum E {
|
||||
EEE;
|
||||
void t() {
|
||||
EEE
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Enum Constant 'EEE'" "true"
|
||||
|
||||
enum E {
|
||||
AAA, EEE;
|
||||
void t() {
|
||||
EEE
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Create Enum Constant 'EEE'" "true"
|
||||
class Other {
|
||||
public Other() {
|
||||
MyEnum eee = MyEnum.EEE;
|
||||
}
|
||||
}
|
||||
|
||||
enum MyEnum {
|
||||
EEE
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Create Enum Constant 'Bean3'" "true"
|
||||
@interface BeanAware {
|
||||
BeanName[] value();
|
||||
}
|
||||
|
||||
enum BeanName {
|
||||
Bean1,
|
||||
Bean2, Bean3;
|
||||
}
|
||||
|
||||
@BeanAware(value = BeanName.Bean3)
|
||||
interface MyBeanAware {
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Enum Constant 'EEE'" "true"
|
||||
|
||||
enum E {
|
||||
;
|
||||
void t() {
|
||||
<caret>EEE
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Enum Constant 'EEE'" "true"
|
||||
|
||||
enum E {
|
||||
AAA;
|
||||
void t() {
|
||||
<caret>EEE
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Enum Constant 'EEE'" "false"
|
||||
|
||||
enum E {
|
||||
AAA;
|
||||
void t() {
|
||||
int t = <caret>EEE;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create Enum Constant 'EEE'" "true"
|
||||
class Other {
|
||||
public Other() {
|
||||
MyEnum eee = MyEnum.<caret>EEE;
|
||||
}
|
||||
}
|
||||
|
||||
enum MyEnum {
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Create Enum Constant 'Bean3'" "true"
|
||||
@interface BeanAware {
|
||||
BeanName[] value();
|
||||
}
|
||||
|
||||
enum BeanName {
|
||||
Bean1,
|
||||
Bean2;
|
||||
}
|
||||
|
||||
@BeanAware(value = BeanName.Bean3<caret>)
|
||||
interface MyBeanAware {
|
||||
}
|
||||
Reference in New Issue
Block a user