Example usage for org.apache.commons.scxml.model TransitionTarget TransitionTarget

List of usage examples for org.apache.commons.scxml.model TransitionTarget TransitionTarget

Introduction

In this page you can find the example usage for org.apache.commons.scxml.model TransitionTarget TransitionTarget.

Prototype

public TransitionTarget() 

Source Link

Document

Constructor.

Usage

From source file:org.finra.datagenerator.engine.scxml.PossibleStateTest.java

/**
 * Possible state is a value object tracking a TransitionTarget and a Map of variable/value pairs
 *///ww  w.j  a  v  a2s .  c om
@Test
public void constructorTest() {
    TransitionTarget dummyState = new TransitionTarget() {
    };
    dummyState.setId("Dummy State");
    Map<String, String> variables = new HashMap<>();
    PossibleState testState = new PossibleState(dummyState, variables);

    Assert.assertSame(dummyState, testState.nextState);
    Assert.assertSame(variables, testState.variables);
}

From source file:org.finra.datagenerator.engine.scxml.PossibleStateTest.java

/**
 * Custom toString() method/*w  w w .  j av a  2  s.  c  om*/
 */
@Test
public void toStringTest() {
    TransitionTarget dummyState = new TransitionTarget() {
    };
    dummyState.setId("Dummy State");
    Map<String, String> variables = new HashMap<>();
    PossibleState testState = new PossibleState(dummyState, variables);

    Assert.assertEquals("<Dummy State;{}>", testState.toString());
}