Interface TestApi.TestContext

  • Enclosing interface:
    TestApi

    public static interface TestApi.TestContext
    • Method Detail

      • registerService

        <T> void registerService​(Class<T> serviceBean,
                                 T serviceImpl)
        Registers a given Service in the associated TestContext. The service will be registered in the service registry associated with the given TestContext.

        Parameters:
        serviceBean -
        serviceImpl -
      • getBean

        <T> T getBean​(Class<T> beanType)
        Each TestContext has an AstrixContext (which is managed by the associated AstrixRule). The AstrixContext is shared between all TestApi instances. Beans might be pulled from the AstrixContext using this method.
      • getTestApi

        <T extends TestApi> T getTestApi​(Class<T> testApi)
        Returns a TestApi instance from the given TestContext.
        Parameters:
        testApi -
        Returns: