From 56f68e84e49658e686630b33952f895204b89273 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Mon, 8 Aug 2022 11:09:19 +0200 Subject: [PATCH] modified: ../../java/targetast/TestComplete.java Test Tph2Test eingefue=gt modified: ../bytecode/javFiles/Tph2.jav Zeilen auskommentiert, die bereits in anderen Tests enthalten --- src/test/java/targetast/TestComplete.java | 6 ++++++ src/test/resources/bytecode/javFiles/Tph2.jav | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/targetast/TestComplete.java b/src/test/java/targetast/TestComplete.java index f1271108..d0e07540 100644 --- a/src/test/java/targetast/TestComplete.java +++ b/src/test/java/targetast/TestComplete.java @@ -337,6 +337,12 @@ public class TestComplete { var instance = classFiles.get("SubMatrix").getDeclaredConstructor().newInstance(); } + @Test + public void tph2Test() throws Exception { + var classFiles = generateClassFiles("Tph2.jav", new ByteArrayClassLoader()); + var instance = classFiles.get("Tph2").getDeclaredConstructor().newInstance(); + } + @Test public void tph3Test() throws Exception { var classFiles = generateClassFiles("Tph3.jav", new ByteArrayClassLoader()); diff --git a/src/test/resources/bytecode/javFiles/Tph2.jav b/src/test/resources/bytecode/javFiles/Tph2.jav index 760e4fa7..2f9c53e6 100644 --- a/src/test/resources/bytecode/javFiles/Tph2.jav +++ b/src/test/resources/bytecode/javFiles/Tph2.jav @@ -4,7 +4,7 @@ public class Tph2 { return id.apply(x); } - +/* m(a,b){ var c = m2(a,b); //m2(a,b); @@ -14,4 +14,5 @@ public class Tph2 { m2(a,b){ return b; } +*/ } \ No newline at end of file