Package com.avanza.astrix.test
Interface TestApi
-
public interface TestApiSPI to make test specific implementations of Astrix services ("service beans") available in the service registry managed by anAstrixRule.- Author:
- Elias Lindholm
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTestApi.TestContext
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidexportServices(TestApi.TestContext testContext)Export all service beans provided by this TestApi.default Stream<Class<? extends TestApi>>getTestApiDependencies()Returns a Stream of all TestApi's used by this TestApi.
-
-
-
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. WhenAstrixRuleloads 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:
-
-