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 TypeMethodDescriptionvoidclose()Close the scope.<T> Tget(Contextual<T> contextual) <T> Tget(Contextual<T> contextual, CreationalContext<T> context) Class<? extends Annotation> getScope()booleanisActive()static HelidonTestScopeCreate a new per-container scope.static HelidonTestScopeofThread()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.
-