@Override public InjectionManager create(TestContext testContext) { TestConfigurer testConfigurer = testContext.getTestConfigurer(); InjectionManager injectionManager = Injections.createInjectionManager(); return testConfigurer.configure(testContext, injectionManager); }
public EmbeddedServletContainerFactory getEmbeddedServletContainerFactory( @SuperCall Callable<EmbeddedServletContainerFactory> zuper) throws Exception { EmbeddedServletContainerFactory containerFactory = zuper.call(); TestContextHolder.INSTANCE.command(testContext -> { ConfigurableEmbeddedServletContainer servletContainer = (ConfigurableEmbeddedServletContainer) containerFactory; servletContainer.setPort(0); TestConfigurer testConfigurer = testContext.getTestConfigurer(); testConfigurer.configure(testContext, servletContainer); }); return containerFactory; }
protected void prepareEmbeddedWebApplicationContext(@SuperCall Callable<Void> zuper, @Argument(0) ServletContext servletContext) throws Exception { TestContextHolder.INSTANCE.command(testContext -> { TestConfigurer testConfigurer = testContext.getTestConfigurer(); testConfigurer.configure(testContext, servletContext); }); zuper.call(); }
@Override public ServiceLocator create(TestContext testContext) { TestConfigurer testConfigurer = testContext.getTestConfigurer(); ServiceLocatorFactory locatorFactory = ServiceLocatorFactory.getInstance(); ServiceLocator serviceLocator = locatorFactory.create(testContext.getName()); return testConfigurer.configure(testContext, serviceLocator); }
@Override public void start(TestContext testContext) { TestConfigurer testConfigurer = testContext.getTestConfigurer(); TestDescriptor testDescriptor = testContext.getTestDescriptor(); Optional<SutDescriptor> foundSutDescriptor = testContext.getSutDescriptor();
@Override public void start(TestContext testContext) { Object testInstance = testContext.getTestInstance(); TestConfigurer testConfigurer = testContext.getTestConfigurer(); TestDescriptor testDescriptor = testContext.getTestDescriptor(); Collection<Class<? extends Annotation>> guidelines = testDescriptor.getGuidelines();
@Override public void start(TestContext testContext) { Object testInstance = testContext.getTestInstance(); TestConfigurer testConfigurer = testContext.getTestConfigurer(); Optional<SutDescriptor> foundSutDescriptor = testContext.getSutDescriptor(); TestDescriptor testDescriptor = testContext.getTestDescriptor();
TestConfigurer testConfigurer = testContext.getTestConfigurer(); ConfigurableApplicationContext configuredApplicationContext = testConfigurer.configure(testContext, applicationContext);
TestConfigurer testConfigurer = testContext.getTestConfigurer(); ConfigurableApplicationContext configuredApplicationContext = testConfigurer.configure(testContext, configuredContext);