Package io.helidon.microprofile.testing
Class HelidonTestScope
java.lang.Object
io.helidon.microprofile.testing.HelidonTestScope
- All Implemented Interfaces:
Context
CDI context that supports
HelidonTestScoped
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the scope.<T> T
get
(Contextual<T> contextual) <T> T
get
(Contextual<T> contextual, CreationalContext<T> context) Class
<? extends Annotation> getScope()
boolean
isActive()
static HelidonTestScope
Create a new per-container scope.static HelidonTestScope
ofThread()
Create a new per-thread scope.
-
Constructor Details
-
HelidonTestScope
public HelidonTestScope()
-
-
Method Details
-
ofThread
Create a new per-thread scope.- Returns:
- HelidonTestScope
-
ofContainer
Create a new per-container scope.- Returns:
- HelidonTestScope
-
getScope
-
isActive
public boolean isActive() -
get
-
get
-
close
public void close()Close the scope.
-