[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:
Graham Triggs
2010-10-24 17:37:57 +00:00
parent 77e834038b
commit aa4a35650c
8 changed files with 25 additions and 20 deletions

View File

@@ -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);
}