mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +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:
@@ -38,6 +38,8 @@ import java.io.IOException;
|
||||
import org.databene.contiperf.Required;
|
||||
import org.databene.contiperf.PerfTest;
|
||||
import java.sql.SQLException;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.dspace.AbstractIntegrationTest;
|
||||
import org.dspace.authorize.AuthorizeException;
|
||||
@@ -137,10 +139,10 @@ public class MetadataIntegrationTest extends AbstractIntegrationTest
|
||||
}
|
||||
assertTrue("testCreateSchema 4", exist);
|
||||
|
||||
java.util.Collection col1 = MetadataValue.findByField(context, field1.getFieldID());
|
||||
List<MetadataValue> col1 = MetadataValue.findByField(context, field1.getFieldID());
|
||||
assertTrue("testCreateSchema 5", col1.contains(value1));
|
||||
|
||||
java.util.Collection col2 = MetadataValue.findByField(context, field2.getFieldID());
|
||||
List<MetadataValue> col2 = MetadataValue.findByField(context, field2.getFieldID());
|
||||
assertTrue("testCreateSchema 6", col2.contains(value2));
|
||||
|
||||
//clean database
|
||||
|
Reference in New Issue
Block a user