Skip to content

Commit 68307fc

Browse files
committed
minor cleanup and comment.
1 parent db99e70 commit 68307fc

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@
6666
import org.slf4j.Logger;
6767
import org.slf4j.LoggerFactory;
6868

69+
/**
70+
* This class contains tests for logging events in each credentials workflow Tests are copied from
71+
* credentials test classes with addition of test logging appender setup and test logic for logging.
72+
* This duplicates tests setups, but centralizes logging test setup in this class.
73+
*/
6974
public class LoggingTest {
7075

7176
private static final Gson gson = new Gson();

oauth2_http/javatests/com/google/auth/oauth2/LoggingUtilsTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,4 @@ public void testLogGenericData() {
144144

145145
testAppender.stop();
146146
}
147-
148-
private TestAppender setupTestLogger(Class<?> clazz) {
149-
TestAppender testAppender = new TestAppender();
150-
testAppender.start();
151-
Logger logger = LoggerFactory.getLogger(clazz);
152-
((ch.qos.logback.classic.Logger) logger).addAppender(testAppender);
153-
return testAppender;
154-
}
155147
}

0 commit comments

Comments
 (0)