Class WeldEnvironment

java.lang.Object
de.xima.fc.ms.test.extension.WeldEnvironment
All Implemented Interfaces:
AutoCloseable

public final class WeldEnvironment extends Object implements AutoCloseable
Represents a Weld environment that was started for tests.
Since:
8.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.jboss.weld.environment.se.WeldContainer
    Gets the Weld container that was started for the test environment.
    org.jboss.weld.junit5.WeldInitiator
    Gets the Weld initiator that was started for the test environment.
    org.jboss.weld.environment.se.Weld
    Gets the Weld instance that was started for the test environment.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      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.