Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testHttpGET() throws Exception {
- MuleClient client = muleContext.getClient();
- Map<String, Object> headers = new HashMap<String, Object>();
- headers.put("http.method", "GET");
- MuleMessage response = client.send("http://localhost:8081/contact/","",headers,10000);
- String mystr = response.getPayloadAsString();
- // Assert it's a string
- assertTrue(mystr.contains("First"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement