Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testGetResponseXML(){
- WebClient client = WebClient.create(ENDPOINT_ADDRESS);
- client.type("application/xml");
- client.accept("application/xml");
- client.path("getResponse");
- String request = readReource("xml/request-by-attrib-1.xml");
- String response = readReource("xml/response-by-attrib-1.xml");
- String webRespose = client.post(request,String.class);
- assertEquals(response,webRespose);
- }
Add Comment
Please, Sign In to add comment