File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import org .junit .jupiter .api .extension .ExtensionContext ;
55import org .schabi .newpipe .extractor .utils .ExtractorLogger ;
66
7+ /**
8+ * JUnit extension class for globally setting up the logger for all extractor tests<br>
9+ * See <a href="https://www.baeldung.com/junit-5-extensions#1-automatic-extension-registration">here</a> on how this works
10+ * <br>
11+ * To disable this, set {@code junit.jupiter.extensions.autodetection.enabled = false}
12+ * in junit-platform.properties
13+ */
714public class LoggerExtension implements BeforeAllCallback {
815 private static boolean set = false ;
916
Original file line number Diff line number Diff line change 55
66import static org .junit .jupiter .api .Assertions .*;
77
8+ /**
9+ * See {@link org.schabi.newpipe.extractor.LoggerExtension} for how global logging is set up for tests
10+ */
811class ExtractorLoggerTest {
912
1013 private CapturingLogger logger ;
You can’t perform that action at this time.
0 commit comments