AxiomSoapFaultDetail extends AxiomSoapElement implements SoapFaultDetail { @Override @SuppressWarnings("unchecked") public Iterator<SoapFaultDetailElement> getDetailEntries() { return new AxiomSoapFaultDetailElementIterator(getAxiomFaultDetail().getChildElements()); } AxiomSoapFaultDetail(SOAPFaultDetail axiomFaultDetail, SOAPFactory axiomFactory); @Override SoapFaultDetailElement addFaultDetailElement(QName name); @Override @SuppressWarnings("unchecked") Iterator<SoapFaultDetailElement> getDetailEntries(); @Override Result getResult();  }
@Test public void testGetDetailEntriesWorksWithWhitespaceNodes() throws Exception { SoapFault fault = failingMessage.getSoapBody().getFault(); Assert.assertNotNull("Fault is null", fault); Assert.assertNotNull("Fault detail is null", fault.getFaultDetail()); SoapFaultDetail detail = fault.getFaultDetail(); Assert.assertTrue("No next detail entry present", detail.getDetailEntries().hasNext()); detail.getDetailEntries().next(); }
@Test public void testGetDetailEntriesWorksWithoutWhitespaceNodes() throws Exception { SoapFault fault = succeedingMessage.getSoapBody().getFault(); Assert.assertNotNull("Fault is null", fault); Assert.assertNotNull("Fault detail is null", fault.getFaultDetail()); SoapFaultDetail detail = fault.getFaultDetail(); Assert.assertTrue("No next detail entry present", detail.getDetailEntries().hasNext()); detail.getDetailEntries().next(); }