@Test(expected = IllegalArgumentException.class) public void testSetOutcomeWithInvalidIntValue() { JmsDefaultRedeliveryPolicy policy = new JmsDefaultRedeliveryPolicy(); policy.setOutcome(100); }
public void setOutcome(int outcome) { this.outcome = OUTCOME.getMappedOutcome(outcome).getOutcomeOrdinal(); }
JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy { public void setOutcome(int outcome) { this.outcome = OUTCOME.getMappedOutcome(outcome).getOutcomeOrdinal(); } }
JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy { public void setOutcome(int outcome) { this.outcome = OUTCOME.getMappedOutcome(outcome).getOutcomeOrdinal(); } JmsDefaultRedeliveryPolicy();  JmsDefaultRedeliveryPolicy(JmsDefaultRedeliveryPolicy source); }
JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy { public void setOutcome(int outcome) { this.outcome = OUTCOME.getMappedOutcome(outcome).getOutcomeOrdinal(); } JmsDefaultRedeliveryPolicy();  JmsDefaultRedeliveryPolicy(JmsDefaultRedeliveryPolicy source); @Override JmsDefaultRedeliveryPolicy copy(); @Override int getMaxRedeliveries(JmsDestination destination); @Override int getOutcome(JmsDestination destination); int getOutcome(); void setOutcome(int outcome); void setOutcome(String outcome); int getMaxRedeliveries(); void setMaxRedeliveries(int maxRedeliveries); @Override int hashCode(); @Override boolean equals(Object obj); }
JmsDefaultRedeliveryPolicy implements JmsRedeliveryPolicy { public void setOutcome(int outcome) { this.outcome = OUTCOME.getMappedOutcome(outcome).getOutcomeOrdinal(); } JmsDefaultRedeliveryPolicy();  JmsDefaultRedeliveryPolicy(JmsDefaultRedeliveryPolicy source); @Override JmsDefaultRedeliveryPolicy copy(); @Override int getMaxRedeliveries(JmsDestination destination); @Override int getOutcome(JmsDestination destination); int getOutcome(); void setOutcome(int outcome); void setOutcome(String outcome); int getMaxRedeliveries(); void setMaxRedeliveries(int maxRedeliveries); @Override int hashCode(); @Override boolean equals(Object obj); static final int DEFAULT_MAX_REDELIVERIES; static final int DEFAULT_OUTCOME; }