Skip to content

Commit

Permalink
test: replace method calls inside assertions with correct ones
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfilep committed Oct 9, 2024
1 parent 76bbd1a commit f244376
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void basic_parameters() throws Exception {
assertThat(parameters.getName().getValueAsString()).isEqualTo("testName");

// Version
assertThat(parameters.getVersionDisplay().getValueAsString()).isEqualTo("testVersion");
assertThat(parameters.getVersion().getValueAsString()).isEqualTo("testVersion");

// Display
assertThat(parameters.getDisplay().getValueAsString()).isEqualTo("testDisplay");
Expand Down Expand Up @@ -123,7 +123,7 @@ public void designation_without_property() throws Exception {
assertThat(parameters.getName().getValueAsString()).isEqualTo("testName");

// Version
assertThat(parameters.getVersionDisplay().getValueAsString()).isEqualTo("testVersion");
assertThat(parameters.getVersion().getValueAsString()).isEqualTo("testVersion");

// Display
assertThat(parameters.getDisplay().getValueAsString()).isEqualTo("testDisplay");
Expand All @@ -137,7 +137,7 @@ public void designation_without_property() throws Exception {
assertThat(parameters.getDesignation().get(0).getUse().getDisplay()).isEqualTo("Display test");

// Designation.value
assertThat(parameters.getDesignation().get(0).getValue()).isEqualTo("testValue");
assertThat(parameters.getDesignation().get(0).getValue().getValue()).isEqualTo("testValue");
}

@Test
Expand Down Expand Up @@ -213,7 +213,7 @@ public void property_without_designation() throws Exception {
assertThat(parameters.getName().getValueAsString()).isEqualTo("testName");

// Version
assertThat(parameters.getVersionDisplay().getValueAsString()).isEqualTo("testVersion");
assertThat(parameters.getVersion().getValueAsString()).isEqualTo("testVersion");

// Display
assertThat(parameters.getDisplay().getValueAsString()).isEqualTo("testDisplay");
Expand Down

0 comments on commit f244376

Please sign in to comment.