Fixed test
This commit is contained in:
parent
fd7948bd7c
commit
d8947f2814
|
@ -13,11 +13,11 @@ import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.gcube.common.encryption.encrypter.StringEncrypter;
|
import org.gcube.common.encryption.encrypter.StringEncrypter;
|
||||||
import org.gcube.informationsystem.base.reference.Element;
|
|
||||||
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
||||||
import org.gcube.informationsystem.model.impl.properties.EncryptedImpl;
|
import org.gcube.informationsystem.model.impl.properties.EncryptedImpl;
|
||||||
import org.gcube.informationsystem.model.impl.properties.PropagationConstraintImpl;
|
import org.gcube.informationsystem.model.impl.properties.PropagationConstraintImpl;
|
||||||
import org.gcube.informationsystem.model.impl.relations.ConsistsOfImpl;
|
import org.gcube.informationsystem.model.impl.relations.ConsistsOfImpl;
|
||||||
|
import org.gcube.informationsystem.model.reference.ModelElement;
|
||||||
import org.gcube.informationsystem.model.reference.entities.Facet;
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
||||||
import org.gcube.informationsystem.model.reference.entities.Resource;
|
import org.gcube.informationsystem.model.reference.entities.Resource;
|
||||||
import org.gcube.informationsystem.model.reference.properties.Encrypted;
|
import org.gcube.informationsystem.model.reference.properties.Encrypted;
|
||||||
|
@ -281,9 +281,9 @@ public class ERManagementTest extends ContextTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, Object> additionalProperties = new HashMap<>(consistsOf.getAdditionalProperties());
|
Map<String, Object> additionalProperties = new HashMap<>(consistsOf.getAdditionalProperties());
|
||||||
additionalProperties.remove(Element.SUPERTYPES_PROPERTY);
|
additionalProperties.remove(ModelElement.SUPERTYPES_PROPERTY);
|
||||||
Map<String, Object> gotAdditionalProperties = new HashMap<>(gotConsistsOf.getAdditionalProperties());
|
Map<String, Object> gotAdditionalProperties = new HashMap<>(gotConsistsOf.getAdditionalProperties());
|
||||||
gotAdditionalProperties.remove(Element.SUPERTYPES_PROPERTY);
|
gotAdditionalProperties.remove(ModelElement.SUPERTYPES_PROPERTY);
|
||||||
Assert.assertTrue(additionalProperties.size()==gotAdditionalProperties.size());
|
Assert.assertTrue(additionalProperties.size()==gotAdditionalProperties.size());
|
||||||
for(String key : additionalProperties.keySet()) {
|
for(String key : additionalProperties.keySet()) {
|
||||||
Assert.assertTrue(gotAdditionalProperties.containsKey(key));
|
Assert.assertTrue(gotAdditionalProperties.containsKey(key));
|
||||||
|
|
Loading…
Reference in New Issue