use of net.n2oapp.properties.test.TestStaticProperties in project n2o-framework by i-novus-llc.
the class InfoStatusTest method setUp.
@Before
public void setUp() throws Exception {
metaModelRegister = new N2oApplicationBuilder().packs(new N2oSourceTypesPack()).getEnvironment().getSourceTypeRegister();
Properties properties = new Properties();
String conthPath = "/config/path/";
properties.setProperty("n2o.config.path", conthPath);
properties.setProperty("n2o.config.class.packages", "net.n2oapp.framework");
TestStaticProperties testStaticProperties = new TestStaticProperties();
testStaticProperties.setProperties(properties);
ApplicationContext applicationContext = mock(ApplicationContext.class);
StaticSpringContext staticSpringContext = new StaticSpringContext();
staticSpringContext.setApplicationContext(applicationContext);
staticSpringContext.setCacheTemplate(new CacheTemplateByMapMock());
}
Aggregations