Class AcrossTestContext

All Implemented Interfaces:
AcrossContextBeanRegistry, Closeable, AutoCloseable
Direct Known Subclasses:
AcrossTestWebContext

public class AcrossTestContext extends DefaultAcrossContextBeanRegistry implements Closeable
This class is a wrapper around a bootstrapped AcrossContext and provides methods for easy querying of said context and its modules. This class also implements Closeable. Calling close() will close both the AcrossContext and (if provided) the additional parent ApplicationContext.

Instances of this class should not be created manually but through one of the builders. See AcrossTestBuilders. Public constructors will be removes in a future release.

Author:
Arne Vandamme
See Also:
  • Constructor Details

    • AcrossTestContext

      protected AcrossTestContext()
  • Method Details

    • setApplicationContext

      protected void setApplicationContext(org.springframework.context.ConfigurableApplicationContext applicationContext)
    • setAcrossContext

      protected void setAcrossContext(AcrossContext acrossContext)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • contextInfo

      public AcrossContextInfo contextInfo()
      Returns:
      the bootstrapped Across context info