@Test public void testLoad() throws EntityNotFoundException { ApplicationInstance app = new ApplicationInstance(); when(applicationInstanceManager.load(any(String.class), any(String.class))).thenReturn(app); ApplicationInstance apps = applicationInstanceResource.load(vdc, "environment", "APP"); assertNotNull(apps); }
public ApplicationInstance load(String vdc, String enviroment, String name) { try { ApplicationInstance appInstance = applicationInstanceManager.load(vdc, name); return appInstance; } catch (EntityNotFoundException e) { throw new WebApplicationException(e, 404); } }
ApplicationInstanceResourceImpl implements ApplicationInstanceResource { public ApplicationInstance load(String vdc, String enviroment, String name) { try { ApplicationInstance appInstance = applicationInstanceManager.load(vdc, name); return appInstance; } catch (EntityNotFoundException e) { throw new WebApplicationException(e, 404); } } }
ApplicationInstanceResourceImpl implements ApplicationInstanceResource { public ApplicationInstance load(String vdc, String enviroment, String name) { try { ApplicationInstance appInstance = applicationInstanceManager.load(vdc, name); return appInstance; } catch (EntityNotFoundException e) { throw new WebApplicationException(e, 404); } }  }
ApplicationInstanceResourceImpl implements ApplicationInstanceResource { public ApplicationInstance load(String vdc, String enviroment, String name) { try { ApplicationInstance appInstance = applicationInstanceManager.load(vdc, name); return appInstance; } catch (EntityNotFoundException e) { throw new WebApplicationException(e, 404); } }  Task install(String org, String vdc, String environmentInstance,

    ApplicationReleaseDto applicationReleaseDto, String callback); List<ApplicationInstance> findAll(Integer page, Integer pageSize, String orderBy, String orderType,
            List<Status> status, String vdc, String environmentInstance, String productInstanceName,
            String applicationName); Task uninstall(String org, String vdc, String environmentName, String applicationName, String callback); ApplicationInstance load(String vdc, String enviroment, String name); void setValidator(ApplicationInstanceResourceValidator validator); void setEnvironmentInstanceAsyncManager(EnvironmentInstanceAsyncManager environmentInstanceAsyncManager); void setEnvironmentInstanceManager(EnvironmentInstanceManager environmentInstanceManager); void setTaskManager(TaskManager taskManager); void setApplicationInstanceAsyncManager(ApplicationInstanceAsyncManager applicationInstanceAsyncManager); void setApplicationInstanceManager(ApplicationInstanceManager applicationInstanceManager); void setApplicationReleaseManager(ApplicationReleaseManager applicationReleaseManager); }
ApplicationInstanceResourceImpl implements ApplicationInstanceResource { public ApplicationInstance load(String vdc, String enviroment, String name) { try { ApplicationInstance appInstance = applicationInstanceManager.load(vdc, name); return appInstance; } catch (EntityNotFoundException e) { throw new WebApplicationException(e, 404); } }  Task install(String org, String vdc, String environmentInstance,

    ApplicationReleaseDto applicationReleaseDto, String callback); List<ApplicationInstance> findAll(Integer page, Integer pageSize, String orderBy, String orderType,
            List<Status> status, String vdc, String environmentInstance, String productInstanceName,
            String applicationName); Task uninstall(String org, String vdc, String environmentName, String applicationName, String callback); ApplicationInstance load(String vdc, String enviroment, String name); void setValidator(ApplicationInstanceResourceValidator validator); void setEnvironmentInstanceAsyncManager(EnvironmentInstanceAsyncManager environmentInstanceAsyncManager); void setEnvironmentInstanceManager(EnvironmentInstanceManager environmentInstanceManager); void setTaskManager(TaskManager taskManager); void setApplicationInstanceAsyncManager(ApplicationInstanceAsyncManager applicationInstanceAsyncManager); void setApplicationInstanceManager(ApplicationInstanceManager applicationInstanceManager); void setApplicationReleaseManager(ApplicationReleaseManager applicationReleaseManager);  }