2121
2222import  javax .ws .rs .core .HttpHeaders ;
2323
24- import  static  org .junit .Assert .*;
24+ import  static  org .junit .Assert .assertEquals ;
25+ import  static  org .junit .Assert .assertNotNull ;
26+ import  static  org .junit .Assert .assertTrue ;
2527
2628public  class  StringsApiTest 
2729{
@@ -195,6 +197,18 @@ public void testGetSourceStrings() throws Exception
195197        assertTrue (request .getPath ().contains ("/projects/"  + PROJECT_UID  + "/source-strings" ));
196198    }
197199
200+     @ Test 
201+     public  void  getSourceStringsPost () throws  Exception 
202+     {
203+         assignResponse (HttpStatus .SC_OK , SOURCE_STRINGS );
204+ 
205+         SourceStringListPTO  sourceStrings  = stringsApi .getSourceStringsPost (PROJECT_UID , new  GetSourceStringsCommandPTO ());
206+         assertNotNull (sourceStrings );
207+         RecordedRequest  request  = mockWebServer .takeRequest ();
208+         assertEquals ("POST" , request .getMethod ());
209+         assertTrue (request .getPath ().contains ("/projects/"  + PROJECT_UID  + "/source-strings" ));
210+     }
211+ 
198212    @ Test 
199213    public  void  testGetTranslations () throws  Exception 
200214    {
@@ -206,4 +220,16 @@ public void testGetTranslations() throws Exception
206220        assertEquals ("GET" , request .getMethod ());
207221        assertTrue (request .getPath ().contains ("/projects/"  + PROJECT_UID  + "/translations" ));
208222    }
223+ 
224+     @ Test 
225+     public  void  testGetTranslationsPost () throws  Exception 
226+     {
227+         assignResponse (HttpStatus .SC_OK , TRANSLATIONS );
228+ 
229+         ListResponse <TranslationsPTO > translations  = stringsApi .getTranslationsPost (PROJECT_UID , new  TranslationsCommandPTO ());
230+         assertNotNull (translations );
231+         RecordedRequest  request  = mockWebServer .takeRequest ();
232+         assertEquals ("POST" , request .getMethod ());
233+         assertTrue (request .getPath ().contains ("/projects/"  + PROJECT_UID  + "/translations" ));
234+     }
209235}
0 commit comments