summaryrefslogtreecommitdiff
path: root/src/test/java/cuchaz/enigma/inputs/translation
diff options
context:
space:
mode:
authorGravatar Runemoro2020-06-03 13:39:42 -0400
committerGravatar GitHub2020-06-03 18:39:42 +0100
commit0f47403d0220757fed189b76e2071e25b1025cb8 (patch)
tree879bf72c4476f0a5e0d82da99d7ff2b2276bcaca /src/test/java/cuchaz/enigma/inputs/translation
parentFix search dialog hanging for a short time sometimes (#250) (diff)
downloadenigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.tar.gz
enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.tar.xz
enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.zip
Split GUI code to separate module (#242)
* Split into modules * Post merge compile fixes Co-authored-by: modmuss50 <modmuss50@gmail.com>
Diffstat (limited to 'src/test/java/cuchaz/enigma/inputs/translation')
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java33
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java26
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java28
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java29
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java32
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java31
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java36
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java40
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java35
9 files changed, 0 insertions, 290 deletions
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java b/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java
deleted file mode 100644
index 26f3718..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java
+++ /dev/null
@@ -1,33 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14public class A_Basic {
15
16 public int one;
17 public float two;
18 public String three;
19
20 public void m1() {
21 }
22
23 public int m2() {
24 return 42;
25 }
26
27 public void m3(int a1) {
28 }
29
30 public int m4(int a1) {
31 return 5; // chosen by fair die roll, guaranteed to be random
32 }
33}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java b/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java
deleted file mode 100644
index fd7f6e7..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java
+++ /dev/null
@@ -1,26 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14public class B_BaseClass {
15
16 public int f1;
17 public char f2;
18
19 public int m1() {
20 return 5;
21 }
22
23 public int m2() {
24 return 42;
25 }
26}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java b/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java
deleted file mode 100644
index 9d74e44..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java
+++ /dev/null
@@ -1,28 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14public class C_SubClass extends B_BaseClass {
15
16 public char f2; // shadows B_BaseClass.f2
17 public int f3;
18 public int f4;
19
20 @Override
21 public int m1() {
22 return 32;
23 }
24
25 public int m3() {
26 return 7;
27 }
28}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java b/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java
deleted file mode 100644
index 99c83bb..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java
+++ /dev/null
@@ -1,29 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14import java.util.ArrayList;
15import java.util.List;
16
17public class D_AnonymousTesting {
18
19 public List<Object> getObjs() {
20 List<Object> objs = new ArrayList<Object>();
21 objs.add(new Object() {
22 @Override
23 public String toString() {
24 return "Object!";
25 }
26 });
27 return objs;
28 }
29}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java b/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java
deleted file mode 100644
index 0b8cf2a..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java
+++ /dev/null
@@ -1,32 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14import java.util.Iterator;
15
16public class E_Bridges implements Iterator<Object> {
17
18 @Override
19 public boolean hasNext() {
20 return false;
21 }
22
23 @Override
24 public String next() {
25 // the compiler will generate a bridge for this method
26 return "foo";
27 }
28
29 @Override
30 public void remove() {
31 }
32}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java b/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java
deleted file mode 100644
index 8a92792..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java
+++ /dev/null
@@ -1,31 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14@SuppressWarnings("FinalizeCalledExplicitly")
15public class F_ObjectMethods {
16
17 public void callEmAll()
18 throws Throwable {
19 clone();
20 equals(this);
21 finalize();
22 getClass();
23 hashCode();
24 notify();
25 notifyAll();
26 toString();
27 wait();
28 wait(0);
29 wait(0, 0);
30 }
31}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java b/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java
deleted file mode 100644
index a1e6a85..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java
+++ /dev/null
@@ -1,36 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14public class G_OuterClass {
15
16 public class A_InnerClass {
17
18 public int f1;
19 public String f2;
20
21 public void m1() {}
22
23 public class A_InnerInnerClass {
24
25 public int f3;
26
27 public void m2() {}
28 }
29 }
30
31 public class B_NamelessClass {
32 public class A_NamedInnerClass {
33 public int f4;
34 }
35 }
36}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java b/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java
deleted file mode 100644
index 013c55a..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java
+++ /dev/null
@@ -1,40 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14public class H_NamelessClass {
15
16 public class A_InnerClass {
17
18 public int f1;
19 public String f2;
20
21 public void m1() {}
22
23 public class A_InnerInnerClass {
24
25 public int f3;
26
27 public void m2() {}
28 }
29 }
30
31 public class B_NamelessClass {
32 public class A_NamedInnerClass {
33 public int f4;
34
35 public class A_AnotherInnerClass {}
36
37 public class B_YetAnotherInnerClass {}
38 }
39 }
40}
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java b/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java
deleted file mode 100644
index fd2ebdd..0000000
--- a/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java
+++ /dev/null
@@ -1,35 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.translation;
13
14import java.util.List;
15import java.util.Map;
16
17public class I_Generics {
18
19 public List<Integer> f1;
20 public List<A_Type> f2;
21 public Map<A_Type, A_Type> f3;
22 public B_Generic<Integer> f5;
23 public B_Generic<A_Type> f6;
24
25 public class A_Type {
26 }
27
28 public class B_Generic<T> {
29 public T f4;
30
31 public T m1() {
32 return null;
33 }
34 }
35}