mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-15 06:40:33 +05:30
Remove "useless" comments
This commit is contained in:
parent
8fa81537c0
commit
52103ac61f
@ -26,13 +26,11 @@ public class BandcampChannelLinkHandlerFactoryTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAcceptUrl() throws ParsingException {
|
public void testAcceptUrl() throws ParsingException {
|
||||||
// Tests expecting true
|
|
||||||
assertTrue(linkHandler.acceptUrl("http://interovgm.com/releases/"));
|
assertTrue(linkHandler.acceptUrl("http://interovgm.com/releases/"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://interovgm.com/releases"));
|
assertTrue(linkHandler.acceptUrl("https://interovgm.com/releases"));
|
||||||
assertTrue(linkHandler.acceptUrl("http://zachbenson.bandcamp.com"));
|
assertTrue(linkHandler.acceptUrl("http://zachbenson.bandcamp.com"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/"));
|
assertTrue(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/"));
|
||||||
|
|
||||||
// Tests expecting false
|
|
||||||
assertFalse(linkHandler.acceptUrl("https://bandcamp.com"));
|
assertFalse(linkHandler.acceptUrl("https://bandcamp.com"));
|
||||||
assertFalse(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/track/kitchen"));
|
assertFalse(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/track/kitchen"));
|
||||||
}
|
}
|
||||||
|
@ -24,13 +24,11 @@ public class BandcampFeaturedLinkHandlerFactoryTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAcceptUrl() throws ParsingException {
|
public void testAcceptUrl() throws ParsingException {
|
||||||
// Tests expecting true
|
|
||||||
assertTrue(linkHandler.acceptUrl("https://bandcamp.com/?show=1"));
|
assertTrue(linkHandler.acceptUrl("https://bandcamp.com/?show=1"));
|
||||||
assertTrue(linkHandler.acceptUrl("http://bandcamp.com/?show=2"));
|
assertTrue(linkHandler.acceptUrl("http://bandcamp.com/?show=2"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://bandcamp.com/api/mobile/24/bootstrap_data"));
|
assertTrue(linkHandler.acceptUrl("https://bandcamp.com/api/mobile/24/bootstrap_data"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://bandcamp.com/api/bcweekly/1/list"));
|
assertTrue(linkHandler.acceptUrl("https://bandcamp.com/api/bcweekly/1/list"));
|
||||||
|
|
||||||
// Tests expecting false
|
|
||||||
assertFalse(linkHandler.acceptUrl("https://bandcamp.com/?show="));
|
assertFalse(linkHandler.acceptUrl("https://bandcamp.com/?show="));
|
||||||
assertFalse(linkHandler.acceptUrl("https://bandcamp.com/?show=a"));
|
assertFalse(linkHandler.acceptUrl("https://bandcamp.com/?show=a"));
|
||||||
assertFalse(linkHandler.acceptUrl("https://bandcamp.com/"));
|
assertFalse(linkHandler.acceptUrl("https://bandcamp.com/"));
|
||||||
|
@ -28,7 +28,6 @@ public class BandcampPlaylistLinkHandlerFactoryTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAcceptUrl() throws ParsingException {
|
public void testAcceptUrl() throws ParsingException {
|
||||||
// Tests expecting false
|
|
||||||
assertFalse(linkHandler.acceptUrl("http://interovgm.com/releases/"));
|
assertFalse(linkHandler.acceptUrl("http://interovgm.com/releases/"));
|
||||||
assertFalse(linkHandler.acceptUrl("https://interovgm.com/releases"));
|
assertFalse(linkHandler.acceptUrl("https://interovgm.com/releases"));
|
||||||
assertFalse(linkHandler.acceptUrl("http://zachbenson.bandcamp.com"));
|
assertFalse(linkHandler.acceptUrl("http://zachbenson.bandcamp.com"));
|
||||||
@ -37,7 +36,6 @@ public class BandcampPlaylistLinkHandlerFactoryTest {
|
|||||||
assertFalse(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/track/kitchen"));
|
assertFalse(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/track/kitchen"));
|
||||||
assertFalse(linkHandler.acceptUrl("https://interovgm.com/track/title"));
|
assertFalse(linkHandler.acceptUrl("https://interovgm.com/track/title"));
|
||||||
|
|
||||||
// Tests expecting true
|
|
||||||
assertTrue(linkHandler.acceptUrl("https://powertothequeerkids.bandcamp.com/album/power-to-the-queer-kids"));
|
assertTrue(linkHandler.acceptUrl("https://powertothequeerkids.bandcamp.com/album/power-to-the-queer-kids"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/album/prom"));
|
assertTrue(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/album/prom"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://MACBENSON.BANDCAMP.COM/ALBUM/COMING-OF-AGE"));
|
assertTrue(linkHandler.acceptUrl("https://MACBENSON.BANDCAMP.COM/ALBUM/COMING-OF-AGE"));
|
||||||
|
@ -37,7 +37,6 @@ public class BandcampStreamLinkHandlerFactoryTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAcceptUrl() throws ParsingException {
|
public void testAcceptUrl() throws ParsingException {
|
||||||
// Tests expecting false
|
|
||||||
assertFalse(linkHandler.acceptUrl("http://interovgm.com/releases/"));
|
assertFalse(linkHandler.acceptUrl("http://interovgm.com/releases/"));
|
||||||
assertFalse(linkHandler.acceptUrl("https://interovgm.com/releases"));
|
assertFalse(linkHandler.acceptUrl("https://interovgm.com/releases"));
|
||||||
assertFalse(linkHandler.acceptUrl("http://zachbenson.bandcamp.com"));
|
assertFalse(linkHandler.acceptUrl("http://zachbenson.bandcamp.com"));
|
||||||
@ -45,7 +44,6 @@ public class BandcampStreamLinkHandlerFactoryTest {
|
|||||||
assertFalse(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/"));
|
assertFalse(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/"));
|
||||||
assertFalse(linkHandler.acceptUrl("https://powertothequeerkids.bandcamp.com/album/power-to-the-queer-kids"));
|
assertFalse(linkHandler.acceptUrl("https://powertothequeerkids.bandcamp.com/album/power-to-the-queer-kids"));
|
||||||
|
|
||||||
// Tests expecting true
|
|
||||||
assertTrue(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/track/kitchen"));
|
assertTrue(linkHandler.acceptUrl("https://zachbenson.bandcamp.com/track/kitchen"));
|
||||||
assertTrue(linkHandler.acceptUrl("http://ZachBenson.Bandcamp.COM/Track/U-I-Tonite/"));
|
assertTrue(linkHandler.acceptUrl("http://ZachBenson.Bandcamp.COM/Track/U-I-Tonite/"));
|
||||||
assertTrue(linkHandler.acceptUrl("https://interovgm.com/track/title"));
|
assertTrue(linkHandler.acceptUrl("https://interovgm.com/track/title"));
|
||||||
|
@ -32,7 +32,6 @@ public class BandcampSuggestionExtractorTest {
|
|||||||
public void testSearchExample() throws IOException, ExtractionException {
|
public void testSearchExample() throws IOException, ExtractionException {
|
||||||
List<String> c418 = extractor.suggestionList("c418");
|
List<String> c418 = extractor.suggestionList("c418");
|
||||||
|
|
||||||
// When looking for c418, one should find C418
|
|
||||||
assertTrue(c418.contains("C418"));
|
assertTrue(c418.contains("C418"));
|
||||||
|
|
||||||
// There should be five results, but we can't be sure of that forever
|
// There should be five results, but we can't be sure of that forever
|
||||||
|
Loading…
Reference in New Issue
Block a user