use of org.killbill.automaton.dot.DefaultStateMachineConfigDOTGenerator in project killbill by killbill.
the class TestDefaultStateMachineConfigDOTGenerator method testStateMachine.
@Test(groups = "fast")
public void testStateMachine() throws Exception {
final DefaultStateMachineConfig sms = XMLLoader.getObjectFromString(Resources.getResource("org/killbill/billing/payment/PaymentStates.xml").toExternalForm(), DefaultStateMachineConfig.class);
final DefaultStateMachineConfigDOTGenerator generator = new DefaultStateMachineConfigDOTGenerator("Payment", sms);
generator.build();
System.out.println(generator.toString());
System.out.flush();
//Files.write((new File("/var/tmp/PaymentStates.dot")).toPath(), generator.toString().getBytes());
}
Aggregations