@Test void testStageAppIfThereIsNoCloudPacakge() { context.setVariable(Variables.CLOUD_PACKAGE, null); assertEquals(StepPhase.DONE, applicationStager.stageApp(null)); }
public StepPhase stageApp(CloudApplication app) { CloudPackage cloudPackage = context.getVariable(Variables.CLOUD_PACKAGE); if (cloudPackage == null) { return StepPhase.DONE; } logger.info(Messages.STAGING_APP, app.getName()); return createBuild(cloudPackage.getGuid()); }
ApplicationStager { public StepPhase stageApp(CloudApplication app) { CloudPackage cloudPackage = context.getVariable(Variables.CLOUD_PACKAGE); if (cloudPackage == null) { return StepPhase.DONE; } logger.info(Messages.STAGING_APP, app.getName()); return createBuild(cloudPackage.getGuid()); } }
ApplicationStager { public StepPhase stageApp(CloudApplication app) { CloudPackage cloudPackage = context.getVariable(Variables.CLOUD_PACKAGE); if (cloudPackage == null) { return StepPhase.DONE; } logger.info(Messages.STAGING_APP, app.getName()); return createBuild(cloudPackage.getGuid()); } ApplicationStager(ProcessContext context); }
ApplicationStager { public StepPhase stageApp(CloudApplication app) { CloudPackage cloudPackage = context.getVariable(Variables.CLOUD_PACKAGE); if (cloudPackage == null) { return StepPhase.DONE; } logger.info(Messages.STAGING_APP, app.getName()); return createBuild(cloudPackage.getGuid()); } ApplicationStager(ProcessContext context); StagingState getStagingState(); boolean isApplicationStagedCorrectly(CloudApplication app); void bindDropletToApplication(UUID appGuid); StepPhase stageApp(CloudApplication app); }
ApplicationStager { public StepPhase stageApp(CloudApplication app) { CloudPackage cloudPackage = context.getVariable(Variables.CLOUD_PACKAGE); if (cloudPackage == null) { return StepPhase.DONE; } logger.info(Messages.STAGING_APP, app.getName()); return createBuild(cloudPackage.getGuid()); } ApplicationStager(ProcessContext context); StagingState getStagingState(); boolean isApplicationStagedCorrectly(CloudApplication app); void bindDropletToApplication(UUID appGuid); StepPhase stageApp(CloudApplication app);  }