Weld instance has:
automatic discovery disabled
concurrent deployment disabled
@EnableAutoWeld
instead of @ExtendWith(WeldJunit5AutoExtension.class).@EnableWeld
instead of @ExtendWith(WeldJunit5Extension.class).ExcludeBean excludes a bean, or multiple beans, that include a bean defining annotation (
e.g.ExcludeBeanClasses excludes a set of classes with bean defining annotations (e.g.WeldInitiator.createWeld() method and the given bean classes are added.Weld instance.WeldInitiator.createWeld() method and all the classes from the test class
package are added.WeldContainer to ExtensionContext.StoreExtensionContext.Store based on provided ExtensionContextWeldJunit5Extension.WeldInitiator instance, e.g.WeldJunit5Extension allowing to fully leverage annotation based configuration approach.TestInstance.Lifecycle.PER_CLASS) and tear it down afterwards.WeldInitiator field annotated with WeldSetup is present on a test class, all service providers of this interface are used to enrich the
default test environment.Copyright © 2019. All rights reserved.