diff options
| author | 2014-09-14 21:54:58 -0400 | |
|---|---|---|
| committer | 2014-09-14 21:54:58 -0400 | |
| commit | 6736d9aac3e7d1591cba33852126abf79dd18a57 (patch) | |
| tree | 63afffa4db2ee1cdcab969632d39ee985b815cf8 /test/cuchaz/enigma/inputs/constructors/Caller.java | |
| parent | fixed bug with method references pointing to wrong class (diff) | |
| download | enigma-fork-6736d9aac3e7d1591cba33852126abf79dd18a57.tar.gz enigma-fork-6736d9aac3e7d1591cba33852126abf79dd18a57.tar.xz enigma-fork-6736d9aac3e7d1591cba33852126abf79dd18a57.zip | |
added test to check constructor references
Diffstat (limited to 'test/cuchaz/enigma/inputs/constructors/Caller.java')
| -rw-r--r-- | test/cuchaz/enigma/inputs/constructors/Caller.java | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/test/cuchaz/enigma/inputs/constructors/Caller.java b/test/cuchaz/enigma/inputs/constructors/Caller.java new file mode 100644 index 0000000..f356b1b --- /dev/null +++ b/test/cuchaz/enigma/inputs/constructors/Caller.java | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | package cuchaz.enigma.inputs.constructors; | ||
| 2 | |||
| 3 | // none/b | ||
| 4 | public class Caller | ||
| 5 | { | ||
| 6 | // a()V | ||
| 7 | public void callBaseDefault( ) | ||
| 8 | { | ||
| 9 | // none/a.<init>()V | ||
| 10 | System.out.println( new BaseClass() ); | ||
| 11 | } | ||
| 12 | |||
| 13 | // b()V | ||
| 14 | public void callBaseInt( ) | ||
| 15 | { | ||
| 16 | // none/a.<init>(I)V | ||
| 17 | System.out.println( new BaseClass( 5 ) ); | ||
| 18 | } | ||
| 19 | |||
| 20 | // c()V | ||
| 21 | public void callSubDefault( ) | ||
| 22 | { | ||
| 23 | // none/c.<init>()V | ||
| 24 | System.out.println( new SubClass() ); | ||
| 25 | } | ||
| 26 | |||
| 27 | // d()V | ||
| 28 | public void callSubInt( ) | ||
| 29 | { | ||
| 30 | // none/c.<init>(I)V | ||
| 31 | System.out.println( new SubClass( 6 ) ); | ||
| 32 | } | ||
| 33 | |||
| 34 | // e()V | ||
| 35 | public void callSubIntInt( ) | ||
| 36 | { | ||
| 37 | // none/c.<init>(II)V | ||
| 38 | System.out.println( new SubClass( 4, 2 ) ); | ||
| 39 | } | ||
| 40 | |||
| 41 | // f()V | ||
| 42 | public void callSubSubInt( ) | ||
| 43 | { | ||
| 44 | // none/d.<init>(I)V | ||
| 45 | System.out.println( new SubSubClass( 3 ) ); | ||
| 46 | } | ||
| 47 | } | ||