aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorJonas Herzig <jonas@spark-squared.com>2021-11-10 09:34:39 +0100
committerJonas Herzig <jonas@spark-squared.com>2021-11-10 18:11:16 +0100
commit7d62cd890cb44945e772e18cdb457b1173f4f853 (patch)
treee6f0e969442f464556289a090769e966bc0e2efe /src/test/java
parent89e079621c7867036d4ac77b018ad904d21364b5 (diff)
downloadRemap-7d62cd890cb44945e772e18cdb457b1173f4f853.tar.gz
Remap-7d62cd890cb44945e772e18cdb457b1173f4f853.tar.bz2
Remap-7d62cd890cb44945e772e18cdb457b1173f4f853.zip
Start adding tests
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/a/pkg/A.java31
-rw-r--r--src/test/java/a/pkg/AInterface.java5
-rw-r--r--src/test/java/a/pkg/AParent.java4
-rw-r--r--src/test/java/b/pkg/B.java31
-rw-r--r--src/test/java/b/pkg/BInterface.java5
-rw-r--r--src/test/java/b/pkg/BParent.java4
6 files changed, 80 insertions, 0 deletions
diff --git a/src/test/java/a/pkg/A.java b/src/test/java/a/pkg/A.java
new file mode 100644
index 0000000..d91a6e5
--- /dev/null
+++ b/src/test/java/a/pkg/A.java
@@ -0,0 +1,31 @@
+package a.pkg;
+
+public class A extends AParent implements AInterface {
+ private int aField;
+
+ public void aMethod() {
+ }
+
+ public void aOverloaded() {
+ }
+
+ public void aOverloaded(int arg) {
+ }
+
+ public void aOverloaded(boolean arg) {
+ }
+
+ public void commonOverloaded(Object arg) {
+ }
+
+ public void commonOverloaded(A arg) {
+ }
+
+ @Override
+ public void aInterfaceMethod() {
+ }
+
+ public class Inner {
+ private int aField;
+ }
+}
diff --git a/src/test/java/a/pkg/AInterface.java b/src/test/java/a/pkg/AInterface.java
new file mode 100644
index 0000000..8786c94
--- /dev/null
+++ b/src/test/java/a/pkg/AInterface.java
@@ -0,0 +1,5 @@
+package a.pkg;
+
+public interface AInterface {
+ void aInterfaceMethod();
+}
diff --git a/src/test/java/a/pkg/AParent.java b/src/test/java/a/pkg/AParent.java
new file mode 100644
index 0000000..aaf35fb
--- /dev/null
+++ b/src/test/java/a/pkg/AParent.java
@@ -0,0 +1,4 @@
+package a.pkg;
+
+public class AParent {
+}
diff --git a/src/test/java/b/pkg/B.java b/src/test/java/b/pkg/B.java
new file mode 100644
index 0000000..48abdac
--- /dev/null
+++ b/src/test/java/b/pkg/B.java
@@ -0,0 +1,31 @@
+package b.pkg;
+
+public class B extends BParent implements BInterface {
+ private int bField;
+
+ public void bMethod() {
+ }
+
+ public void bOverloaded() {
+ }
+
+ public void bOverloaded(int arg) {
+ }
+
+ public void bOverloaded(boolean arg) {
+ }
+
+ public void commonOverloaded(Object arg) {
+ }
+
+ public void commonOverloaded(B arg) {
+ }
+
+ @Override
+ public void bInterfaceMethod() {
+ }
+
+ public class Inner {
+ private int bField;
+ }
+}
diff --git a/src/test/java/b/pkg/BInterface.java b/src/test/java/b/pkg/BInterface.java
new file mode 100644
index 0000000..c57c72f
--- /dev/null
+++ b/src/test/java/b/pkg/BInterface.java
@@ -0,0 +1,5 @@
+package b.pkg;
+
+public interface BInterface {
+ void bInterfaceMethod();
+}
diff --git a/src/test/java/b/pkg/BParent.java b/src/test/java/b/pkg/BParent.java
new file mode 100644
index 0000000..29cae54
--- /dev/null
+++ b/src/test/java/b/pkg/BParent.java
@@ -0,0 +1,4 @@
+package b.pkg;
+
+public class BParent {
+}