Improve tests

This commit is contained in:
litetex 2025-03-05 15:44:25 +01:00
parent 7b5d41a741
commit 2d3342bf56
No known key found for this signature in database
GPG Key ID: 525B43E6039B3689

View File

@ -1,5 +1,9 @@
package org.schabi.newpipe.extractor.utils; package org.schabi.newpipe.extractor.utils;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.schabi.newpipe.FileUtils.resolveTestResource;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.schabi.newpipe.extractor.exceptions.ParsingException; import org.schabi.newpipe.extractor.exceptions.ParsingException;
import org.schabi.newpipe.extractor.utils.jsextractor.JavaScriptExtractor; import org.schabi.newpipe.extractor.utils.jsextractor.JavaScriptExtractor;
@ -10,11 +14,7 @@ import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import static org.junit.jupiter.api.Assertions.assertEquals; class JavaScriptExtractorTest
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.schabi.newpipe.FileUtils.resolveTestResource;
public class JavaScriptExtractorTest
{ {
@Test @Test
void testJsExtractor() throws ParsingException { void testJsExtractor() throws ParsingException {