Add integration test

This commit is contained in:
Dave Syer
2014-05-28 17:26:53 +01:00
parent a243cf1685
commit 54561770cc
2 changed files with 23 additions and 12 deletions

View File

@@ -200,21 +200,12 @@ class MainController {
}
@Configuration
import reactor.core.Reactor
import reactor.function.Consumer
import reactor.event.selector.Selectors
import reactor.event.Event
@Grab("reactor-core")
@EnableReactor
class ReactorConfiguration {
@Bean
public reactor.core.Environment reactorEnvironment() {
return new reactor.core.Environment(); // TODO: use Spring Environment to configure?
}
@Bean
public Reactor rootReactor() {
return reactorEnvironment().getRootReactor();
public Reactor rootReactor(reactor.core.Environment reactorEnvironment) {
return reactorEnvironment.getRootReactor();
}
}