try{
// the invoke will throw an exception, if the test is performed right
float total = proxy.getQuote("DF2");
fail( "Expected DerivedFault2_Exception but no fault was thrown ");
}catch(DerivedFault2_Exception e){
DerivedFault2_Exception fault = (DerivedFault2_Exception) e;
DerivedFault2 faultInfo = fault.getFaultInfo();
assertNotNull(faultInfo);
assertEquals(200, faultInfo.getA());
assertEquals("DF2", faultInfo.getB());
assertEquals(80.0F, faultInfo.getC());
} catch (Exception e) {
fail("Wrong exception thrown. Expected DerivedFault1_Exception but received " + e.getClass());
}
// Repeat to verify behavior
try{
// the invoke will throw an exception, if the test is performed right
float total = proxy.getQuote("DF2");
fail( "Expected DerivedFault2_Exception but no fault was thrown ");
}catch(DerivedFault2_Exception e){
DerivedFault2_Exception fault = (DerivedFault2_Exception) e;
DerivedFault2 faultInfo = fault.getFaultInfo();
assertNotNull(faultInfo);
assertEquals(200, faultInfo.getA());
assertEquals("DF2", faultInfo.getB());
assertEquals(80.0F, faultInfo.getC());
} catch (Exception e) {