summaryrefslogtreecommitdiff
path: root/src/test/java/cuchaz/enigma/inputs
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
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')
-rw-r--r--src/test/java/cuchaz/enigma/inputs/Keep.java18
-rw-r--r--src/test/java/cuchaz/enigma/inputs/constructors/BaseClass.java26
-rw-r--r--src/test/java/cuchaz/enigma/inputs/constructors/Caller.java58
-rw-r--r--src/test/java/cuchaz/enigma/inputs/constructors/DefaultConstructable.java16
-rw-r--r--src/test/java/cuchaz/enigma/inputs/constructors/SubClass.java39
-rw-r--r--src/test/java/cuchaz/enigma/inputs/constructors/SubSubClass.java22
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java32
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java22
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java41
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java35
-rw-r--r--src/test/java/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java25
-rw-r--r--src/test/java/cuchaz/enigma/inputs/innerClasses/B_AnonymousWithScopeArgs.java24
-rw-r--r--src/test/java/cuchaz/enigma/inputs/innerClasses/C_ConstructorArgs.java31
-rw-r--r--src/test/java/cuchaz/enigma/inputs/innerClasses/D_Simple.java19
-rw-r--r--src/test/java/cuchaz/enigma/inputs/innerClasses/E_AnonymousWithOuterAccess.java32
-rw-r--r--src/test/java/cuchaz/enigma/inputs/innerClasses/F_ClassTree.java30
-rw-r--r--src/test/java/cuchaz/enigma/inputs/loneClass/LoneClass.java25
-rw-r--r--src/test/java/cuchaz/enigma/inputs/packageAccess/Base.java7
-rw-r--r--src/test/java/cuchaz/enigma/inputs/packageAccess/SamePackageChild.java12
-rw-r--r--src/test/java/cuchaz/enigma/inputs/packageAccess/sub/OtherPackageChild.java14
-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
29 files changed, 0 insertions, 818 deletions
diff --git a/src/test/java/cuchaz/enigma/inputs/Keep.java b/src/test/java/cuchaz/enigma/inputs/Keep.java
deleted file mode 100644
index 4dbe8e2..0000000
--- a/src/test/java/cuchaz/enigma/inputs/Keep.java
+++ /dev/null
@@ -1,18 +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;
13
14public class Keep {
15 public static void main(String[] args) {
16 System.out.println("Keep me!");
17 }
18}
diff --git a/src/test/java/cuchaz/enigma/inputs/constructors/BaseClass.java b/src/test/java/cuchaz/enigma/inputs/constructors/BaseClass.java
deleted file mode 100644
index f07e1f8..0000000
--- a/src/test/java/cuchaz/enigma/inputs/constructors/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.constructors;
13
14// a
15public class BaseClass {
16
17 // <init>()V
18 public BaseClass() {
19 System.out.println("Default constructor");
20 }
21
22 // <init>(I)V
23 public BaseClass(int i) {
24 System.out.println("Int constructor " + i);
25 }
26}
diff --git a/src/test/java/cuchaz/enigma/inputs/constructors/Caller.java b/src/test/java/cuchaz/enigma/inputs/constructors/Caller.java
deleted file mode 100644
index 71439fd..0000000
--- a/src/test/java/cuchaz/enigma/inputs/constructors/Caller.java
+++ /dev/null
@@ -1,58 +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.constructors;
13
14// b
15public class Caller {
16
17 // a()V
18 public void callBaseDefault() {
19 // a.<init>()V
20 System.out.println(new BaseClass());
21 }
22
23 // b()V
24 public void callBaseInt() {
25 // a.<init>(I)V
26 System.out.println(new BaseClass(5));
27 }
28
29 // c()V
30 public void callSubDefault() {
31 // d.<init>()V
32 System.out.println(new SubClass());
33 }
34
35 // d()V
36 public void callSubInt() {
37 // d.<init>(I)V
38 System.out.println(new SubClass(6));
39 }
40
41 // e()V
42 public void callSubIntInt() {
43 // d.<init>(II)V
44 System.out.println(new SubClass(4, 2));
45 }
46
47 // f()V
48 public void callSubSubInt() {
49 // e.<init>(I)V
50 System.out.println(new SubSubClass(3));
51 }
52
53 // g()V
54 public void callDefaultConstructable() {
55 // c.<init>()V
56 System.out.println(new DefaultConstructable());
57 }
58}
diff --git a/src/test/java/cuchaz/enigma/inputs/constructors/DefaultConstructable.java b/src/test/java/cuchaz/enigma/inputs/constructors/DefaultConstructable.java
deleted file mode 100644
index c3d4170..0000000
--- a/src/test/java/cuchaz/enigma/inputs/constructors/DefaultConstructable.java
+++ /dev/null
@@ -1,16 +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.constructors;
13
14public class DefaultConstructable {
15 // only default constructor
16}
diff --git a/src/test/java/cuchaz/enigma/inputs/constructors/SubClass.java b/src/test/java/cuchaz/enigma/inputs/constructors/SubClass.java
deleted file mode 100644
index bc56b3b..0000000
--- a/src/test/java/cuchaz/enigma/inputs/constructors/SubClass.java
+++ /dev/null
@@ -1,39 +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.constructors;
13
14// d extends a
15public class SubClass extends BaseClass {
16
17 // <init>()V
18 public SubClass() {
19 // a.<init>()V
20 }
21
22 // <init>(I)V
23 public SubClass(int num) {
24 // <init>()V
25 this();
26 System.out.println("SubClass " + num);
27 }
28
29 // <init>(II)V
30 public SubClass(int a, int b) {
31 // <init>(I)V
32 this(a + b);
33 }
34
35 // <init>(III)V
36 public SubClass(int a, int b, int c) {
37 // a.<init>()V
38 }
39}
diff --git a/src/test/java/cuchaz/enigma/inputs/constructors/SubSubClass.java b/src/test/java/cuchaz/enigma/inputs/constructors/SubSubClass.java
deleted file mode 100644
index 87b69d3..0000000
--- a/src/test/java/cuchaz/enigma/inputs/constructors/SubSubClass.java
+++ /dev/null
@@ -1,22 +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.constructors;
13
14// e extends d
15public class SubSubClass extends SubClass {
16
17 // <init>(I)V
18 public SubSubClass(int i) {
19 // c.<init>(I)V
20 super(i);
21 }
22}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java
deleted file mode 100644
index b9c4929..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.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.inheritanceTree;
13
14// a
15public abstract class BaseClass {
16
17 // a
18 private String name;
19
20 // <init>(Ljava/lang/String;)V
21 protected BaseClass(String name) {
22 this.name = name;
23 }
24
25 // a()Ljava/lang/String;
26 public String getName() {
27 return name;
28 }
29
30 // a()V
31 public abstract void doBaseThings();
32}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java
deleted file mode 100644
index 50e963c..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java
+++ /dev/null
@@ -1,22 +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.inheritanceTree;
13
14// b extends a
15public abstract class SubclassA extends BaseClass {
16
17 // <init>(Ljava/lang/String;)V
18 protected SubclassA(String name) {
19 // call to a.<init>(Ljava/lang/String)V
20 super(name);
21 }
22}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java
deleted file mode 100644
index d0dd664..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java
+++ /dev/null
@@ -1,41 +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.inheritanceTree;
13
14// c extends a
15public class SubclassB extends BaseClass {
16
17 // a
18 private int numThings;
19
20 // <init>()V
21 protected SubclassB() {
22 // a.<init>(Ljava/lang/String;)V
23 super("B");
24
25 // access to a
26 numThings = 4;
27 }
28
29 @Override
30 // a()V
31 public void doBaseThings() {
32 // call to a.a()Ljava/lang/String;
33 System.out.println("Base things by B! " + getName());
34 }
35
36 // b()V
37 public void doBThings() {
38 // access to a
39 System.out.println("" + numThings + " B things!");
40 }
41}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java
deleted file mode 100644
index c584570..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.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.inheritanceTree;
13
14// d extends b
15public class SubsubclassAA extends SubclassA {
16
17 protected SubsubclassAA() {
18 // call to b.<init>(Ljava/lang/String;)V
19 super("AA");
20 }
21
22 @Override
23 // a()Ljava/lang/String;
24 public String getName() {
25 // call to b.a()Ljava/lang/String;
26 return "subsub" + super.getName();
27 }
28
29 @Override
30 // a()V
31 public void doBaseThings() {
32 // call to d.a()Ljava/lang/String;
33 System.out.println("Base things by " + getName());
34 }
35}
diff --git a/src/test/java/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java b/src/test/java/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java
deleted file mode 100644
index f652d87..0000000
--- a/src/test/java/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java
+++ /dev/null
@@ -1,25 +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.innerClasses;
13
14public class A_Anonymous {
15
16 public void foo() {
17 Runnable runnable = new Runnable() {
18 @Override
19 public void run() {
20 // don't care
21 }
22 };
23 runnable.run();
24 }
25}
diff --git a/src/test/java/cuchaz/enigma/inputs/innerClasses/B_AnonymousWithScopeArgs.java b/src/test/java/cuchaz/enigma/inputs/innerClasses/B_AnonymousWithScopeArgs.java
deleted file mode 100644
index d1b7601..0000000
--- a/src/test/java/cuchaz/enigma/inputs/innerClasses/B_AnonymousWithScopeArgs.java
+++ /dev/null
@@ -1,24 +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.innerClasses;
13
14public class B_AnonymousWithScopeArgs {
15
16 public static void foo(final D_Simple arg) {
17 System.out.println(new Object() {
18 @Override
19 public String toString() {
20 return arg.toString();
21 }
22 });
23 }
24}
diff --git a/src/test/java/cuchaz/enigma/inputs/innerClasses/C_ConstructorArgs.java b/src/test/java/cuchaz/enigma/inputs/innerClasses/C_ConstructorArgs.java
deleted file mode 100644
index 94061fa..0000000
--- a/src/test/java/cuchaz/enigma/inputs/innerClasses/C_ConstructorArgs.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.innerClasses;
13
14@SuppressWarnings("unused")
15public class C_ConstructorArgs {
16
17 Inner i;
18
19 public void foo() {
20 i = new Inner(5);
21 }
22
23 class Inner {
24
25 private int a;
26
27 public Inner(int a) {
28 this.a = a;
29 }
30 }
31}
diff --git a/src/test/java/cuchaz/enigma/inputs/innerClasses/D_Simple.java b/src/test/java/cuchaz/enigma/inputs/innerClasses/D_Simple.java
deleted file mode 100644
index 71b3a6d..0000000
--- a/src/test/java/cuchaz/enigma/inputs/innerClasses/D_Simple.java
+++ /dev/null
@@ -1,19 +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.innerClasses;
13
14public class D_Simple {
15
16 class Inner {
17 // nothing to do
18 }
19}
diff --git a/src/test/java/cuchaz/enigma/inputs/innerClasses/E_AnonymousWithOuterAccess.java b/src/test/java/cuchaz/enigma/inputs/innerClasses/E_AnonymousWithOuterAccess.java
deleted file mode 100644
index 976ec42..0000000
--- a/src/test/java/cuchaz/enigma/inputs/innerClasses/E_AnonymousWithOuterAccess.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.innerClasses;
13
14public class E_AnonymousWithOuterAccess {
15
16 // reproduction of error case documented at:
17 // https://bitbucket.org/cuchaz/enigma/issue/61/stackoverflowerror-when-deobfuscating
18
19 public Object makeInner() {
20 outerMethod();
21 return new Object() {
22 @Override
23 public String toString() {
24 return outerMethod();
25 }
26 };
27 }
28
29 private String outerMethod() {
30 return "foo";
31 }
32}
diff --git a/src/test/java/cuchaz/enigma/inputs/innerClasses/F_ClassTree.java b/src/test/java/cuchaz/enigma/inputs/innerClasses/F_ClassTree.java
deleted file mode 100644
index b1de3c9..0000000
--- a/src/test/java/cuchaz/enigma/inputs/innerClasses/F_ClassTree.java
+++ /dev/null
@@ -1,30 +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.innerClasses;
13
14public class F_ClassTree {
15
16 public class Level1 {
17
18 public int f1;
19
20 public class Level2 {
21
22 public int f2;
23
24 public class Level3 {
25
26 public int f3;
27 }
28 }
29 }
30}
diff --git a/src/test/java/cuchaz/enigma/inputs/loneClass/LoneClass.java b/src/test/java/cuchaz/enigma/inputs/loneClass/LoneClass.java
deleted file mode 100644
index ddc4e31..0000000
--- a/src/test/java/cuchaz/enigma/inputs/loneClass/LoneClass.java
+++ /dev/null
@@ -1,25 +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.loneClass;
13
14public class LoneClass {
15
16 private String name;
17
18 public LoneClass(String name) {
19 this.name = name;
20 }
21
22 public String getName() {
23 return name;
24 }
25}
diff --git a/src/test/java/cuchaz/enigma/inputs/packageAccess/Base.java b/src/test/java/cuchaz/enigma/inputs/packageAccess/Base.java
deleted file mode 100644
index 6f5fe30..0000000
--- a/src/test/java/cuchaz/enigma/inputs/packageAccess/Base.java
+++ /dev/null
@@ -1,7 +0,0 @@
1package cuchaz.enigma.inputs.packageAccess;
2
3public class Base {
4 protected int make() {
5 return 42;
6 }
7}
diff --git a/src/test/java/cuchaz/enigma/inputs/packageAccess/SamePackageChild.java b/src/test/java/cuchaz/enigma/inputs/packageAccess/SamePackageChild.java
deleted file mode 100644
index cf0f657..0000000
--- a/src/test/java/cuchaz/enigma/inputs/packageAccess/SamePackageChild.java
+++ /dev/null
@@ -1,12 +0,0 @@
1package cuchaz.enigma.inputs.packageAccess;
2
3public class SamePackageChild extends Base {
4
5 class Inner {
6 final int value;
7
8 Inner() {
9 value = SamePackageChild.this.make(); // no synthetic method
10 }
11 }
12}
diff --git a/src/test/java/cuchaz/enigma/inputs/packageAccess/sub/OtherPackageChild.java b/src/test/java/cuchaz/enigma/inputs/packageAccess/sub/OtherPackageChild.java
deleted file mode 100644
index 19fb19c..0000000
--- a/src/test/java/cuchaz/enigma/inputs/packageAccess/sub/OtherPackageChild.java
+++ /dev/null
@@ -1,14 +0,0 @@
1package cuchaz.enigma.inputs.packageAccess.sub;
2
3import cuchaz.enigma.inputs.packageAccess.Base;
4
5public class OtherPackageChild extends Base {
6
7 class Inner {
8 final int value;
9
10 Inner() {
11 value = OtherPackageChild.this.make(); // synthetic method call
12 }
13 }
14}
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}