Add tabs and tags methods in tests interfaces and annotate all methods with the Test JUnit annotation
These changes should help to detect tests as tests, when running a subset of tests or all tests. They should be also implemented in these interfaces' implementations (new and existing ones). Co-authored-by: ThetaDev <t.testboy@gmail.com>
This commit is contained in:
parent
c70a0e3543
commit
18846baba7
|
@ -1,11 +1,22 @@
|
||||||
package org.schabi.newpipe.extractor.services;
|
package org.schabi.newpipe.extractor.services;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
import org.junit.jupiter.api.Test;
|
||||||
public interface BaseChannelExtractorTest extends BaseListExtractorTest {
|
|
||||||
|
public interface BaseChannelExtractorTest extends BaseExtractorTest {
|
||||||
|
@Test
|
||||||
void testDescription() throws Exception;
|
void testDescription() throws Exception;
|
||||||
|
@Test
|
||||||
void testAvatarUrl() throws Exception;
|
void testAvatarUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testBannerUrl() throws Exception;
|
void testBannerUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testFeedUrl() throws Exception;
|
void testFeedUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testSubscriberCount() throws Exception;
|
void testSubscriberCount() throws Exception;
|
||||||
|
@Test
|
||||||
void testVerified() throws Exception;
|
void testVerified() throws Exception;
|
||||||
|
@Test
|
||||||
|
void testTabs() throws Exception;
|
||||||
|
@Test
|
||||||
|
void testTags() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,16 @@
|
||||||
package org.schabi.newpipe.extractor.services;
|
package org.schabi.newpipe.extractor.services;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public interface BaseExtractorTest {
|
public interface BaseExtractorTest {
|
||||||
|
@Test
|
||||||
void testServiceId() throws Exception;
|
void testServiceId() throws Exception;
|
||||||
|
@Test
|
||||||
void testName() throws Exception;
|
void testName() throws Exception;
|
||||||
|
@Test
|
||||||
void testId() throws Exception;
|
void testId() throws Exception;
|
||||||
|
@Test
|
||||||
void testUrl() throws Exception;
|
void testUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testOriginalUrl() throws Exception;
|
void testOriginalUrl() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
package org.schabi.newpipe.extractor.services;
|
package org.schabi.newpipe.extractor.services;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public interface BaseListExtractorTest extends BaseExtractorTest {
|
public interface BaseListExtractorTest extends BaseExtractorTest {
|
||||||
|
@Test
|
||||||
void testRelatedItems() throws Exception;
|
void testRelatedItems() throws Exception;
|
||||||
|
@Test
|
||||||
void testMoreRelatedItems() throws Exception;
|
void testMoreRelatedItems() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,18 @@
|
||||||
package org.schabi.newpipe.extractor.services;
|
package org.schabi.newpipe.extractor.services;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public interface BasePlaylistExtractorTest extends BaseListExtractorTest {
|
public interface BasePlaylistExtractorTest extends BaseListExtractorTest {
|
||||||
|
@Test
|
||||||
void testThumbnailUrl() throws Exception;
|
void testThumbnailUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testBannerUrl() throws Exception;
|
void testBannerUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploaderName() throws Exception;
|
void testUploaderName() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploaderAvatarUrl() throws Exception;
|
void testUploaderAvatarUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testStreamCount() throws Exception;
|
void testStreamCount() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploaderVerified() throws Exception;
|
void testUploaderVerified() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
package org.schabi.newpipe.extractor.services;
|
package org.schabi.newpipe.extractor.services;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public interface BaseSearchExtractorTest extends BaseListExtractorTest {
|
public interface BaseSearchExtractorTest extends BaseListExtractorTest {
|
||||||
|
@Test
|
||||||
void testSearchString() throws Exception;
|
void testSearchString() throws Exception;
|
||||||
|
@Test
|
||||||
void testSearchSuggestion() throws Exception;
|
void testSearchSuggestion() throws Exception;
|
||||||
|
@Test
|
||||||
void testSearchCorrected() throws Exception;
|
void testSearchCorrected() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +1,70 @@
|
||||||
package org.schabi.newpipe.extractor.services;
|
package org.schabi.newpipe.extractor.services;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
public interface BaseStreamExtractorTest extends BaseExtractorTest {
|
public interface BaseStreamExtractorTest extends BaseExtractorTest {
|
||||||
|
@Test
|
||||||
void testStreamType() throws Exception;
|
void testStreamType() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploaderName() throws Exception;
|
void testUploaderName() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploaderUrl() throws Exception;
|
void testUploaderUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploaderAvatarUrl() throws Exception;
|
void testUploaderAvatarUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testSubscriberCount() throws Exception;
|
void testSubscriberCount() throws Exception;
|
||||||
|
@Test
|
||||||
void testSubChannelName() throws Exception;
|
void testSubChannelName() throws Exception;
|
||||||
|
@Test
|
||||||
void testSubChannelUrl() throws Exception;
|
void testSubChannelUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testSubChannelAvatarUrl() throws Exception;
|
void testSubChannelAvatarUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testThumbnailUrl() throws Exception;
|
void testThumbnailUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testDescription() throws Exception;
|
void testDescription() throws Exception;
|
||||||
|
@Test
|
||||||
void testLength() throws Exception;
|
void testLength() throws Exception;
|
||||||
|
@Test
|
||||||
void testTimestamp() throws Exception;
|
void testTimestamp() throws Exception;
|
||||||
|
@Test
|
||||||
void testViewCount() throws Exception;
|
void testViewCount() throws Exception;
|
||||||
|
@Test
|
||||||
void testUploadDate() throws Exception;
|
void testUploadDate() throws Exception;
|
||||||
|
@Test
|
||||||
void testTextualUploadDate() throws Exception;
|
void testTextualUploadDate() throws Exception;
|
||||||
|
@Test
|
||||||
void testLikeCount() throws Exception;
|
void testLikeCount() throws Exception;
|
||||||
|
@Test
|
||||||
void testDislikeCount() throws Exception;
|
void testDislikeCount() throws Exception;
|
||||||
|
@Test
|
||||||
void testRelatedItems() throws Exception;
|
void testRelatedItems() throws Exception;
|
||||||
|
@Test
|
||||||
void testAgeLimit() throws Exception;
|
void testAgeLimit() throws Exception;
|
||||||
|
@Test
|
||||||
void testErrorMessage() throws Exception;
|
void testErrorMessage() throws Exception;
|
||||||
|
@Test
|
||||||
void testAudioStreams() throws Exception;
|
void testAudioStreams() throws Exception;
|
||||||
|
@Test
|
||||||
void testVideoStreams() throws Exception;
|
void testVideoStreams() throws Exception;
|
||||||
|
@Test
|
||||||
void testSubtitles() throws Exception;
|
void testSubtitles() throws Exception;
|
||||||
|
@Test
|
||||||
void testGetDashMpdUrl() throws Exception;
|
void testGetDashMpdUrl() throws Exception;
|
||||||
|
@Test
|
||||||
void testFrames() throws Exception;
|
void testFrames() throws Exception;
|
||||||
|
@Test
|
||||||
void testHost() throws Exception;
|
void testHost() throws Exception;
|
||||||
|
@Test
|
||||||
void testPrivacy() throws Exception;
|
void testPrivacy() throws Exception;
|
||||||
|
@Test
|
||||||
void testCategory() throws Exception;
|
void testCategory() throws Exception;
|
||||||
|
@Test
|
||||||
void testLicence() throws Exception;
|
void testLicence() throws Exception;
|
||||||
|
@Test
|
||||||
void testLanguageInfo() throws Exception;
|
void testLanguageInfo() throws Exception;
|
||||||
|
@Test
|
||||||
void testTags() throws Exception;
|
void testTags() throws Exception;
|
||||||
|
@Test
|
||||||
void testSupportInfo() throws Exception;
|
void testSupportInfo() throws Exception;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue