src/test/java/nl/uva/qcdis/sdia/commons/utils/ToscaHelperTest.java
/**
     * Test of getVMNMemSize method, of class ToscaHelper.
     */
Test of getVMNMemSize method, of class ToscaHelper.
Test of getVMNMemSize method of class ToscaHelper .
@Test
    public void testGetVMNMemSize() throws Exception {
        if (serviceUp) {
            System.out.println("getVMNMemSize");
            instance.uploadToscaTemplate(provisionedToscaTemplate);
            List<NodeTemplateMap> vmTopologyTemplatesMap = instance.getVMTopologyTemplates();
            for (NodeTemplateMap nodeTemplateMap : vmTopologyTemplatesMap) {
                List<NodeTemplateMap> vmTemplatesMap = instance.getTemplateVMsForVMTopology(nodeTemplateMap);
                for (NodeTemplateMap vmMap : vmTemplatesMap) {
                    Double result = instance.getVMNMemSize(vmMap);
                    assertNotNull(result);
                }
            }
        }
    }
@ Test public void testGetVMNMemSize ( ) throws Exception { if ( serviceUp ) { System . out . println ( "getVMNMemSize" ) ; instance . uploadToscaTemplate ( provisionedToscaTemplate ) ; List < NodeTemplateMap > vmTopologyTemplatesMap = instance . getVMTopologyTemplates ( ) ; for ( NodeTemplateMap nodeTemplateMap : vmTopologyTemplatesMap ) { List < NodeTemplateMap > vmTemplatesMap = instance . getTemplateVMsForVMTopology ( nodeTemplateMap ) ; for ( NodeTemplateMap vmMap : vmTemplatesMap ) { Double result = instance . getVMNMemSize ( vmMap ) ; assertNotNull ( result ) ; } } } }
Test of getVMNMemSize method, of class ToscaHelper.
Test of getVMNMemSize method of class ToscaHelper .