Skip to content

Commit

Permalink
revise tests to match maxMeanPrice, minMeanPrice field removals
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-J-Mason committed Jul 18, 2024
1 parent ef07b10 commit 92c378b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ public void testMap_givenEntity_shouldReturnDomainObject() {
.maxSellPrice(200.0)
.minSellPrice(100.0)
.avgSellPrice(150.0)
.minMeanPrice(60.0)
.maxMeanPrice(180.0)
.averageMeanPrice(120.0)
.meanPrice(120.0)
.totalStock(1000L)
.totalDemand(500L)
.totalStations(10)
Expand All @@ -80,9 +78,7 @@ public void testMap_givenEntity_shouldReturnDomainObject() {
assertThat(result.maxSellPrice(), is(200.0));
assertThat(result.minSellPrice(), is(100.0));
assertThat(result.avgSellPrice(), is(150.0));
assertThat(result.minMeanPrice(), is(60.0));
assertThat(result.maxMeanPrice(), is(180.0));
assertThat(result.averageMeanPrice(), is(120.0));
assertThat(result.meanPrice(), is(120.0));
assertThat(result.totalStock(), is(1000L));
assertThat(result.totalDemand(), is(500L));
assertThat(result.totalStations(), is(10));
Expand Down Expand Up @@ -114,8 +110,6 @@ public void testMap_givenDomainObject_shouldReturnEntity() {
200.0,
100.0,
150.0,
60.0,
180.0,
120.0,
1000L,
500L,
Expand Down Expand Up @@ -143,9 +137,7 @@ public void testMap_givenDomainObject_shouldReturnEntity() {
assertThat(result.getMaxSellPrice(), is(200.0));
assertThat(result.getMinSellPrice(), is(100.0));
assertThat(result.getAvgSellPrice(), is(150.0));
assertThat(result.getMinMeanPrice(), is(60.0));
assertThat(result.getMaxMeanPrice(), is(180.0));
assertThat(result.getAverageMeanPrice(), is(120.0));
assertThat(result.getMeanPrice(), is(120.0));
assertThat(result.getTotalStock(), is(1000L));
assertThat(result.getTotalDemand(), is(500L));
assertThat(result.getTotalStations(), is(10));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public void testMap_givenDomainObject_shouldReturnDto() {
200.0,
100.0,
150.0,
60.0,
180.0,
120.0,
1000L,
500L,
Expand All @@ -77,9 +75,7 @@ public void testMap_givenDomainObject_shouldReturnDto() {
assertThat(dto.maxSellPrice(), is(200.0));
assertThat(dto.minSellPrice(), is(100.0));
assertThat(dto.avgSellPrice(), is(150.0));
assertThat(dto.minMeanPrice(), is(60.0));
assertThat(dto.maxMeanPrice(), is(180.0));
assertThat(dto.averageMeanPrice(), is(120.0));
assertThat(dto.meanPrice(), is(120.0));
assertThat(dto.totalStock(), is(1000L));
assertThat(dto.totalDemand(), is(500L));
assertThat(dto.totalStations(), is(10));
Expand Down

0 comments on commit 92c378b

Please sign in to comment.