Uses of Class
io.quarkus.test.QuarkusUnitTest
-
Uses of QuarkusUnitTest in io.quarkus.test
Methods in io.quarkus.test that return QuarkusUnitTestModifier and TypeMethodDescriptionQuarkusUnitTest.addAdditionalDependency(org.jboss.shrinkwrap.api.spec.JavaArchive archive) Add the java archive as an additional dependency.QuarkusUnitTest.addBootstrapCustomizer(Consumer<io.quarkus.bootstrap.app.QuarkusBootstrap.Builder> consumer) An advanced option that allows tests to customize theQuarkusBootstrap.Builderthat will be used to create theCuratedApplicationQuarkusUnitTest.addBuildChainCustomizer(Consumer<io.quarkus.builder.BuildChainBuilder> customizer) QuarkusUnitTest.addClassLoaderEventListener(io.quarkus.bootstrap.classloading.ClassLoaderEventListener listener) QuarkusUnitTest.assertException(Consumer<Throwable> assertException) QuarkusUnitTest.assertLogRecords(Consumer<List<LogRecord>> assertLogRecords) QuarkusUnitTest.overrideConfigKey(String propertyKey, String propertyValue) QuarkusUnitTest.overrideRuntimeConfigKey(String propertyKey, String propertyValue) QuarkusUnitTest.setAfterAllCustomizer(Runnable afterAllCustomizer) QuarkusUnitTest.setAfterUndeployListener(Runnable afterUndeployListener) QuarkusUnitTest.setAllowTestClassOutsideDeployment(boolean allowTestClassOutsideDeployment) Normally access to any test classes that are not packaged in the deployment will result in a ClassNotFoundException.QuarkusUnitTest.setArchiveProducer(Supplier<org.jboss.shrinkwrap.api.spec.JavaArchive> archiveProducer) QuarkusUnitTest.setBeforeAllCustomizer(Runnable beforeAllCustomizer) QuarkusUnitTest.setCommandLineParameters(String... commandLineParameters) QuarkusUnitTest.setExpectedException(Class<? extends Throwable> expectedException) QuarkusUnitTest.setExpectedException(Class<? extends Throwable> expectedException, boolean logMessage) QuarkusUnitTest.setFlatClassPath(boolean flatClassPath) If this test should use a single ClassLoader to load all the classes.QuarkusUnitTest.setForcedDependencies(List<io.quarkus.maven.dependency.Dependency> forcedDependencies) Provides a convenient way to either add additional dependencies to the application (if it doesn't already contain a dependency), or override a version (if the dependency already exists)QuarkusUnitTest.setLogFileName(String logFileName) QuarkusUnitTest.setLogRecordPredicate(Predicate<LogRecord> predicate) QuarkusUnitTest.withAdditionalDependency(Consumer<org.jboss.shrinkwrap.api.spec.JavaArchive> dependencyConsumer) Add the java archive as an additional dependency.QuarkusUnitTest.withApplicationRoot(Consumer<org.jboss.shrinkwrap.api.spec.JavaArchive> applicationRootConsumer) Customize the application root.QuarkusUnitTest.withConfigurationResource(String resourceName) QuarkusUnitTest.withEmptyApplication()Use an empty application for the teststatic QuarkusUnitTestQuarkusUnitTest.withSecuredConnection()