Search in sources :

Example 1 with GeneratorContextStub

use of com.mvp4g.rebind.test_tools.GeneratorContextStub in project mvp4g by mvp4g.

the class AbstractMvp4gAnnotationLoaderTest method setUp.

@Before
public void setUp() {
    GeneratorContextStub context = new GeneratorContextStub();
    oracle = context.getTypeOracleStub();
    configuration = new Mvp4gConfiguration(null, context);
    loader = createLoader();
}
Also used : Mvp4gConfiguration(com.mvp4g.rebind.config.Mvp4gConfiguration) GeneratorContextStub(com.mvp4g.rebind.test_tools.GeneratorContextStub) Before(org.junit.Before)

Example 2 with GeneratorContextStub

use of com.mvp4g.rebind.test_tools.GeneratorContextStub 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));
}
Also used : StartElement(com.mvp4g.rebind.config.element.StartElement) HistoryElement(com.mvp4g.rebind.config.element.HistoryElement) GeneratorContextStub(com.mvp4g.rebind.test_tools.GeneratorContextStub) Mvp4gModule(com.mvp4g.client.Mvp4gModule) UnitTestTreeLogger(com.google.gwt.dev.util.UnitTestTreeLogger) Before(org.junit.Before)

Example 3 with GeneratorContextStub

use of com.mvp4g.rebind.test_tools.GeneratorContextStub in project mvp4g by mvp4g.

the class TestMvp4gRunAsyncGenerator method setUp.

@Before
public void setUp() {
    generator = new Mvp4gRunAsyncGenerator();
    sourceWriter = new SourceWriterTestStub();
    GeneratorContextStub context = new GeneratorContextStub();
    oracle = context.getTypeOracleStub();
}
Also used : SourceWriterTestStub(com.mvp4g.rebind.test_tools.SourceWriterTestStub) GeneratorContextStub(com.mvp4g.rebind.test_tools.GeneratorContextStub) Before(org.junit.Before)

Example 4 with GeneratorContextStub

use of com.mvp4g.rebind.test_tools.GeneratorContextStub in project mvp4g by mvp4g.

the class EventsAnnotationsLoaderTest method setUp.

@Before
public void setUp() {
    GeneratorContextStub context = new GeneratorContextStub();
    oracle = context.getTypeOracleStub();
    configuration = new Mvp4gConfiguration(null, context);
    configuration.setModule(oracle.addClass(Mvp4gModule.class));
    loader = new EventsAnnotationsLoader();
}
Also used : Mvp4gConfiguration(com.mvp4g.rebind.config.Mvp4gConfiguration) GeneratorContextStub(com.mvp4g.rebind.test_tools.GeneratorContextStub) Mvp4gModule(com.mvp4g.client.Mvp4gModule) Before(org.junit.Before)

Aggregations

GeneratorContextStub (com.mvp4g.rebind.test_tools.GeneratorContextStub)4 Before (org.junit.Before)4 Mvp4gModule (com.mvp4g.client.Mvp4gModule)2 Mvp4gConfiguration (com.mvp4g.rebind.config.Mvp4gConfiguration)2 UnitTestTreeLogger (com.google.gwt.dev.util.UnitTestTreeLogger)1 HistoryElement (com.mvp4g.rebind.config.element.HistoryElement)1 StartElement (com.mvp4g.rebind.config.element.StartElement)1 SourceWriterTestStub (com.mvp4g.rebind.test_tools.SourceWriterTestStub)1