Added test to create all contexts

This commit is contained in:
Luca Frosini 2020-09-23 10:55:51 +02:00
parent 02a6e1f830
commit 16dafb77a8
1 changed files with 9 additions and 0 deletions

View File

@ -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));