Skip to content

Commit

Permalink
Added unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Stamann committed Jan 26, 2024
1 parent fa41fee commit 167ff35
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cute/src/test/java/io/toolisticon/cute/CuteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 167ff35

Please sign in to comment.