All Classes and Interfaces
Class
Description
@ActivatedAlternatives
adds classes to the CDI environment
that are not discovered automatically and marks them as an activated
alternative as if they were specified in beans.xml.Activate listed scopes for the duration of the test.
Container annotation for repeatable
ActivateScopes
.Discover ActivateScopes features:
ActivateScopes
ActivateScopes.All
meta annotations
@AdditionalClasses
adds classes to the CDI environment that are not discovered automatically.@AdditionalClasspaths
adds all the classes in a particular classpath entry to the CDI environment that are
not discovered automatically.@AdditionalPackages
adds all the classes in a particular package entry to the CDI environment that are not
discovered automatically.Scanner for bean archives.
Discover standard CDI features:
extensions
interceptors
decorators
alternative stereotypes
CDI Unit supports JUnit via:
* JUnit Rules - see
CdiJUnitRule
*
* JUnit runners - see CdiRunner
*
CdiRunner
is a JUnit runner that uses a CDI container to create unit test objects.Discover CDI Unit features:
AdditionalClasspaths
AdditionalPackages
AdditionalClasses
ActivatedAlternatives
meta annotations
Enables us to inject initial listener.
Enables us to inject initial listener.
Class lookup singleton.
Use to explicitly open and close Request, Session and Conversation scopes.
This product includes software developed at The Apache Software Foundation (https://www.apache.org/).
@IgnoredClasses
prevent classes from being automatically added to the CDI environment.Discover IgnoredClasses feature of CDI Unit.
Starts a conversation around the annotated method.
Starts a request around the annotated method.
Starts a session around the annotated method.
Discovery extension to find and report invalid usage of
Rule
annotations in CDI context.Defines the isolation level for a test case.
@ProducesAlternative
causes a produced variable or
method to act as an enabled alternative overriding any other suitable
injections.Don't report marked elements after the discovery.
Treaked from resteasy RequestImpl
Enable support for Ejb
Enable support for JaxRs mocking.
Enable support for
Resource
injection.Defines how CDI-Unit should initialize Weld.