Several Unit test fixes. Add a Mock Indexer for Solr. Add a language for primary test Eperson. Do better context cleanup. Improve fail messages with actual errors.

This commit is contained in:
Tim Donohue
2013-10-23 13:58:10 -05:00
parent d76ebbdb0b
commit 82a413511c
10 changed files with 68 additions and 21 deletions

View File

@@ -87,7 +87,7 @@ public class InstallItemTest extends AbstractUnitTest
String handle = "1345/567";
Collection col = Collection.create(context);
WorkspaceItem is = WorkspaceItem.create(context, col, false);
//Test assigning a specified handle to an item
// (this handle should not already be used by system, as it doesn't start with "1234567689" prefix)
Item result = InstallItem.installItem(context, is, handle);