Class NativeBuildOutputExtension

java.lang.Object
io.quarkus.test.junit.nativeimage.NativeBuildOutputExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension

public class NativeBuildOutputExtension extends Object implements org.junit.jupiter.api.extension.BeforeAllCallback
This is a general utility to assert via unit testing how many classes, methods, objects etc. have been included in a native-image.

For detailed information and explanations on the build output, visit the upstream GraalVM documentation.

  • Constructor Details

    • NativeBuildOutputExtension

      public NativeBuildOutputExtension()
  • Method Details

    • verifyImageMetrics

      public void verifyImageMetrics()
    • verifyImageMetrics

      public void verifyImageMetrics(String propertiesFileName)
    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Exception
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
      Throws:
      Exception