mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2024-11-17 23:47:39 +01:00
Fix failing test due to an invalid path
This commit is contained in:
parent
a6b6235644
commit
3fe9922d49
@ -33,7 +33,9 @@ public class YoutubeSubscriptionExtractorTest {
|
||||
|
||||
@Test
|
||||
public void testFromInputStream() throws Exception {
|
||||
File testFile = new File("src/test/resources/youtube_export_test.xml");
|
||||
File testFile = new File("extractor/src/test/resources/youtube_export_test.xml");
|
||||
if (!testFile.exists()) testFile = new File("src/test/resources/youtube_export_test.xml");
|
||||
|
||||
List<SubscriptionItem> subscriptionItems = subscriptionExtractor.fromInputStream(new FileInputStream(testFile));
|
||||
assertTrue("List doesn't have exactly 8 items (had " + subscriptionItems.size() + ")", subscriptionItems.size() == 8);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user