@Test public void testIsSoapMessage() throws Exception { boolean soapResult = underTest.isSoapMessage(requestOf(soapMessage())); boolean jsonResult = underTest.isSoapMessage(requestOf("{\"property\":\"value\"}")); boolean xmlResult = underTest.isSoapMessage(requestOf("<root><child></child></root>")); assertTrue(soapResult); assertFalse(jsonResult); assertFalse(xmlResult); }
public boolean isSoapMessage(final WilmaHttpEntity request) { return request.getBody().contains(SOAP_OPENING_TAG) || request.getBody().contains(SOAP_OPENING_TAG.toLowerCase()); }
WilmaHttpEntityUtils { public boolean isSoapMessage(final WilmaHttpEntity request) { return request.getBody().contains(SOAP_OPENING_TAG) || request.getBody().contains(SOAP_OPENING_TAG.toLowerCase()); } }
WilmaHttpEntityUtils { public boolean isSoapMessage(final WilmaHttpEntity request) { return request.getBody().contains(SOAP_OPENING_TAG) || request.getBody().contains(SOAP_OPENING_TAG.toLowerCase()); }  }
WilmaHttpEntityUtils { public boolean isSoapMessage(final WilmaHttpEntity request) { return request.getBody().contains(SOAP_OPENING_TAG) || request.getBody().contains(SOAP_OPENING_TAG.toLowerCase()); }  boolean isJsonMessage(final WilmaHttpEntity request); boolean isXmlMessage(final WilmaHttpEntity request); boolean isSoapMessage(final WilmaHttpEntity request); }
WilmaHttpEntityUtils { public boolean isSoapMessage(final WilmaHttpEntity request) { return request.getBody().contains(SOAP_OPENING_TAG) || request.getBody().contains(SOAP_OPENING_TAG.toLowerCase()); }  boolean isJsonMessage(final WilmaHttpEntity request); boolean isXmlMessage(final WilmaHttpEntity request); boolean isSoapMessage(final WilmaHttpEntity request);  }