Undo formatting of YoutubeStreamExtractorDefaultTest

This commit is contained in:
XiangRongLin 2021-02-14 14:57:23 +01:00
parent 971128c464
commit a88b2e6af4
1 changed files with 11 additions and 45 deletions

View File

@ -251,6 +251,7 @@ public class YoutubeStreamExtractorDefaultTest {
extractor.fetchPage(); extractor.fetchPage();
} }
// @formatter:off
@Override public StreamExtractor extractor() { return extractor; } @Override public StreamExtractor extractor() { return extractor; }
@Override public StreamingService expectedService() { return YouTube; } @Override public StreamingService expectedService() { return YouTube; }
@Override public String expectedName() { return "Vitamin D wissenschaftlich gepr\u00fcft"; } @Override public String expectedName() { return "Vitamin D wissenschaftlich gepr\u00fcft"; }
@ -261,51 +262,16 @@ public class YoutubeStreamExtractorDefaultTest {
@Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; } @Override public StreamType expectedStreamType() { return StreamType.VIDEO_STREAM; }
@Override public String expectedUploaderName() { return "maiLab"; } @Override public String expectedUploaderName() { return "maiLab"; }
@Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCyHDQ5C6z1NDmJ4g6SerW8g"; } @Override public String expectedUploaderUrl() { return "https://www.youtube.com/channel/UCyHDQ5C6z1NDmJ4g6SerW8g"; }
@Override public List<String> expectedDescriptionContains() { @Override public List<String> expectedDescriptionContains() {return Arrays.asList("Vitamin", "2:44", "Was ist Vitamin D?");}
return Arrays.asList("Vitamin", "2:44", "Was ist Vitamin D?"); @Override public long expectedLength() { return 1010; }
} @Override public long expectedViewCountAtLeast() { return 815500; }
@Nullable @Override public String expectedUploadDate() { return "2020-11-18 00:00:00.000"; }
@Override @Nullable @Override public String expectedTextualUploadDate() { return "2020-11-18"; }
public long expectedLength() { @Override public long expectedLikeCountAtLeast() { return 48500; }
return 1010; @Override public long expectedDislikeCountAtLeast() { return 20000; }
} @Override public boolean expectedHasSubtitles() { return true; }
@Override public int expectedStreamSegmentsCount() { return 7; }
@Override // @formatter:on
public long expectedViewCountAtLeast() {
return 815500;
}
@Nullable
@Override
public String expectedUploadDate() {
return "2020-11-18 00:00:00.000";
}
@Nullable
@Override
public String expectedTextualUploadDate() {
return "2020-11-18";
}
@Override
public long expectedLikeCountAtLeast() {
return 48500;
}
@Override
public long expectedDislikeCountAtLeast() {
return 20000;
}
@Override
public boolean expectedHasSubtitles() {
return true;
}
@Override
public int expectedStreamSegmentsCount() {
return 7;
}
@Test @Test
public void testStreamSegment() throws Exception { public void testStreamSegment() throws Exception {