mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Use an invented entityType in SubmissionConfigIT to avoid conflicts with other testw
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<name-map community-handle="123456789/topcommunity-test" submission-name="topcommunitytest"/>
|
||||
<name-map community-handle="123456789/subcommunity-test" submission-name="subcommunitytest"/>
|
||||
<name-map collection-handle="123456789/collection-test" submission-name="collectiontest"/>
|
||||
<name-map collection-entity-type="Publication" submission-name="entitytypetest"/>
|
||||
<name-map collection-entity-type="CustomEntityType" submission-name="entitytypetest"/>
|
||||
<name-map collection-handle="123456789/test-duplicate-detection" submission-name="test-duplicate-detection"/>
|
||||
</submission-map>
|
||||
|
||||
|
@@ -51,12 +51,12 @@ public class SubmissionConfigIT extends AbstractIntegrationTestWithDatabase {
|
||||
// col3 should use the item submission form directly mapped for this collection
|
||||
Collection col3 = CollectionBuilder.createCollection(context, subcom1, "123456789/collection-test")
|
||||
.withName("Collection 3")
|
||||
.withEntityType("Publication")
|
||||
.withEntityType("CustomEntityType")
|
||||
.build();
|
||||
// col4 should use the item submission form mapped for the entity type Publication
|
||||
Collection col4 = CollectionBuilder.createCollection(context, subcom1, "123456789/not-mapped4")
|
||||
.withName("Collection 4")
|
||||
.withEntityType("Publication")
|
||||
.withEntityType("CustomEntityType")
|
||||
.build();
|
||||
context.restoreAuthSystemState();
|
||||
|
||||
|
Reference in New Issue
Block a user