use of com.mvp4g.client.history.NavigationEventCommand in project mvp4g by mvp4g.
the class BaseEventBusTest method setUp.
@Before
public void setUp() {
bus = new BaseEventBus() {
@SuppressWarnings("unchecked")
@Override
protected <T extends EventHandlerInterface<?>> T createHandler(Class<T> handlerClass) {
return (T) ((SimplePresenter01.class.equals(handlerClass)) ? new SimplePresenter01() : null);
}
public void setApplicationHistoryStored(boolean historyStored) {
}
public void setNavigationConfirmation(NavigationConfirmationInterface navigationConfirmation) {
}
public void confirmNavigation(NavigationEventCommand event) {
}
};
module = new Mvp4gModuleStub(bus);
filter = new EventFilterStub();
}
use of com.mvp4g.client.history.NavigationEventCommand 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