Skip to content

Commit

Permalink
elf4j version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
q3769 committed Apr 13, 2024
1 parent 0580417 commit cac300f
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/test/java/elf4j/jul/JulLoggerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@

package elf4j.jul;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotSame;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.*;

import elf4j.Level;
import elf4j.Logger;
import java.util.Arrays;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -82,9 +78,8 @@ void messagesArgsAndGuards() {
"enabled by the configuration of the logging provider");
}
debug.log(
(Supplier)
() ->
"alternative to the level guard, using a supplier function should achieve the same goal, pending quality of the logging provider");
() ->
"alternative to the level guard, using a supplier function should achieve the same goal, pending quality of the logging provider");
}

@Test
Expand Down Expand Up @@ -113,10 +108,10 @@ void throwableAndMessageAndArgs() {
error.log(
ex,
"now at Level.ERROR, together with the exception stack trace, logging some items expensive to compute: item1 {}, item2 {}, item3 {}, item4 {}, ...",
"i11111",
(Supplier) () -> "i22222",
"i33333",
(Supplier) () -> Arrays.stream(new Object[] {"i44444"}).collect(Collectors.toList()));
() -> "i11111",
() -> "i22222",
() -> "i33333",
() -> Arrays.stream(new Object[] {"i44444"}).collect(Collectors.toList()));
}
}
}

0 comments on commit cac300f

Please sign in to comment.