Class WeldEnvironment
java.lang.Object
de.xima.fc.ms.test.extension.WeldEnvironment
- All Implemented Interfaces:
AutoCloseable
Represents a Weld environment that was started for tests.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.jboss.weld.environment.se.WeldContainerGets the Weld container that was started for the test environment.org.jboss.weld.junit5.WeldInitiatorGets the Weld initiator that was started for the test environment.org.jboss.weld.environment.se.Weldweld()Gets the Weld instance that was started for the test environment.
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
container
public org.jboss.weld.environment.se.WeldContainer container()Gets the Weld container that was started for the test environment.- Returns:
- The Weld container.
-
initiator
public org.jboss.weld.junit5.WeldInitiator initiator()Gets the Weld initiator that was started for the test environment.- Returns:
- The Weld initiator.
-
weld
public org.jboss.weld.environment.se.Weld weld()Gets the Weld instance that was started for the test environment.- Returns:
- The Weld instance.
-