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
.@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.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.Use to explicitly open and close Request, Session and Conversation scopes.
@IgnoredClasses
prevent classes from being automatically added to the CDI environment.Starts a conversation around the annotated method.
Starts a request around the annotated method.
Starts a session around the annotated method.
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.Enable support for Ejb
Enable support for JaxRs mocking.
Enable support for
Resource
injection.