diff --git a/src/test/java/org/gridsuite/modification/server/Impacts/TestImpactUtils.java b/src/test/java/org/gridsuite/modification/server/Impacts/TestImpactUtils.java index d48a523d1..1e04fcddd 100644 --- a/src/test/java/org/gridsuite/modification/server/Impacts/TestImpactUtils.java +++ b/src/test/java/org/gridsuite/modification/server/Impacts/TestImpactUtils.java @@ -167,6 +167,10 @@ private static List createBranchImpacts(ImpactType impactTyp createElementImpact(impactType, IdentifiableType.SWITCH, disconnectorId2, Set.of(substationId2)) ); if (impactType == ImpactType.CREATION) { + // During a creation of a 2WT we use the TapChangerAdder which set the tapChangerAttributes to the 2WT + // This setRatioTapChanger/setPhaseTapChanger calling generates a notifyUpdate for the newly created 2WT + // Then we must add a MODIFICATION impact on this newly created 2WT. + // TODO fix this impacts.add(createElementImpact(ImpactType.MODIFICATION, branchType, branchId, new TreeSet<>(List.of(substationId1, substationId2)))); // case with newtapChanger } if (impactType == ImpactType.DELETION) { diff --git a/src/test/resources/application-default.yml b/src/test/resources/application-default.yml index 554d1b302..5d889d4a0 100644 --- a/src/test/resources/application-default.yml +++ b/src/test/resources/application-default.yml @@ -4,18 +4,18 @@ spring: properties: dialect: org.hibernate.dialect.H2Dialect hibernate: - format_sql: true - generate_statistics: true + '[format_sql]': true + '[generate_statistics]': true dialect: org.hibernate.dialect.H2Dialect hibernate: #to turn off schema validation that fails (because of clob types) and blocks tests even if the schema is compatible ddl-auto: none logging: - level: - org.springframework.orm.jpa: INFO - org.springframework.transaction: INFO - org.hibernate.SQL: INFO - org.hibernate.type.descriptor.sql.BasicBinder: INFO + level: + '[org.springframework.orm.jpa]': INFO + '[org.springframework.transaction]': INFO + '[org.hibernate.SQL]': INFO + '[org.hibernate.type.descriptor.sql.BasicBinder]': INFO gridsuite: services: report-server: