Fixed commented test

This commit is contained in:
Luca Frosini 2020-05-14 18:25:13 +02:00
parent bee0017d58
commit 5d17c53dae
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,6 @@ import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegis
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextAlreadyPresentException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException;
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
import org.gcube.informationsystem.resourceregistry.contexts.ContextUtility;
import org.gcube.informationsystem.resourceregistry.contexts.entities.ContextManagement;
import org.gcube.informationsystem.resourceregistry.contexts.security.ContextSecurityContext;
import org.gcube.informationsystem.resourceregistry.contexts.security.SecurityContext;
@ -422,11 +421,12 @@ public class ContextManagementTest extends ContextTest {
/*
// @Test
public void deleteAll() throws Exception {
ContextTest.setContextByName(PARENT_DEFAULT_TEST_SCOPE);
List<Context> all = getAll();
while(all.size()>0) {
for (Context context : all) {
logger.trace(ISMapper.marshal(context));
List<IsParentOf<Context, Context>> children = context.getChildren();
logger.trace(ElementMapper.marshal(context));
List<IsParentOf> children = context.getChildren();
if(children==null || children.size()==0) {
// delete(context);
}