From 167ff355f7a7d06aa0b77fcbfb7caf6deb438186 Mon Sep 17 00:00:00 2001 From: Tobias Stamann Date: Fri, 26 Jan 2024 13:59:43 +0100 Subject: [PATCH] Added unit test --- .../java/io/toolisticon/cute/CuteTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cute/src/test/java/io/toolisticon/cute/CuteTest.java b/cute/src/test/java/io/toolisticon/cute/CuteTest.java index 1921be7..90d8dea 100644 --- a/cute/src/test/java/io/toolisticon/cute/CuteTest.java +++ b/cute/src/test/java/io/toolisticon/cute/CuteTest.java @@ -1048,6 +1048,25 @@ public void doTests(CuteClassLoader cuteClassLoader) throws Exception{ .executeTest(); } + @Test() + public void blackBoxTest_justCompileCodeAndDoClassTest4() { + Cute.blackBoxTest().given().processors() + .andSourceFiles("/TestClassWithInnerClasses.java") + .whenCompiled() + .thenExpectThat() + .compilationSucceeds() + .andThat().generatedClass("io.toolisticon.cute.TestClassWithInnerClasses$InnerClass").testedSuccessfullyBy(new GeneratedClassesTestForSpecificClass() { + @Override + public void doTests( Class innerClazz, CuteClassLoader cuteClassLoader) throws Exception{ + + MatcherAssert.assertThat(innerClazz.getCanonicalName(),Matchers.is("io.toolisticon.cute.TestClassWithInnerClasses.InnerClass")); + + + } + }) + .executeTest(); + } + @Test() public void blackBoxTest_justCompileCodeAndDoClassTestWithImplementedInterface() { Cute.blackBoxTest().given().noProcessors()