From 64c0e518bb70dc964518dde00ff561e8d319f669 Mon Sep 17 00:00:00 2001 From: Gonzalo Munoz Fernandez Date: Thu, 10 Oct 2024 02:07:42 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"RHPAM-4779:=20SLA=20due=20date=20valu?= =?UTF-8?q?e=20in=20ProcessInstanceLog=20table=20is=20not=20upd=E2=80=A6?= =?UTF-8?q?=20(#2396)=20(#2436)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2d8b32ba181a7570c9b6bc80c92bc58f63bd1fa0. --- .../ServicesAwareAuditEventBuilderTest.java | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/impl/audit/ServicesAwareAuditEventBuilderTest.java b/jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/impl/audit/ServicesAwareAuditEventBuilderTest.java index 8ddfe16baf..81e1a34193 100644 --- a/jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/impl/audit/ServicesAwareAuditEventBuilderTest.java +++ b/jbpm-services/jbpm-kie-services/src/test/java/org/jbpm/kie/services/impl/audit/ServicesAwareAuditEventBuilderTest.java @@ -22,6 +22,7 @@ import java.lang.reflect.Field; import java.lang.reflect.Modifier; +import java.util.Collection; import java.time.LocalDate; import java.time.ZoneId; import java.util.Date; @@ -57,10 +58,6 @@ public class ServicesAwareAuditEventBuilderTest extends AbstractKieServicesBaseTest { private static final Logger logger = LoggerFactory.getLogger(ProcessServiceImplTest.class); - - private static final Date TEST_DATE = Date.from(LocalDate.of(2024, 3, 14).atStartOfDay(ZoneId.systemDefault()).toInstant()); - - private static final String TEST_DEPLOYMENT_UNIT = "unit1"; private static final Date TEST_DATE = Date.from(LocalDate.of(2024, 3, 14).atStartOfDay(ZoneId.systemDefault()).toInstant()); @@ -103,7 +100,7 @@ private void setUpMocks() { when(processInstance.getId()).thenReturn(1L); when(processInstance.getDescription()).thenReturn("Some test Process"); when(processInstance.getSlaCompliance()).thenReturn(0); - + when(processInstance.getSlaDueDate()).thenReturn(TEST_DATE); when(processInstance.getMetaData()).thenReturn(processMetadata); @@ -130,22 +127,6 @@ public void testBuildProcessStartedEvent() { assertEquals("testUser", log.getIdentity()); } - - /** - * Test build the ProcessInstanceLog for data change - */ - @Test - public void testBuildProcessDataChangedEventImpl() { - - ProcessDataChangedEvent pdce = new ProcessDataChangedEventImpl(processInstance, kieRuntime); - - ProcessInstanceLog log = (ProcessInstanceLog) builder.buildEvent(pdce); - - assertEquals(TEST_DATE, log.getSlaDueDate()); - - assertEquals(TEST_DEPLOYMENT_UNIT, log.getExternalId()); - - } /** * Test build the ProcessInstanceLog for data change