@Test public void shouldDetermineExposureWhen3scaleIsEnabled() { final OpenShiftConfigurationProperties properties = new OpenShiftConfigurationProperties(); properties.setManagementUrlFor3scale("https: final ExposureDeploymentDataCustomizer customizer = new ExposureDeploymentDataCustomizer(new ExposureHelper(properties)); assertThat(customizer.determineExposure(exposedIntegration)).containsOnly(Exposure.SERVICE, Exposure._3SCALE); }
EnumSet<Exposure> determineExposure(final IntegrationDeployment integrationDeployment) { if (integrationDeployment.getSpec().isExposable()) { return exposureHelper.determineExposure(integrationDeployment.getSpec().getExposure()); } return EnumSet.noneOf(Exposure.class); }
ExposureDeploymentDataCustomizer implements DeploymentDataCustomizer { EnumSet<Exposure> determineExposure(final IntegrationDeployment integrationDeployment) { if (integrationDeployment.getSpec().isExposable()) { return exposureHelper.determineExposure(integrationDeployment.getSpec().getExposure()); } return EnumSet.noneOf(Exposure.class); } }
ExposureDeploymentDataCustomizer implements DeploymentDataCustomizer { EnumSet<Exposure> determineExposure(final IntegrationDeployment integrationDeployment) { if (integrationDeployment.getSpec().isExposable()) { return exposureHelper.determineExposure(integrationDeployment.getSpec().getExposure()); } return EnumSet.noneOf(Exposure.class); } ExposureDeploymentDataCustomizer(ExposureHelper exposureHelper); }
ExposureDeploymentDataCustomizer implements DeploymentDataCustomizer { EnumSet<Exposure> determineExposure(final IntegrationDeployment integrationDeployment) { if (integrationDeployment.getSpec().isExposable()) { return exposureHelper.determineExposure(integrationDeployment.getSpec().getExposure()); } return EnumSet.noneOf(Exposure.class); } ExposureDeploymentDataCustomizer(ExposureHelper exposureHelper); @Override DeploymentData customize(final DeploymentData data, final IntegrationDeployment integrationDeployment); }
ExposureDeploymentDataCustomizer implements DeploymentDataCustomizer { EnumSet<Exposure> determineExposure(final IntegrationDeployment integrationDeployment) { if (integrationDeployment.getSpec().isExposable()) { return exposureHelper.determineExposure(integrationDeployment.getSpec().getExposure()); } return EnumSet.noneOf(Exposure.class); } ExposureDeploymentDataCustomizer(ExposureHelper exposureHelper); @Override DeploymentData customize(final DeploymentData data, final IntegrationDeployment integrationDeployment);  }