Interface InfrastructureService

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractService

public interface InfrastructureService extends AutoCloseable
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    void
    Perform any initialization necessary
    void
    Register service properties (such as using System.setProperties) so that they can be resolved at distance (i.e.
    void
    Shuts down the service after the test has completed
  • Method Details

    • registerProperties

      void registerProperties()
      Register service properties (such as using System.setProperties) so that they can be resolved at distance (i.e. when using Spring's PropertySourcesPlaceholderConfigurer or simply when trying to collect test infra information outside the test class itself).
    • initialize

      void initialize()
      Perform any initialization necessary
    • shutdown

      void shutdown()
      Shuts down the service after the test has completed
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable