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 Details

    • 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)