Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js')
-rw-r--r--tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js b/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js
new file mode 100644
index 0000000..984c55f
--- /dev/null
+++ b/tests/org.eclipse.wst.jsdt.core.tests.model/workspace/JavaSearch15/src/e1/Team.js
@@ -0,0 +1,29 @@
+// packages e? stand for search enumeration tests
+package e1;
+public enum Team {
+ PHILIPPE(37) {
+ public boolean isManager() {
+ return true;
+ }
+ },
+ DAVID(27),
+ JEROME(33),
+ OLIVIER(35),
+ KENT(40),
+ FREDERIC;
+
+ public enum Role { MANAGER, DEVELOPPER }
+
+ int age;
+ Role role;
+
+ Team() {}
+ Team(int age) {
+ this.age = age;
+ }
+ public int age() { return this.age; }
+ public boolean isManager() { return false; }
+ void setRole(boolean mgr) {
+ this.role = mgr ? Role.MANAGER : Role.DEVELOPPER;
+ }
+}

Back to the top