src/test/java/nl/uva/qcdis/sdia/commons/utils/ToscaHelperTest.java
/**
     * Test of cloudStormStatus2NodeState method, of class ToscaHelper.
     */
Test of cloudStormStatus2NodeState method, of class ToscaHelper.
Test of cloudStormStatus2NodeState method of class ToscaHelper .
@Test
    public void testCloudStormStatus2NodeState() {
        System.out.println("cloudStormStatus2NodeState");
        for (CloudsStormSubTopology.StatusEnum value : CloudsStormSubTopology.StatusEnum.values()) {
            Constants.NODE_STATES result = ToscaHelper.cloudStormStatus2NodeState(value);
            if (value.equals(CloudsStormSubTopology.StatusEnum.FRESH)) {
                assertNull(result);
            } else {
                assertEquals(value.toString().toUpperCase(), result.toString().toUpperCase());
            }
        }
    }
@ Test public void testCloudStormStatus2NodeState ( ) { System . out . println ( "cloudStormStatus2NodeState" ) ; for ( CloudsStormSubTopology . StatusEnum value : CloudsStormSubTopology . StatusEnum . values ( ) ) { Constants . NODE_STATES result = ToscaHelper . cloudStormStatus2NodeState ( value ) ; if ( value . equals ( CloudsStormSubTopology . StatusEnum . FRESH ) ) { assertNull ( result ) ; } else { assertEquals ( value . toString ( ) . toUpperCase ( ) , result . toString ( ) . toUpperCase ( ) ) ; } } }
Test of cloudStormStatus2NodeState method, of class ToscaHelper.
Test of cloudStormStatus2NodeState method of class ToscaHelper .