public void refresh(@SuperCall Callable<Void> zuper, @Argument(0) ApplicationContext applicationContext) throws Exception { ConfigurableApplicationContext configurableApplicationContext = (ConfigurableApplicationContext) applicationContext; TestContextHolder.INSTANCE.command(testContext -> { testContext.computeIfAbsent(SERVICE_INSTANCE, key -> { ServiceProvider<ConfigurableApplicationContext> serviceProvider = ServiceLocatorUtil.INSTANCE.getOne(ServiceProvider.class, SpringServiceProvider.class); return serviceProvider.configure(testContext, configurableApplicationContext); }); }); zuper.call(); }
public void initialize(@SuperCall Callable<Void> zuper, @Argument(0) Object applicationConfigurator, @Argument(1) InjectionManager injectionManager, @Argument(2) Binder customBinder) throws Exception { zuper.call(); TestContextHolder.INSTANCE.command(testContext -> { if (SystemCategory.class.equals(testContext.getTestCategory())) { testContext.computeIfAbsent(SERVICE_INSTANCE, key -> { ServiceProvider<InjectionManager> serviceProvider = ServiceLocatorUtil.INSTANCE.getOne(ServiceProvider.class, JerseyServiceProvider.class); return serviceProvider.configure(testContext, injectionManager); }); } }); }
testContext.computeIfAbsent(SERVICE_INSTANCE, key -> { ServiceProvider<ConfigurableApplicationContext> serviceProvider = ServiceLocatorUtil.INSTANCE.getOne(ServiceProvider.class,
testContext.computeIfAbsent(SERVICE_INSTANCE, key -> { TestDescriptor testDescriptor = testContext.getTestDescriptor(); ClassLoader classLoader = testDescriptor.getTestClassLoader();
addScans(testDescriptor, environment, beanFactory); testContext.computeIfAbsent(SERVICE_INSTANCE, key -> { ServiceProvider<ConfigurableApplicationContext> serviceProvider = ServiceLocatorUtil.INSTANCE.getOne(ServiceProvider.class,