src/test/java/nl/uva/qcdis/sdia/commons/utils/ToscaHelperTest.java
/**
     * Test of getSupportedProvisionInterfaceDefinitions method, of class
     * ToscaHelper.
     *
     * @throws nl.uva.qcdis.sdia.sure.tosca.client.ApiException
     */
Test of getSupportedProvisionInterfaceDefinitions method, of class
ToscaHelper.


Test of getSupportedProvisionInterfaceDefinitions method of class ToscaHelper .
@Test
    public void testGetProvisionInterfaceDefinitions() throws ApiException {
        if (serviceUp) {
            System.out.println("getProvisionInterfaceDefinitions");
            String expected = CLOUD_STORM_INTERFACE;
            List<String> toscaInterfaceTypes = new ArrayList<>();
            toscaInterfaceTypes.add(expected);
            List<Map<String, Object>> result = instance.getProvisionInterfaceDefinitions(toscaInterfaceTypes);
            assertNotNull(result);
            String key = result.get(0).keySet().iterator().next();
        }
    }
@ Test public void testGetProvisionInterfaceDefinitions ( ) throws ApiException { if ( serviceUp ) { System . out . println ( "getProvisionInterfaceDefinitions" ) ; String expected = CLOUD_STORM_INTERFACE ; List < String > toscaInterfaceTypes = new ArrayList < > ( ) ; toscaInterfaceTypes . add ( expected ) ; List < Map < String , Object > > result = instance . getProvisionInterfaceDefinitions ( toscaInterfaceTypes ) ; assertNotNull ( result ) ; String key = result . get ( 0 ) . keySet ( ) . iterator ( ) . next ( ) ; } }
Test of getSupportedProvisionInterfaceDefinitions method, of class
 ToscaHelper.
Test of getSupportedProvisionInterfaceDefinitions method of class ToscaHelper .
//            assertEquals(expected, key);