Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit c4d3b6e

Browse files
committed
chore: Fix junit migration issues
1 parent ceca5f7 commit c4d3b6e

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

google-cloud-logging/src/test/java/com/google/cloud/logging/ContextHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package com.google.cloud.logging;
1818

19-
import static org.junit.jupiter.api.Assertions.*;
19+
import static org.junit.jupiter.api.Assertions.assertEquals;
2020

2121
import com.google.cloud.logging.ContextHandler.ContextPriority;
2222
import com.google.cloud.logging.HttpRequest.RequestMethod;

google-cloud-logging/src/test/java/com/google/cloud/logging/LoggingHandlerTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,6 @@ static class CustomLevel extends Level {
238238

239239
public final OutputStreamPatcher outputStreamPatcher = new OutputStreamPatcher();
240240

241-
@org.junit.jupiter.api.AfterEach
242-
void tearDownPatcher() {
243-
outputStreamPatcher.after();
244-
}
245-
246241
@BeforeEach
247242
void setUp() {
248243
Instrumentation.setInstrumentationStatus(true);
@@ -260,6 +255,7 @@ void setUp() {
260255
@AfterEach
261256
void after() {
262257
verify(logging, options);
258+
outputStreamPatcher.after();
263259
}
264260

265261
private static LogRecord newLogRecord(Level level, String message) {

0 commit comments

Comments
 (0)