Interface TestApi


  • public interface TestApi
    SPI to make test specific implementations of Astrix services ("service beans") available in the service registry managed by an AstrixRule.

    Author:
    Elias Lindholm
    • Method Detail

      • exportServices

        void exportServices​(TestApi.TestContext testContext)
        Export all service beans provided by this TestApi. Note that it is NOT possible to export libraries from a TestApi. TestApi specific methods (for instance methods for test-data population) should be placed directly in the given TestApi class, and NOT exported using this method.
        Parameters:
        testContext -
      • getTestApiDependencies

        default Stream<Class<? extends TestApi>> getTestApiDependencies()
        Returns a Stream of all TestApi's used by this TestApi. When AstrixRule loads a TestApi it will also load all its dependencies. Default implementation returns an empty stream indicating that a TestApi does not depend on any other TestApi's.
        Returns: