Пример #1
0
 @Validated
 @Test
 public void testSetFaultNode() throws Exception {
   SOAPFault fault = createEmptySOAPFault();
   fault.setFaultNode("urn:mynode");
   Element child = (Element) fault.getFirstChild();
   assertEquals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, child.getNamespaceURI());
   assertEquals("Node", child.getLocalName());
 }
Пример #2
0
 @Validated
 @Test
 public final void testSetFaultString() throws Exception {
   SOAPFault fault = createEmptySOAPFault();
   fault.setFaultString("test");
   Node child = fault.getFirstChild();
   assertTrue(child instanceof SOAPFaultElement);
   checkFaultStringElement((SOAPFaultElement) child);
 }