|
4 | 4 | import static org.junit.jupiter.api.Assertions.assertFalse; |
5 | 5 | import static org.junit.jupiter.api.Assertions.assertThrows; |
6 | 6 | import static org.junit.jupiter.api.Assertions.assertTrue; |
| 7 | +import static org.schabi.newpipe.extractor.ExtractorAsserts.assertContains; |
7 | 8 | import static org.schabi.newpipe.extractor.ExtractorAsserts.assertIsSecureUrl; |
8 | 9 | import static org.schabi.newpipe.extractor.ServiceList.YouTube; |
9 | 10 | import static org.schabi.newpipe.extractor.services.DefaultTests.assertNoMoreItems; |
@@ -163,6 +164,12 @@ public void testUploaderVerified() throws Exception { |
163 | 164 | void getPlaylistType() throws ParsingException { |
164 | 165 | assertEquals(PlaylistInfo.PlaylistType.NORMAL, extractor.getPlaylistType()); |
165 | 166 | } |
| 167 | + |
| 168 | + @Test |
| 169 | + public void testDescription() throws ParsingException { |
| 170 | + final String description = extractor.getDescription(); |
| 171 | + assertContains("pop songs list", description); |
| 172 | + } |
166 | 173 | } |
167 | 174 |
|
168 | 175 | public static class HugePlaylist implements BasePlaylistExtractorTest { |
@@ -286,6 +293,12 @@ public void testUploaderVerified() throws Exception { |
286 | 293 | void getPlaylistType() throws ParsingException { |
287 | 294 | assertEquals(PlaylistInfo.PlaylistType.NORMAL, extractor.getPlaylistType()); |
288 | 295 | } |
| 296 | + |
| 297 | + @Test |
| 298 | + public void testDescription() throws ParsingException { |
| 299 | + final String description = extractor.getDescription(); |
| 300 | + assertContains("I Wanna Rock Super Gigantic Playlist", description); |
| 301 | + } |
289 | 302 | } |
290 | 303 |
|
291 | 304 | public static class LearningPlaylist implements BasePlaylistExtractorTest { |
@@ -394,6 +407,12 @@ public void testUploaderVerified() throws Exception { |
394 | 407 | void getPlaylistType() throws ParsingException { |
395 | 408 | assertEquals(PlaylistInfo.PlaylistType.NORMAL, extractor.getPlaylistType()); |
396 | 409 | } |
| 410 | + |
| 411 | + @Test |
| 412 | + public void testDescription() throws ParsingException { |
| 413 | + final String description = extractor.getDescription(); |
| 414 | + assertContains("47 episodes", description); |
| 415 | + } |
397 | 416 | } |
398 | 417 |
|
399 | 418 | public static class ContinuationsTests { |
|
0 commit comments