Merge pull request #9747 from ihrigb:dev/hcp-rename

* pr/9747:
  Polish "Rename HCP to SAP"
  Rename HCP to SAP
pull/9747/merge
Stephane Nicoll 7 years ago
commit 5416eac620

@ -54,9 +54,9 @@ public enum CloudPlatform {
}, },
/** /**
* SAP Hana Cloud platform. * SAP Cloud platform.
*/ */
HCP { SAP {
@Override @Override
public boolean isActive(Environment environment) { public boolean isActive(Environment environment) {

@ -72,11 +72,11 @@ public class CloudPlatformTests {
} }
@Test @Test
public void getActiveWhenHasHcLandscapeShouldReturnHcp() throws Exception { public void getActiveWhenHasHcLandscapeShouldReturnSap() throws Exception {
Environment environment = new MockEnvironment().withProperty("HC_LANDSCAPE", Environment environment = new MockEnvironment().withProperty("HC_LANDSCAPE",
"---"); "---");
CloudPlatform platform = CloudPlatform.getActive(environment); CloudPlatform platform = CloudPlatform.getActive(environment);
assertThat(platform).isEqualTo(CloudPlatform.HCP); assertThat(platform).isEqualTo(CloudPlatform.SAP);
assertThat(platform.isActive(environment)).isTrue(); assertThat(platform.isActive(environment)).isTrue();
} }

Loading…
Cancel
Save