Added test to create all contexts
This commit is contained in:
parent
02a6e1f830
commit
16dafb77a8
|
@ -30,6 +30,15 @@ public class DataBaseCreator extends ContextTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//@Test
|
||||||
|
public void createAllContext() throws Exception {
|
||||||
|
ContextTest.setContextByName(PARENT_DEFAULT_TEST_SCOPE);
|
||||||
|
|
||||||
|
ContextCreator contextCreator = new ContextCreator();
|
||||||
|
contextCreator.all();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected Context create(Context context) throws ResourceRegistryException, IOException {
|
protected Context create(Context context) throws ResourceRegistryException, IOException {
|
||||||
ContextManagement contextManagement = new ContextManagement();
|
ContextManagement contextManagement = new ContextManagement();
|
||||||
contextManagement.setJson(ElementMapper.marshal(context));
|
contextManagement.setJson(ElementMapper.marshal(context));
|
||||||
|
|
Loading…
Reference in New Issue