|
29 | 29 | import static org.junit.jupiter.api.Assertions.assertNotNull; |
30 | 30 | import static org.junit.jupiter.api.Assertions.assertNull; |
31 | 31 | import static org.junit.jupiter.api.Assertions.assertTrue; |
32 | | -import static org.schabi.newpipe.extractor.ExtractorAsserts.assertGreaterOrEqual; |
| 32 | +import static org.schabi.newpipe.extractor.ExtractorAsserts.assertEmpty; |
33 | 33 | import static org.schabi.newpipe.extractor.ExtractorAsserts.assertEqualsOrderIndependent; |
| 34 | +import static org.schabi.newpipe.extractor.ExtractorAsserts.assertGreaterOrEqual; |
34 | 35 | import static org.schabi.newpipe.extractor.ExtractorAsserts.assertIsSecureUrl; |
35 | 36 | import static org.schabi.newpipe.extractor.ExtractorAsserts.assertIsValidUrl; |
| 37 | +import static org.schabi.newpipe.extractor.services.DefaultTests.defaultTestImageCollection; |
36 | 38 | import static org.schabi.newpipe.extractor.services.DefaultTests.defaultTestListOfItems; |
37 | 39 | import static org.schabi.newpipe.extractor.stream.StreamExtractor.UNKNOWN_SUBSCRIBER_COUNT; |
38 | 40 |
|
@@ -98,8 +100,8 @@ public void testUploaderUrl() throws Exception { |
98 | 100 |
|
99 | 101 | @Test |
100 | 102 | @Override |
101 | | - public void testUploaderAvatarUrl() throws Exception { |
102 | | - assertIsSecureUrl(extractor().getUploaderAvatarUrl()); |
| 103 | + public void testUploaderAvatars() throws Exception { |
| 104 | + defaultTestImageCollection(extractor().getUploaderAvatars()); |
103 | 105 | } |
104 | 106 |
|
105 | 107 | @Test |
@@ -137,20 +139,20 @@ public void testSubChannelUrl() throws Exception { |
137 | 139 |
|
138 | 140 | @Test |
139 | 141 | @Override |
140 | | - public void testSubChannelAvatarUrl() throws Exception { |
| 142 | + public void testSubChannelAvatars() throws Exception { |
141 | 143 | if (expectedSubChannelName().isEmpty() && expectedSubChannelUrl().isEmpty()) { |
142 | 144 | // this stream has no subchannel |
143 | | - assertEquals("", extractor().getSubChannelAvatarUrl()); |
| 145 | + assertEmpty(extractor().getSubChannelAvatars()); |
144 | 146 | } else { |
145 | 147 | // this stream has a subchannel |
146 | | - assertIsSecureUrl(extractor().getSubChannelAvatarUrl()); |
| 148 | + defaultTestImageCollection(extractor().getSubChannelAvatars()); |
147 | 149 | } |
148 | 150 | } |
149 | 151 |
|
150 | 152 | @Test |
151 | 153 | @Override |
152 | | - public void testThumbnailUrl() throws Exception { |
153 | | - assertIsSecureUrl(extractor().getThumbnailUrl()); |
| 154 | + public void testThumbnails() throws Exception { |
| 155 | + defaultTestImageCollection(extractor().getThumbnails()); |
154 | 156 | } |
155 | 157 |
|
156 | 158 | @Test |
|
0 commit comments