mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 07:53:08 +00:00
Refactored the usages of MetadataSchema.DC to use the enum instead
This commit is contained in:
@@ -1834,16 +1834,16 @@ public class CollectionTest extends AbstractDSpaceObjectTest {
|
||||
public void testGetCommunities() throws Exception {
|
||||
context.turnOffAuthorisationSystem();
|
||||
Community community = communityService.create(null, context);
|
||||
communityService.setMetadataSingleValue(context, community, MetadataSchema.DC_SCHEMA, "title", null, Item.ANY,
|
||||
"community 3");
|
||||
communityService.setMetadataSingleValue(context, community, MetadataSchemaEnum.DC.getName(),
|
||||
"title", null, Item.ANY, "community 3");
|
||||
this.collection.addCommunity(community);
|
||||
community = communityService.create(null, context);
|
||||
communityService.setMetadataSingleValue(context, community, MetadataSchema.DC_SCHEMA, "title", null, Item.ANY,
|
||||
"community 1");
|
||||
communityService.setMetadataSingleValue(context, community, MetadataSchemaEnum.DC.getName(),
|
||||
"title", null, Item.ANY, "community 1");
|
||||
this.collection.addCommunity(community);
|
||||
community = communityService.create(null, context);
|
||||
communityService.setMetadataSingleValue(context, community, MetadataSchema.DC_SCHEMA, "title", null, Item.ANY,
|
||||
"community 2");
|
||||
communityService.setMetadataSingleValue(context, community, MetadataSchemaEnum.DC.getName(),
|
||||
"title", null, Item.ANY, "community 2");
|
||||
this.collection.addCommunity(community);
|
||||
context.restoreAuthSystemState();
|
||||
assertTrue("testGetCommunities 0", collection.getCommunities().size() == 4);
|
||||
|
Reference in New Issue
Block a user