Skip to content

Commit 623d480

Browse files
committed
Remove mockito from powertools-logging-logback.
1 parent 4f02496 commit 623d480

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

powertools-logging/powertools-logging-logback/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@
9797
<artifactId>maven-surefire-plugin</artifactId>
9898
<version>3.5.3</version>
9999
<configuration>
100-
<argLine>
101-
-Dorg.graalvm.nativeimage.imagecode=agent
100+
<argLine>-Dorg.graalvm.nativeimage.imagecode=agent
102101
-agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image/software.amazon.lambda/powertools-logging-logback,experimental-class-define-support
103102
--add-opens java.base/java.util=ALL-UNNAMED
104103
--add-opens java.base/java.lang=ALL-UNNAMED
@@ -129,9 +128,6 @@
129128
<configuration>
130129
<imageName>powertools-logging-logback</imageName>
131130
<buildArgs>
132-
<buildArg>
133-
--initialize-at-build-time=org.junit.platform.launcher.core.DiscoveryIssueNotifier$1
134-
</buildArg>
135131
<buildArg>--add-opens java.base/java.util=ALL-UNNAMED</buildArg>
136132
<buildArg>--add-opens java.base/java.lang=ALL-UNNAMED</buildArg>
137133
<buildArg>--no-fallback</buildArg>

powertools-logging/powertools-logging-logback/src/test/java/software/amazon/lambda/powertools/logging/internal/LambdaJsonEncoderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ void shouldLogStructuredArgumentsAsNewEntries() {
217217
StructuredArgument argument = StructuredArguments.entry("msg", msg);
218218

219219
// WHEN
220-
LoggingEvent structuredLoggingEvent = new LoggingEvent("fqcn", logger, Level.INFO, "A message", null,
220+
LoggingEvent loggingEvent = new LoggingEvent("fqcn", logger, Level.INFO, "A message", null,
221221
new Object[] { argument });
222-
byte[] encoded = encoder.encode(structuredLoggingEvent);
222+
byte[] encoded = encoder.encode(loggingEvent);
223223
String result = new String(encoded, StandardCharsets.UTF_8);
224224

225225
// THEN (logged as JSON)

0 commit comments

Comments
 (0)