Skip to content

Commit

Permalink
Fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Jun 29, 2023
1 parent 98ec6dc commit d1b8611
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ public void deserializationTest() {
assertThat(cfAccounts.get("dev").getDeployment().getMemory()).isEqualTo("512m");
assertThat(cfAccounts.get("dev").getDeployment().getDisk()).isEqualTo("2048m");
assertThat(cfAccounts.get("dev").getDeployment().getInstances()).isEqualTo(4);
assertThat(cfAccounts.get("dev").getDeployment().getAppNamePrefix().equals("dev1"));
assertThat(cfAccounts.get("dev").getDeployment().getAppNamePrefix()).isEqualTo("dev1");
assertThat(cfAccounts.get("dev").getDeployment().getServices())
.containsExactly("rabbit", "mysql");
.containsOnly("rabbit", "mysql");

assertThat(cfAccounts.get("qa").getConnection().getOrg()).isEqualTo("myOrgQA");
assertThat(cfAccounts.get("qa").getConnection().getClientId()).isEqualTo("id2");
assertThat(cfAccounts.get("qa").getConnection().getClientSecret()).isEqualTo("secret2");
assertThat(cfAccounts.get("qa").getDeployment().getMemory()).isEqualTo("756m");
assertThat(cfAccounts.get("qa").getDeployment().getDisk()).isEqualTo("724m");
assertThat(cfAccounts.get("qa").getDeployment().getInstances()).isEqualTo(2);
assertThat(cfAccounts.get("qa").getDeployment().getAppNamePrefix().equals("qa1"));
assertThat(cfAccounts.get("qa").getDeployment().getAppNamePrefix()).isEqualTo("qa1");
assertThat(cfAccounts.get("qa").getDeployment().getServices())
.containsExactly("rabbitQA", "mysqlQA");
.containsOnly("rabbitQA", "mysqlQA");
}

@Configuration
Expand Down

0 comments on commit d1b8611

Please sign in to comment.