File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
oauth2_http/javatests/com/google/auth/oauth2 Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 6666import org .slf4j .Logger ;
6767import 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+ */
6974public class LoggingTest {
7075
7176 private static final Gson gson = new Gson ();
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments