Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. @Test
  2. public void testHttpGET() throws Exception {
  3. MuleClient client = muleContext.getClient();
  4. Map<String, Object> headers = new HashMap<String, Object>();
  5. headers.put("http.method", "GET");
  6. MuleMessage response = client.send("http://localhost:8081/contact/","",headers,10000);
  7. String mystr = response.getPayloadAsString();
  8. // Assert it's a string
  9. assertTrue(mystr.contains("First"));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement