src/test/java/nl/uva/qcdis/sdia/commons/utils/ToscaHelperTest.java
/**
     * Test of getVMTopologyTemplates method, of class ToscaHelper.
     *
     * @throws nl.uva.qcdis.sdia.sure.tosca.client.ApiException
     */
Test of getVMTopologyTemplates method, of class ToscaHelper.
Test of getVMTopologyTemplates method of class ToscaHelper .
@Test
    public void testGetVMTopologyTemplates() throws ApiException {
        if (serviceUp) {
            System.out.println("getVMTopologyTemplates");
            List<NodeTemplateMap> result = instance.getVMTopologyTemplates();
            assertNotNull(result);
            for (NodeTemplateMap nodeTemplateMap : result) {
                assertEquals(nodeTemplateMap.getNodeTemplate().getType(), VM_TOPOLOGY);
            }
        }
    }
@ Test public void testGetVMTopologyTemplates ( ) throws ApiException { if ( serviceUp ) { System . out . println ( "getVMTopologyTemplates" ) ; List < NodeTemplateMap > result = instance . getVMTopologyTemplates ( ) ; assertNotNull ( result ) ; for ( NodeTemplateMap nodeTemplateMap : result ) { assertEquals ( nodeTemplateMap . getNodeTemplate ( ) . getType ( ) , VM_TOPOLOGY ) ; } } }
Test of getVMTopologyTemplates method, of class ToscaHelper.
Test of getVMTopologyTemplates method of class ToscaHelper .