Skip to content

Commit 167ff35

Browse files
author
Tobias Stamann
committed
Added unit test
1 parent fa41fee commit 167ff35

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cute/src/test/java/io/toolisticon/cute/CuteTest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,25 @@ public void doTests(CuteClassLoader cuteClassLoader) throws Exception{
10481048
.executeTest();
10491049
}
10501050

1051+
@Test()
1052+
public void blackBoxTest_justCompileCodeAndDoClassTest4() {
1053+
Cute.blackBoxTest().given().processors()
1054+
.andSourceFiles("/TestClassWithInnerClasses.java")
1055+
.whenCompiled()
1056+
.thenExpectThat()
1057+
.compilationSucceeds()
1058+
.andThat().generatedClass("io.toolisticon.cute.TestClassWithInnerClasses$InnerClass").testedSuccessfullyBy(new GeneratedClassesTestForSpecificClass() {
1059+
@Override
1060+
public void doTests( Class<?> innerClazz, CuteClassLoader cuteClassLoader) throws Exception{
1061+
1062+
MatcherAssert.assertThat(innerClazz.getCanonicalName(),Matchers.is("io.toolisticon.cute.TestClassWithInnerClasses.InnerClass"));
1063+
1064+
1065+
}
1066+
})
1067+
.executeTest();
1068+
}
1069+
10511070
@Test()
10521071
public void blackBoxTest_justCompileCodeAndDoClassTestWithImplementedInterface() {
10531072
Cute.blackBoxTest().given().noProcessors()

0 commit comments

Comments
 (0)