List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client CFApplication getServices
List<String> getServices();
From source file:org.springframework.ide.eclipse.boot.dash.test.CloudFoundryClientTest.java
@Test public void testGetBoundServices() throws Exception { RetryUtil.retryWhen("testGetBoundServices", 5, FLAKY_SERVICE_BROKER, () -> { String service1 = services.createTestService(); String service2 = services.createTestService(); String service3 = services.createTestService(); String appName = appHarness.randomAppName(); CFPushArguments params = new CFPushArguments(); params.setAppName(appName);/* w w w. ja va2 s . c om*/ params.setApplicationData(getTestZip("testapp")); params.setBuildpack("staticfile_buildpack"); params.setServices(ImmutableList.of(service1, service2)); push(params); List<CFApplication> allApps = client.getApplicationsWithBasicInfo(); CFApplication app = null; for (CFApplication a : allApps) { if (a.getName().equals(appName)) { app = a; } } assertEquals(ImmutableSet.of(service1, service2), ImmutableSet.copyOf(app.getServices())); app = client.getApplication(appName); assertEquals(ImmutableSet.of(service1, service2), ImmutableSet.copyOf(app.getServices())); }); }