From 6262c9434ce82d481e9a5a11046cc4518d502fce Mon Sep 17 00:00:00 2001 From: Etienne Zink Date: Wed, 20 Apr 2022 15:26:50 +0200 Subject: [PATCH] Anpassung am manuellen Test OLFunTest.java. --- src/test/java/bytecode/OLFun2Test.java | 2 +- src/test/resources/testBytecode/manually/OLFunTest.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/test/java/bytecode/OLFun2Test.java b/src/test/java/bytecode/OLFun2Test.java index a38f405b..d352f028 100644 --- a/src/test/java/bytecode/OLFun2Test.java +++ b/src/test/java/bytecode/OLFun2Test.java @@ -72,7 +72,7 @@ public class OLFun2Test { assertNotNull(m); } - @AfterClass + //@AfterClass public static void cleanUp() { TestCleanUp.cleanUpDirectory(new File(generatedByteCodeDirectory), f -> f.getName().contains(".class")); } diff --git a/src/test/resources/testBytecode/manually/OLFunTest.java b/src/test/resources/testBytecode/manually/OLFunTest.java index 8a2603a1..6a4f09dd 100644 --- a/src/test/resources/testBytecode/manually/OLFunTest.java +++ b/src/test/resources/testBytecode/manually/OLFunTest.java @@ -1,9 +1,10 @@ public class OLFunTest{ public static void main(String[] args){ var olFun2 = new OLFun2(); - olFun2.m((Integer x) -> x); - olFun2.m((Integer x) -> (Double) Double.valueOf(x)); - olFun2.m((Double x) -> x); - olFun2.m((Double x) -> x.intValue()); + Integer i = olFun2.m((Integer x) -> x); + i = olFun2.m((Double x) -> x.intValue()); + + Double d = olFun2.m((Integer x) -> (Double) Double.valueOf(x)); + d = olFun2.m((Double x) -> x); } } \ No newline at end of file