@Test public void testIsXmlMessage() throws Exception { boolean xmlResult = underTest.isXmlMessage(requestOf("<?xml version=\"1.0\"?><root><child></child></root>")); boolean soapResult = underTest.isXmlMessage(requestOf(soapMessage())); boolean jsonResult = underTest.isXmlMessage(requestOf("{\"property\":\"value\"}")); assertTrue(xmlResult); assertTrue(soapResult); assertFalse(jsonResult); }
public boolean isXmlMessage(final WilmaHttpEntity request) { return request.getBody().startsWith(XML_HEADER); }
WilmaHttpEntityUtils { public boolean isXmlMessage(final WilmaHttpEntity request) { return request.getBody().startsWith(XML_HEADER); } }
WilmaHttpEntityUtils { public boolean isXmlMessage(final WilmaHttpEntity request) { return request.getBody().startsWith(XML_HEADER); }  }
WilmaHttpEntityUtils { public boolean isXmlMessage(final WilmaHttpEntity request) { return request.getBody().startsWith(XML_HEADER); }  boolean isJsonMessage(final WilmaHttpEntity request); boolean isXmlMessage(final WilmaHttpEntity request); boolean isSoapMessage(final WilmaHttpEntity request); }
WilmaHttpEntityUtils { public boolean isXmlMessage(final WilmaHttpEntity request) { return request.getBody().startsWith(XML_HEADER); }  boolean isJsonMessage(final WilmaHttpEntity request); boolean isXmlMessage(final WilmaHttpEntity request); boolean isSoapMessage(final WilmaHttpEntity request);  }