diff --git a/filters/src/main/java/io/camunda/zeebe/process/test/filters/logger/RecordStreamLogger.java b/filters/src/main/java/io/camunda/zeebe/process/test/filters/logger/RecordStreamLogger.java index ed7c7a070..64a17185b 100644 --- a/filters/src/main/java/io/camunda/zeebe/process/test/filters/logger/RecordStreamLogger.java +++ b/filters/src/main/java/io/camunda/zeebe/process/test/filters/logger/RecordStreamLogger.java @@ -100,17 +100,17 @@ public RecordStreamLogger(final RecordStreamSource recordStreamSource) { valueTypeLoggers.put(ValueType.ESCALATION, this::logEscalationRecordValue); // These records don't have any interesting extra information for the user to log - valueTypeLoggers.put(ValueType.DEPLOYMENT_DISTRIBUTION, record -> ""); - valueTypeLoggers.put(ValueType.SBE_UNKNOWN, record -> ""); - valueTypeLoggers.put(ValueType.NULL_VAL, record -> ""); + valueTypeLoggers.put(ValueType.DEPLOYMENT_DISTRIBUTION, Object::toString); + valueTypeLoggers.put(ValueType.SBE_UNKNOWN, Object::toString); + valueTypeLoggers.put(ValueType.NULL_VAL, Object::toString); // DMN will not be part of the initial 1.4 release - valueTypeLoggers.put(ValueType.DECISION, record -> ""); - valueTypeLoggers.put(ValueType.DECISION_REQUIREMENTS, record -> ""); - valueTypeLoggers.put(ValueType.DECISION_EVALUATION, record -> ""); + valueTypeLoggers.put(ValueType.DECISION, Object::toString); + valueTypeLoggers.put(ValueType.DECISION_REQUIREMENTS, Object::toString); + valueTypeLoggers.put(ValueType.DECISION_EVALUATION, Object::toString); // checkpoint isn't meant to be read by the engine - valueTypeLoggers.put(ValueType.CHECKPOINT, record -> ""); + valueTypeLoggers.put(ValueType.CHECKPOINT, Object::toString); valueTypeLoggers.put( ValueType.PROCESS_INSTANCE_MODIFICATION, this::logProcessInstanceModificationRecordValue); @@ -121,7 +121,7 @@ public RecordStreamLogger(final RecordStreamSource recordStreamSource) { valueTypeLoggers.put(ValueType.RESOURCE_DELETION, this::logResourceDeletionRecordValue); valueTypeLoggers.put(ValueType.COMMAND_DISTRIBUTION, this::logCommandDistributionRecordValue); - valueTypeLoggers.put(ValueType.PROCESS_INSTANCE_BATCH, record -> ""); + valueTypeLoggers.put(ValueType.PROCESS_INSTANCE_BATCH, Object::toString); valueTypeLoggers.put(ValueType.FORM, this::logFormRecordValue); valueTypeLoggers.put(ValueType.USER_TASK, this::logUserTaskRecordValue); valueTypeLoggers.put( @@ -131,6 +131,7 @@ public RecordStreamLogger(final RecordStreamSource recordStreamSource) { valueTypeLoggers.put(ValueType.MESSAGE_CORRELATION, this::logMessageCorrelationRecordValue); valueTypeLoggers.put(ValueType.USER, this::logUsersRecordValue); valueTypeLoggers.put(ValueType.CLOCK, this::logClockRecordValue); + valueTypeLoggers.put(ValueType.AUTHORIZATION, Object::toString); } public void log() { diff --git a/qa/abstracts/src/main/java/io/camunda/zeebe/process/test/qa/abstracts/jobs/AbstractTimerTest.java b/qa/abstracts/src/main/java/io/camunda/zeebe/process/test/qa/abstracts/jobs/AbstractTimerTest.java index dc699f144..171550828 100644 --- a/qa/abstracts/src/main/java/io/camunda/zeebe/process/test/qa/abstracts/jobs/AbstractTimerTest.java +++ b/qa/abstracts/src/main/java/io/camunda/zeebe/process/test/qa/abstracts/jobs/AbstractTimerTest.java @@ -52,12 +52,12 @@ public abstract class AbstractTimerTest { private static Stream dates() { return Stream.of( - Arguments.of(OffsetDateTime.of(2023, 10, 5, 15, 50, 0, 0, ZoneOffset.of("+02:00"))), - Arguments.of(OffsetDateTime.of(2023, 10, 31, 0, 0, 0, 0, ZoneOffset.of("+02:00"))), - Arguments.of(OffsetDateTime.of(2023, 10, 31, 23, 0, 0, 0, ZoneOffset.of("+02:00"))), - Arguments.of(OffsetDateTime.of(2023, 10, 31, 23, 59, 0, 0, ZoneOffset.of("+02:00"))), - Arguments.of(OffsetDateTime.of(2023, 10, 31, 23, 59, 59, 0, ZoneOffset.of("+02:00"))), - Arguments.of(OffsetDateTime.of(2023, 12, 31, 23, 59, 59, 0, ZoneOffset.of("+02:00")))); + Arguments.of(OffsetDateTime.of(2024, 10, 5, 15, 50, 0, 0, ZoneOffset.of("+02:00"))), + Arguments.of(OffsetDateTime.of(2024, 10, 31, 0, 0, 0, 0, ZoneOffset.of("+02:00"))), + Arguments.of(OffsetDateTime.of(2024, 10, 31, 23, 0, 0, 0, ZoneOffset.of("+02:00"))), + Arguments.of(OffsetDateTime.of(2024, 10, 31, 23, 59, 0, 0, ZoneOffset.of("+02:00"))), + Arguments.of(OffsetDateTime.of(2024, 10, 31, 23, 59, 59, 0, ZoneOffset.of("+02:00"))), + Arguments.of(OffsetDateTime.of(2024, 12, 31, 23, 59, 59, 0, ZoneOffset.of("+02:00")))); } @BeforeEach