Skip to content

Commit

Permalink
MARP-975 Revert changes for LoggingUtilsTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tvtphuc-axonivy committed Dec 19, 2024
1 parent 26c18ff commit 88e39cb
Showing 1 changed file with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ void testGetArgumentsStringOnNullValue() {
Assertions.assertEquals(LoggingConstants.NO_ARGUMENTS, result);
}

// @Test
// void testBuildLogEntry() {
// Map<String, String> given = Map.of(
// "method", "test",
// "timestamp", "15:02:00"
// );
// String expected = """
// <LogEntry>
// <method>test</method>
// <timestamp>15:02:00</timestamp>
// </LogEntry>
// """.indent(2);
//
// var result = LoggingUtils.buildLogEntry(given);
// Assertions.assertEquals(expected, result);
// }
@Test
void testBuildLogEntry() {
Map<String, String> given = Map.of(
"method", "test",
"timestamp", "15:02:00"
);
String expected = """
<LogEntry>
<method>test</method>
<timestamp>15:02:00</timestamp>
</LogEntry>
""".indent(2);

var result = LoggingUtils.buildLogEntry(given);
Assertions.assertEquals(expected, result);
}

@Test
void testGetCurrentDate() {
Expand Down

0 comments on commit 88e39cb

Please sign in to comment.