@Test void testIfBuildGuidDoesNotExist() { StagingState stagingState = applicationStager.getStagingState(); assertEquals(PackageState.STAGED, stagingState.getState()); assertNull(stagingState.getError()); }
public StagingState getStagingState() { UUID buildGuid = context.getVariable(Variables.BUILD_GUID); if (buildGuid == null) { return ImmutableStagingState.builder() .state(PackageState.STAGED) .build(); } CloudBuild build = getBuild(buildGuid); return getStagingState(build); }
ApplicationStager { public StagingState getStagingState() { UUID buildGuid = context.getVariable(Variables.BUILD_GUID); if (buildGuid == null) { return ImmutableStagingState.builder() .state(PackageState.STAGED) .build(); } CloudBuild build = getBuild(buildGuid); return getStagingState(build); } }
ApplicationStager { public StagingState getStagingState() { UUID buildGuid = context.getVariable(Variables.BUILD_GUID); if (buildGuid == null) { return ImmutableStagingState.builder() .state(PackageState.STAGED) .build(); } CloudBuild build = getBuild(buildGuid); return getStagingState(build); } ApplicationStager(ProcessContext context); }
ApplicationStager { public StagingState getStagingState() { UUID buildGuid = context.getVariable(Variables.BUILD_GUID); if (buildGuid == null) { return ImmutableStagingState.builder() .state(PackageState.STAGED) .build(); } CloudBuild build = getBuild(buildGuid); return getStagingState(build); } ApplicationStager(ProcessContext context); StagingState getStagingState(); boolean isApplicationStagedCorrectly(CloudApplication app); void bindDropletToApplication(UUID appGuid); StepPhase stageApp(CloudApplication app); }
ApplicationStager { public StagingState getStagingState() { UUID buildGuid = context.getVariable(Variables.BUILD_GUID); if (buildGuid == null) { return ImmutableStagingState.builder() .state(PackageState.STAGED) .build(); } CloudBuild build = getBuild(buildGuid); return getStagingState(build); } ApplicationStager(ProcessContext context); StagingState getStagingState(); boolean isApplicationStagedCorrectly(CloudApplication app); void bindDropletToApplication(UUID appGuid); StepPhase stageApp(CloudApplication app);  }