Uses of Class
io.quarkus.test.QuarkusUnitTest
Packages that use 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.Builder
that will be used to create theCuratedApplication
QuarkusUnitTest.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.debugBytecode
(boolean debugBytecode) Controls bytecode-related debug dumping.QuarkusUnitTest.overrideConfigKey
(String propertyKey, String propertyValue) Overriden configuration properties take precedence over anapplication.properties
asset added in the testJavaArchive
.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.traceCategories
(String... categories) Enables trace logs for the given categories, during both build and runtime.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) Add anapplication.properties
asset loaded from the specified resource file in the testJavaArchive
.QuarkusUnitTest.withEmptyApplication()
Use an empty application for the teststatic QuarkusUnitTest
QuarkusUnitTest.withSecuredConnection()