Package org.objectweb.hello_world_doc_lit.types

Examples of org.objectweb.hello_world_doc_lit.types.FaultDetail


        for (int idx = 0; idx < 10; idx++) {
            try {
                greeter.pingMe();
                fail("Should have thrown a PingMeFault exception");
            } catch (PingMeFault pmf) {
                FaultDetail fd = pmf.getFaultInfo();
                assertNotNull("FaultDetail should havea valid value", fd);
                assertEquals(2, fd.getMajor());
                assertEquals(1, fd.getMinor());
            }
        }
    }
View Full Code Here


    public String sayHi() {
        return "Bonjour";
    }

    public void pingMe() throws PingMeFault {
        FaultDetail fd = new FaultDetail();
        fd.setMajor((short)2);
        fd.setMinor((short)1);
        throw new PingMeFault("Test Exception", fd);
    }
View Full Code Here

TOP

Related Classes of org.objectweb.hello_world_doc_lit.types.FaultDetail

Copyright © 2018 www.massapicom. 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.