aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/a/pkg/A.java5
-rw-r--r--src/test/java/a/pkg/AParent.java3
-rw-r--r--src/test/java/b/pkg/B.java5
-rw-r--r--src/test/java/b/pkg/BParent.java3
4 files changed, 16 insertions, 0 deletions
diff --git a/src/test/java/a/pkg/A.java b/src/test/java/a/pkg/A.java
index 94e8a77..b5480d4 100644
--- a/src/test/java/a/pkg/A.java
+++ b/src/test/java/a/pkg/A.java
@@ -1,6 +1,7 @@
package a.pkg;
public class A extends AParent implements AInterface {
+ private A a;
private int aField;
public A() {
@@ -13,6 +14,10 @@ public class A extends AParent implements AInterface {
aInterfaceMethod();
}
+ public A getA() {
+ return this;
+ }
+
public void aOverloaded() {
}
diff --git a/src/test/java/a/pkg/AParent.java b/src/test/java/a/pkg/AParent.java
index aaf35fb..ac0ea7c 100644
--- a/src/test/java/a/pkg/AParent.java
+++ b/src/test/java/a/pkg/AParent.java
@@ -1,4 +1,7 @@
package a.pkg;
public class AParent {
+ public AParent aParentMethod() {
+ return this;
+ }
}
diff --git a/src/test/java/b/pkg/B.java b/src/test/java/b/pkg/B.java
index 9524513..88f46cf 100644
--- a/src/test/java/b/pkg/B.java
+++ b/src/test/java/b/pkg/B.java
@@ -1,6 +1,7 @@
package b.pkg;
public class B extends BParent implements BInterface {
+ private B b;
private int bField;
public B() {
@@ -13,6 +14,10 @@ public class B extends BParent implements BInterface {
bInterfaceMethod();
}
+ public B getB() {
+ return this;
+ }
+
public void bOverloaded() {
}
diff --git a/src/test/java/b/pkg/BParent.java b/src/test/java/b/pkg/BParent.java
index 29cae54..d4b20fa 100644
--- a/src/test/java/b/pkg/BParent.java
+++ b/src/test/java/b/pkg/BParent.java
@@ -1,4 +1,7 @@
package b.pkg;
public class BParent {
+ public BParent bParentMethod() {
+ return this;
+ }
}