use of com.mvp4g.rebind.config.element.StartElement in project mvp4g by mvp4g.
the class Mvp4gConfigurationTest method testForwardOk.
@Test
public void testForwardOk() throws InvalidMvp4gConfigurationException {
configuration.setModule(oracle.addClass(Modules.Module01.class));
EventElement e = newEvent("forward");
events.add(e);
StartElement start = configuration.getStart();
start.setForwardEventType("forward");
setEventBus();
JClassType parentEventBus = oracle.addClass(EventBus.class);
configuration.setParentEventBus(parentEventBus);
configuration.validateEvents();
}
use of com.mvp4g.rebind.config.element.StartElement in project mvp4g by mvp4g.
the class Mvp4gConfigurationTest method setUp.
@Before
public void setUp() {
GeneratorContextStub context = new GeneratorContextStub();
builder = new UnitTestTreeLogger.Builder();
logger = builder.createLogger();
oracle = context.getTypeOracleStub();
// oracle.addClass( SimpleView01.class );
configuration = new Mvp4gConfiguration(logger, context);
presenters = configuration.getPresenters();
views = configuration.getViews();
events = configuration.getEvents();
services = configuration.getServices();
historyConverters = configuration.getHistoryConverters();
childModules = configuration.getChildModules();
eventHandlers = configuration.getEventHandlers();
eventFilters = configuration.getEventFilters();
configuration.setStart(new StartElement());
configuration.setHistory(new HistoryElement());
configuration.setModule(oracle.addClass(Mvp4gModule.class));
}
Aggregations