use of com.github.noraui.cucumber.interceptor.ConditionedInterceptor in project NoraUi by NoraUi.
the class NoraUiModule method configure.
/**
* {@inheritDoc}
*/
@Override
public void configure(Binder binder) {
logger.debug("NORAUI NoraUiModule configure");
binder.bindInterceptor(any(), annotatedWith(Conditioned.class), new ConditionedInterceptor());
binder.bindInterceptor(Matchers.subclassesOf(com.github.noraui.application.steps.Step.class).or(Matchers.subclassesOf(BrowserSteps.class)), any(), new StepInterceptor());
logger.debug("NORAUI service binding");
binder.bind(ScreenService.class).to(ScreenServiceImpl.class).asEagerSingleton();
binder.bind(UserNameService.class).to(UserNameServiceImpl.class).asEagerSingleton();
}
use of com.github.noraui.cucumber.interceptor.ConditionedInterceptor in project NoraUi by NoraUi.
the class StepUT method setUp.
@Before
public void setUp() {
step = new Step();
ci = new ConditionedInterceptor();
gherkinCondition = new GherkinStepCondition();
conditions = new ArrayList<>();
NoraUiInjector.resetInjector();
new NoraUiInjectorSource().getInjector();
}
Aggregations