use of com.mvp4g.client.event.BaseEventBus in project mvp4g by mvp4g.
the class PresenterTest method testSetter.
@Test
public void testSetter() {
String view = "View";
BaseEventBus bus = new BaseEventBus() {
@Override
protected <T extends EventHandlerInterface<?>> T createHandler(Class<T> handlerClass) {
return null;
}
public void setApplicationHistoryStored(boolean historyStored) {
}
public void setNavigationConfirmation(NavigationConfirmationInterface navigationConfirmation) {
}
public void confirmNavigation(NavigationEventCommand event) {
}
};
presenter.setEventBus(bus);
presenter.setView(view);
assertSame(presenter.getView(), view);
assertSame(presenter.getEventBus(), bus);
}
Aggregations