use of core.framework.impl.module.ModuleContext in project core-ng-project by neowu.
the class AbstractTestModule method configure.
public final void configure(TestBeanFactory beanFactory) {
logger.info("initialize test context");
context = new ModuleContext(beanFactory, new MockFactoryImpl());
logger.info("initialize application");
initialize();
context.config.validate();
((TestBeanFactory) context.beanFactory).validateOverrideBindings();
}
use of core.framework.impl.module.ModuleContext in project core-ng-project by neowu.
the class RouteConfigTest method createRouteConfig.
@BeforeEach
void createRouteConfig() {
ModuleContext context = new ModuleContext(new BeanFactory(), new TestMockFactory());
config = new RouteConfig(context);
}
use of core.framework.impl.module.ModuleContext in project core-ng-project by neowu.
the class SystemModuleTest method createSystemModule.
@BeforeEach
void createSystemModule() {
systemModule = new SystemModule(null);
systemModule.context = new ModuleContext(new BeanFactory(), new TestMockFactory());
System.clearProperty("sys.http.port");
}
use of core.framework.impl.module.ModuleContext in project core-ng-project by neowu.
the class App method configure.
public final void configure() {
logger.info("initialize framework");
logger.info("availableProcessors={}, maxMemory={}", Threads.availableProcessors(), Runtime.getRuntime().maxMemory());
context = new ModuleContext(new BeanFactory(), null);
logger.info("initialize application");
initialize();
context.config.validate();
}
Aggregations