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