ManZzup

Untitled

Aug 12th, 2016
826
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1.     @Test
  2.     public void testGetResponseXML(){
  3.  
  4.         WebClient client = WebClient.create(ENDPOINT_ADDRESS);
  5.  
  6.         client.type("application/xml");
  7.         client.accept("application/xml");
  8.  
  9.         client.path("getResponse");
  10.  
  11.  
  12.  
  13.         String request = readReource("xml/request-by-attrib-1.xml");
  14.         String response = readReource("xml/response-by-attrib-1.xml");
  15.  
  16.         String webRespose = client.post(request,String.class);
  17.  
  18.         assertEquals(response,webRespose);
  19.     }
Add Comment
Please, Sign In to add comment