[DS-3699] manage valuepairs and vocabulary authority both controlled and required configuration setup to true

This commit is contained in:
Luigi Andrea Pascarelli
2017-10-25 17:03:45 +02:00
parent 2f5d18ab04
commit 22e9844987
2 changed files with 37 additions and 5 deletions

View File

@@ -359,8 +359,8 @@ public class ItemTest extends AbstractDSpaceObjectTest
// Set the item to have two pieces of metadata for dc.type and dc2.type
String dcType = "DC-TYPE";
String testType = "TEST-TYPE";
itemService.addMetadata(context, it, "dc", "type", null, null, dcType);
itemService.addMetadata(context, it, "test", "type", null, null, testType);
itemService.addMetadata(context, it, "dc", "type", null, null, dcType, "accepted", 0);
itemService.addMetadata(context, it, "test", "type", null, null, testType, "accepted", 0);
// Check that only one is returned when we ask for all dc.type values
List<MetadataValue> values = itemService.getMetadata(it, "dc", "type", null, null);