From 88e39cb22fa89e68dc1b1f4bd9e0ac151145c68f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20V=C4=A9nh=20Thi=E1=BB=87n=20Ph=C3=BAc?= Date: Thu, 19 Dec 2024 13:19:36 +0700 Subject: [PATCH] MARP-975 Revert changes for LoggingUtilsTest.java --- .../axonivy/market/util/LoggingUtilsTest.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/marketplace-service/src/test/java/com/axonivy/market/util/LoggingUtilsTest.java b/marketplace-service/src/test/java/com/axonivy/market/util/LoggingUtilsTest.java index ca74fdbd..be0ad64f 100644 --- a/marketplace-service/src/test/java/com/axonivy/market/util/LoggingUtilsTest.java +++ b/marketplace-service/src/test/java/com/axonivy/market/util/LoggingUtilsTest.java @@ -42,22 +42,22 @@ void testGetArgumentsStringOnNullValue() { Assertions.assertEquals(LoggingConstants.NO_ARGUMENTS, result); } -// @Test -// void testBuildLogEntry() { -// Map given = Map.of( -// "method", "test", -// "timestamp", "15:02:00" -// ); -// String expected = """ -// -// test -// 15:02:00 -// -// """.indent(2); -// -// var result = LoggingUtils.buildLogEntry(given); -// Assertions.assertEquals(expected, result); -// } + @Test + void testBuildLogEntry() { + Map given = Map.of( + "method", "test", + "timestamp", "15:02:00" + ); + String expected = """ + + test + 15:02:00 + + """.indent(2); + + var result = LoggingUtils.buildLogEntry(given); + Assertions.assertEquals(expected, result); + } @Test void testGetCurrentDate() {