Fixed commented test
This commit is contained in:
parent
bee0017d58
commit
5d17c53dae
|
@ -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.ContextAlreadyPresentException;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException;
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException;
|
||||||
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
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.entities.ContextManagement;
|
||||||
import org.gcube.informationsystem.resourceregistry.contexts.security.ContextSecurityContext;
|
import org.gcube.informationsystem.resourceregistry.contexts.security.ContextSecurityContext;
|
||||||
import org.gcube.informationsystem.resourceregistry.contexts.security.SecurityContext;
|
import org.gcube.informationsystem.resourceregistry.contexts.security.SecurityContext;
|
||||||
|
@ -422,11 +421,12 @@ public class ContextManagementTest extends ContextTest {
|
||||||
/*
|
/*
|
||||||
// @Test
|
// @Test
|
||||||
public void deleteAll() throws Exception {
|
public void deleteAll() throws Exception {
|
||||||
|
ContextTest.setContextByName(PARENT_DEFAULT_TEST_SCOPE);
|
||||||
List<Context> all = getAll();
|
List<Context> all = getAll();
|
||||||
while(all.size()>0) {
|
while(all.size()>0) {
|
||||||
for (Context context : all) {
|
for (Context context : all) {
|
||||||
logger.trace(ISMapper.marshal(context));
|
logger.trace(ElementMapper.marshal(context));
|
||||||
List<IsParentOf<Context, Context>> children = context.getChildren();
|
List<IsParentOf> children = context.getChildren();
|
||||||
if(children==null || children.size()==0) {
|
if(children==null || children.size()==0) {
|
||||||
// delete(context);
|
// delete(context);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue