From a1c6fa6c3093c78d5227e5a6c90994068fc224c0 Mon Sep 17 00:00:00 2001 From: jainshrk Date: Mon, 21 Oct 2024 14:32:32 +0530 Subject: [PATCH 1/2] remove unused imports, and change test assertion bug --- .../inmem/service/BulkUploadRelationshipServiceTest.java | 6 ++---- .../BulkUploadRelationshipItemParserTest.java | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/service/BulkUploadRelationshipServiceTest.java b/waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/service/BulkUploadRelationshipServiceTest.java index 4b34e90868..dcd840464c 100644 --- a/waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/service/BulkUploadRelationshipServiceTest.java +++ b/waltz-integration-test/src/test/java/org/finos/waltz/integration_test/inmem/service/BulkUploadRelationshipServiceTest.java @@ -1,7 +1,7 @@ package org.finos.waltz.integration_test.inmem.service; -import com.sun.org.slf4j.internal.Logger; -import com.sun.org.slf4j.internal.LoggerFactory; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.finos.waltz.common.SetUtilities; import org.finos.waltz.common.StringUtilities; import org.finos.waltz.integration_test.inmem.BaseInMemoryIntegrationTest; @@ -15,7 +15,6 @@ import org.finos.waltz.model.rel.ImmutableRelationshipKind; import org.finos.waltz.model.rel.RelationshipKind; import org.finos.waltz.model.user.SystemRole; -import org.finos.waltz.service.app_group.AppGroupService; import org.finos.waltz.service.application.ApplicationService; import org.finos.waltz.service.entity_relationship.BulkUploadRelationshipService; import org.finos.waltz.service.entity_relationship.EntityRelationshipService; @@ -29,7 +28,6 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; -import java.util.Set; import java.util.stream.Collectors; import static java.lang.String.format; diff --git a/waltz-service/src/test/java/org/finos/waltz/service/entity_relationship/BulkUploadRelationshipItemParserTest.java b/waltz-service/src/test/java/org/finos/waltz/service/entity_relationship/BulkUploadRelationshipItemParserTest.java index 7faaae2552..e7a6a184d1 100644 --- a/waltz-service/src/test/java/org/finos/waltz/service/entity_relationship/BulkUploadRelationshipItemParserTest.java +++ b/waltz-service/src/test/java/org/finos/waltz/service/entity_relationship/BulkUploadRelationshipItemParserTest.java @@ -54,7 +54,7 @@ void simpleTSV() { */ BulkUploadRelationshipParsedResult result = parser.parse(readTestFile("test-relationship-item.tsv"), BulkUploadRelationshipItemParser.InputFormat.TSV); assertEquals(null, result.error()); - assertEquals(2, result.parsedItems().size()); + assertEquals(3, result.parsedItems().size()); Set sourceExternalIds = SetUtilities.map(result.parsedItems(), BulkUploadRelationshipItem::sourceExternalId); assertEquals(sourceExternalIds, SetUtilities.asSet("sourceExtA", "sourceExtB", "sourceExtC")); From ebbea8c9b2f39119f3f1234e2d3b055a8d2c835d Mon Sep 17 00:00:00 2001 From: Abhijit Jejurkar Date: Mon, 21 Oct 2024 14:56:00 +0530 Subject: [PATCH 2/2] db liquibase changes for h2 --- .../resources/liquibase/db.changelog-1.65.xml | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/waltz-schema/src/main/resources/liquibase/db.changelog-1.65.xml b/waltz-schema/src/main/resources/liquibase/db.changelog-1.65.xml index 9d206add3a..b3c501ba69 100644 --- a/waltz-schema/src/main/resources/liquibase/db.changelog-1.65.xml +++ b/waltz-schema/src/main/resources/liquibase/db.changelog-1.65.xml @@ -56,67 +56,78 @@ tableName="user_agent_info"/> + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_triggers + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_simprop_triggers + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_simple_triggers + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_scheduler_state + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_paused_trigger_grps + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_locks + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_job_details + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_fired_triggers + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_cron_triggers + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_calendars + author="jejuabh" + dbms="!h2"> 7162: Add description to table qrtz_blob_triggers