use of org.killbill.billing.payment.glue.PaymentModule.StateMachineProvider in project killbill by killbill.
the class TestStateMachineProvider method testStateMachineProvider.
@Test(groups = "fast", description = "https://github.com/killbill/killbill/issues/226")
public void testStateMachineProvider() throws Exception {
final StateMachineProvider retryStateMachineProvider = new StateMachineProvider(PaymentModule.DEFAULT_STATE_MACHINE_RETRY_XML);
final StateMachineConfig retryStateMachineConfig = retryStateMachineProvider.get();
Assert.assertEquals(retryStateMachineConfig.getStateMachines().length, 1);
final StateMachineProvider paymentStateMachineProvider = new StateMachineProvider(PaymentModule.DEFAULT_STATE_MACHINE_PAYMENT_XML);
final StateMachineConfig paymentStateMachineConfig = paymentStateMachineProvider.get();
Assert.assertEquals(paymentStateMachineConfig.getStateMachines().length, 8);
}
Aggregations