List of usage examples for org.springframework.ide.eclipse.boot.dash.cloudfoundry.client.v2 CFPushArguments setNoStart
public void setNoStart(boolean noStart)
From source file:org.springframework.ide.eclipse.boot.dash.test.CloudFoundryClientTest.java
@Test public void testGetApplicationCommand() throws Exception { String appName = appHarness.randomAppName(); String command = "something interesting"; CFPushArguments params = new CFPushArguments(); params.setAppName(appName);/*from w w w . j a v a2s. c o m*/ params.setApplicationData(getTestZip("testapp")); params.setBuildpack("staticfile_buildpack"); params.setCommand(command); params.setNoStart(true); // Our command is bogus so starting won't work push(params); //Note we try to get the app two different ways because retrieving the info in // each case is slightly different. { CFApplicationDetail app = client.getApplication(appName); assertEquals(command, app.getCommand()); } { List<CFApplication> allApps = client.getApplicationsWithBasicInfo(); CFApplication app = null; for (CFApplication a : allApps) { if (a.getName().equals(appName)) { app = a; } } assertEquals(command, app.getCommand()); } }