public DolphinTestContext( DolphinPlatformConfiguration configuration, DolphinSessionProvider dolphinSessionProvider, ContainerManager containerManager, ControllerRepository controllerRepository, TestInMemoryConfiguration config) { super( configuration, dolphinSessionProvider, containerManager, controllerRepository, createServerDolphinFactory(config), createEmptyCallback(), createEmptyCallback()); this.config = Assert.requireNonNull(config, "config"); DolphinContextUtils.setContextForCurrentThread(this); }
@Override public List<Command> handle(List<Command> commands) { DolphinContextUtils.setContextForCurrentThread(this); return super.handle(commands); }