Use an invented entityType in SubmissionConfigIT to avoid conflicts with other testw

This commit is contained in:
Toni Prieto
2024-04-15 19:09:22 +02:00
parent 9d4fb70215
commit 31fbfb5c9c
2 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

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