Examples of lookupFaultDetail()


Examples of org.apache.axis.AxisFault.lookupFaultDetail()

        array[0] = createElement("ein","un");
        array[1] = createElement("zwei", "deux");
        af.setFaultDetail(array);
        Element match = af.lookupFaultDetail(new QName(null, "zwei"));
        assertNotNull(match);
        Element old = af.lookupFaultDetail(new QName(null, "string"));
        assertNull(old);
    }

    public void testEmptyArrayAddWorks() {
        AxisFault af = new AxisFault();
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

    public void testEmptyArrayAddWorks() {
        AxisFault af = new AxisFault();
        af.addFaultDetailString("alles geht gut");
        Element array[] = new Element[0];
        af.setFaultDetail(array);
        Element old = af.lookupFaultDetail(new QName(null, "string"));
        assertNull(old);
    }

    public Element createElement(String tag,String child) {
        Document doc = null;
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

     */
    public void testExceptionFillIn() {
        Exception e=new Exception("foo");
        AxisFault af=AxisFault.makeFault(e);
        Element stackTrace;
        stackTrace = af.lookupFaultDetail(Constants.QNAME_FAULTDETAIL_STACKTRACE);
        assertNotNull(stackTrace);
        Element exceptionName;
        exceptionName = af.lookupFaultDetail(Constants.QNAME_FAULTDETAIL_EXCEPTIONNAME);
        assertNull(exceptionName);
        QName faultCode=af.getFaultCode();
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

        AxisFault af=AxisFault.makeFault(e);
        Element stackTrace;
        stackTrace = af.lookupFaultDetail(Constants.QNAME_FAULTDETAIL_STACKTRACE);
        assertNotNull(stackTrace);
        Element exceptionName;
        exceptionName = af.lookupFaultDetail(Constants.QNAME_FAULTDETAIL_EXCEPTIONNAME);
        assertNull(exceptionName);
        QName faultCode=af.getFaultCode();
        assertEquals(faultCode.getLocalPart(), Constants.FAULT_SERVER_USER);
    }
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

    public void testDetailRemoval() {
        Exception e = new Exception("foo");
        AxisFault af = AxisFault.makeFault(e);
        assertTrue(af.removeFaultDetail(Constants.QNAME_FAULTDETAIL_STACKTRACE));
        Element stackTrace;
        stackTrace = af.lookupFaultDetail(Constants.QNAME_FAULTDETAIL_STACKTRACE);
        assertNull(stackTrace);

    }

    /**
 
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

     * in the details
     */
    public void testSubclassProcessing() {
        AxisFault af=new NoEndPointException();
        Element exceptionName;
        exceptionName = af.lookupFaultDetail(Constants.QNAME_FAULTDETAIL_EXCEPTIONNAME);
        assertNotNull(exceptionName);
        String exceptionClassname= XMLUtils.getInnerXMLString(exceptionName);
        assertTrue(exceptionClassname.indexOf("NoEndPointException")>=0);
    }

View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

     * verify we can properly lookup empty namespace stuff
     */
    public void testEmptyNamespaceLookup() {
        AxisFault af=new AxisFault();
        af.addFaultDetailString("alles geht gut");
        Element match=af.lookupFaultDetail(new QName(null,"string"));
        assertNotNull(match);
    }

    public void testArrayAddWorks() {
        AxisFault af = new AxisFault();
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

        af.addFaultDetailString("alles geht gut");
        Element array[]=new Element[2];
        array[0] = createElement("ein","un");
        array[1] = createElement("zwei", "deux");
        af.setFaultDetail(array);
        Element match = af.lookupFaultDetail(new QName(null, "zwei"));
        assertNotNull(match);
        Element old = af.lookupFaultDetail(new QName(null, "string"));
        assertNull(old);
    }
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

        array[0] = createElement("ein","un");
        array[1] = createElement("zwei", "deux");
        af.setFaultDetail(array);
        Element match = af.lookupFaultDetail(new QName(null, "zwei"));
        assertNotNull(match);
        Element old = af.lookupFaultDetail(new QName(null, "string"));
        assertNull(old);
    }

    public void testEmptyArrayAddWorks() {
        AxisFault af = new AxisFault();
View Full Code Here

Examples of org.apache.axis.AxisFault.lookupFaultDetail()

    public void testEmptyArrayAddWorks() {
        AxisFault af = new AxisFault();
        af.addFaultDetailString("alles geht gut");
        Element array[] = new Element[0];
        af.setFaultDetail(array);
        Element old = af.lookupFaultDetail(new QName(null, "string"));
        assertNull(old);
    }

    public Element createElement(String tag,String child) {
        Document doc = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.