Class ClassInclusionReport
- java.lang.Object
-
- io.quarkus.test.junit.nativeimage.ClassInclusionReport
-
public final class ClassInclusionReport extends Object
This is a general utility to assert via unit testing which classes have been included in a native-image.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertContains(Class<?> type)
void
assertContains(String typeName)
void
assertContainsNot(Class<?> type)
void
assertContainsNot(String typeName)
static ClassInclusionReport
load()
This will load the class inclusions report assuming the native-image was built in the current module and following Maven conventions: by walking into the '/target' directory from the current directory.
-
-
-
Method Detail
-
load
public static ClassInclusionReport load()
This will load the class inclusions report assuming the native-image was built in the current module and following Maven conventions: by walking into the '/target' directory from the current directory.- Returns:
- An assertable report of all classes included in the current app
-
assertContains
public void assertContains(Class<?> type)
-
assertContainsNot
public void assertContainsNot(Class<?> type)
-
assertContains
public void assertContains(String typeName)
-
assertContainsNot
public void assertContainsNot(String typeName)
-
-