@@ -30,6 +30,18 @@ public void testDefault() throws IOException, ProxerException {
3030 assertThat (result ).first ().isEqualTo (buildTestStream ());
3131 }
3232
33+ @ Test
34+ public void testOfficial () throws IOException , ProxerException {
35+ server .enqueue (new MockResponse ().setBody (fromResource ("streams.json" )));
36+
37+ final List <Stream > result = api .anime ()
38+ .streams ("3" , 4 , AnimeLanguage .GERMAN_SUB )
39+ .build ()
40+ .execute ();
41+
42+ assertThat (result ).element (2 ).isEqualTo (buildOfficialTestStream ());
43+ }
44+
3345 @ Test
3446 public void testPath () throws ProxerException , IOException , InterruptedException {
3547 server .enqueue (new MockResponse ().setBody (fromResource ("streams.json" )));
@@ -71,6 +83,12 @@ public void testProxerStreamFalse() throws ProxerException, IOException, Interru
7183 private Stream buildTestStream () {
7284 return new Stream ("565484" , "dailymotion" , "Dailymotion" , "dailymotion.png" ,
7385 "217857" , "kollenbad" , new Date (1454414911L * 1000 ), "698" ,
74- "Grim-Subs" );
86+ "Grim-Subs" , false );
87+ }
88+
89+ private Stream buildOfficialTestStream () {
90+ return new Stream ("565924" , "novamov" , "Auroravid/Novamov" , "novamov.png" ,
91+ "66" , "ProxerBot" , new Date (1454767407L * 1000 ), "92" ,
92+ "Chinurarete-Subs" , true );
7593 }
7694}
0 commit comments