src/test/java/nl/uva/qcdis/sdia/commons/utils/ToscaHelperTest.java
/**
     * Test of getTemplateVMsForVMTopology method, of class ToscaHelper.
     *
     * @throws java.lang.Exception
     */
Test of getTemplateVMsForVMTopology method, of class ToscaHelper.
Test of getTemplateVMsForVMTopology method of class ToscaHelper .
@Test
    public void testGetTemplateVMsForVMTopology() throws Exception {
        if (serviceUp) {
            System.out.println("getTemplateVMsForVMTopology");
            List<NodeTemplateMap> vmTopologyTemplatesMap = instance.getVMTopologyTemplates();
            for (NodeTemplateMap nodeTemplateMap : vmTopologyTemplatesMap) {
                List<NodeTemplateMap> result = instance.getTemplateVMsForVMTopology(nodeTemplateMap);
                for (NodeTemplateMap mvmTopology : result) {
                    assertEquals(VM_TYPE, mvmTopology.getNodeTemplate().getType());
                }
            }
        }
    }
@ Test public void testGetTemplateVMsForVMTopology ( ) throws Exception { if ( serviceUp ) { System . out . println ( "getTemplateVMsForVMTopology" ) ; List < NodeTemplateMap > vmTopologyTemplatesMap = instance . getVMTopologyTemplates ( ) ; for ( NodeTemplateMap nodeTemplateMap : vmTopologyTemplatesMap ) { List < NodeTemplateMap > result = instance . getTemplateVMsForVMTopology ( nodeTemplateMap ) ; for ( NodeTemplateMap mvmTopology : result ) { assertEquals ( VM_TYPE , mvmTopology . getNodeTemplate ( ) . getType ( ) ) ; } } } }
Test of getTemplateVMsForVMTopology method, of class ToscaHelper.
Test of getTemplateVMsForVMTopology method of class ToscaHelper .