Handler han = null;
PhaseHolder ph = new PhaseHolder(inPhase);
HandlerDescription hm = new HandlerDescription();
hm.setClassName("org.apache.axis2.handlers.AbstractHandler");
hm.setHandler(han);
hm.setName(new QName("H1"));
PhaseRule rule = new PhaseRule();
rule.setPhaseName("global");
rule.setPhaseFirst(true);
hm.setRules(rule);
ph.addHandler(hm);
HandlerDescription hm1 = new HandlerDescription();
hm1.setClassName("org.apache.axis2.handlers.AbstractHandler");
hm1.setHandler(han);
hm1.setName(new QName("H2"));
PhaseRule rule1 = new PhaseRule();
rule1.setPhaseName("global");
rule1.setAfter("H1");
hm1.setRules(rule1);
ph.addHandler(hm1);
HandlerDescription hm3 = new HandlerDescription();
hm3.setClassName("org.apache.axis2.handlers.AbstractHandler");
hm3.setHandler(han);
hm3.setName(new QName("H4"));
PhaseRule rule3 = new PhaseRule();
rule3.setPhaseName("Logging");
hm3.setRules(rule3);
ph.addHandler(hm3);
fail("this must failed gracefully with PhaseException ");
} catch (Exception e) {
log.info(e.getMessage());
}