mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 23:43:06 +00:00
[DS-707] Generify List usage
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5602 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -36,6 +36,8 @@ package org.dspace.content;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.dspace.AbstractUnitTest;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.dspace.authorize.AuthorizeException;
|
||||
@@ -305,7 +307,7 @@ public class MetadataValueTest extends AbstractUnitTest
|
||||
{
|
||||
mv.create(context);
|
||||
int fieldId = mv.getFieldId();
|
||||
Collection found = MetadataValue.findByField(context, fieldId);
|
||||
List<MetadataValue> found = MetadataValue.findByField(context, fieldId);
|
||||
assertThat("testFind 0",found, notNullValue());
|
||||
assertTrue("testFind 1",found.size() >= 1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user