Fixed test log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@141512 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7ede9a4688
commit
35bc8a6c83
|
@ -439,7 +439,7 @@ public class ERManagementTest extends ScopedTest {
|
||||||
String json = resourceManagement.all(false);
|
String json = resourceManagement.all(false);
|
||||||
|
|
||||||
List<Resource> list = Entities.unmarshalList(Resource.class, json);
|
List<Resource> list = Entities.unmarshalList(Resource.class, json);
|
||||||
logger.debug("{}s are {} : {} ", key, list.size(), list);
|
logger.debug("{} are {} : {} ", key, list.size(), list);
|
||||||
Assert.assertTrue(list.size()==MAX);
|
Assert.assertTrue(list.size()==MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -450,7 +450,7 @@ public class ERManagementTest extends ScopedTest {
|
||||||
|
|
||||||
String json = resourceManagement.all(true);
|
String json = resourceManagement.all(true);
|
||||||
List<Resource> list = Entities.unmarshalList(Resource.class, json);
|
List<Resource> list = Entities.unmarshalList(Resource.class, json);
|
||||||
logger.debug("{}s are {} : {} ", Resource.NAME, list.size(), list);
|
logger.debug("{} are {} : {} ", Resource.NAME, list.size(), list);
|
||||||
Assert.assertTrue(list.size()==(MAX*typeNumber));
|
Assert.assertTrue(list.size()==(MAX*typeNumber));
|
||||||
|
|
||||||
|
|
||||||
|
@ -466,7 +466,7 @@ public class ERManagementTest extends ScopedTest {
|
||||||
json = isRelatedToManagement.all(true);
|
json = isRelatedToManagement.all(true);
|
||||||
|
|
||||||
List<IsRelatedTo> isRelatedToList = Entities.unmarshalList(IsRelatedTo.class, json);
|
List<IsRelatedTo> isRelatedToList = Entities.unmarshalList(IsRelatedTo.class, json);
|
||||||
logger.debug("{}s are {} : {} ", IsRelatedTo.NAME, isRelatedToList.size(), isRelatedToList);
|
logger.debug("{} are {} : {} ", IsRelatedTo.NAME, isRelatedToList.size(), isRelatedToList);
|
||||||
Assert.assertTrue(isRelatedToList.size()==MAX);
|
Assert.assertTrue(isRelatedToList.size()==MAX);
|
||||||
|
|
||||||
|
|
||||||
|
@ -483,12 +483,12 @@ public class ERManagementTest extends ScopedTest {
|
||||||
|
|
||||||
json = consistsOfManagement.all(true);
|
json = consistsOfManagement.all(true);
|
||||||
List<ConsistsOf> consistsOfPolimorphicList = Entities.unmarshalList(ConsistsOf.class, json);
|
List<ConsistsOf> consistsOfPolimorphicList = Entities.unmarshalList(ConsistsOf.class, json);
|
||||||
logger.debug("{}s are {} : {} ", IsRelatedTo.NAME, consistsOfPolimorphicList.size(), consistsOfPolimorphicList);
|
logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfPolimorphicList.size(), consistsOfPolimorphicList);
|
||||||
|
|
||||||
|
|
||||||
json = consistsOfManagement.all(false);
|
json = consistsOfManagement.all(false);
|
||||||
List<ConsistsOf> consistsOfNonPolimorphicList = Entities.unmarshalList(ConsistsOf.class, json);
|
List<ConsistsOf> consistsOfNonPolimorphicList = Entities.unmarshalList(ConsistsOf.class, json);
|
||||||
logger.debug("{}s are {} : {} ", IsRelatedTo.NAME, consistsOfNonPolimorphicList.size(), consistsOfNonPolimorphicList);
|
logger.debug("{} are {} : {} ", IsRelatedTo.NAME, consistsOfNonPolimorphicList.size(), consistsOfNonPolimorphicList);
|
||||||
|
|
||||||
Assert.assertTrue(consistsOfPolimorphicList.size()>=consistsOfNonPolimorphicList.size());
|
Assert.assertTrue(consistsOfPolimorphicList.size()>=consistsOfNonPolimorphicList.size());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue