mirror of
https://github.com/pcvolkmer/mv64e-onkostar-data.git
synced 2025-09-13 16:02:52 +00:00
test: check if latest consent version has been used
This commit is contained in:
@@ -86,9 +86,16 @@ class ConsentMvDataMapperTest {
|
|||||||
ResultSet.from(
|
ResultSet.from(
|
||||||
Map.of(
|
Map.of(
|
||||||
"id", "1",
|
"id", "1",
|
||||||
"date", new java.sql.Date(Date.from(Instant.parse("2025-07-12T12:00:00Z")).getTime()),
|
"date", new java.sql.Date(Date.from(Instant.parse("2025-07-11T12:00:00Z")).getTime()),
|
||||||
"version", "01"
|
"version", "01"
|
||||||
)
|
)
|
||||||
|
),
|
||||||
|
ResultSet.from(
|
||||||
|
Map.of(
|
||||||
|
"id", "1",
|
||||||
|
"date", new java.sql.Date(Date.from(Instant.parse("2025-07-12T12:00:00Z")).getTime()),
|
||||||
|
"version", "02"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -98,7 +105,7 @@ class ConsentMvDataMapperTest {
|
|||||||
var actual = this.dataMapper.getById(1);
|
var actual = this.dataMapper.getById(1);
|
||||||
assertThat(actual).isInstanceOf(ModelProjectConsent.class);
|
assertThat(actual).isInstanceOf(ModelProjectConsent.class);
|
||||||
assertThat(actual.getDate()).isEqualTo(Date.from(Instant.parse("2025-07-12T00:00:00Z")));
|
assertThat(actual.getDate()).isEqualTo(Date.from(Instant.parse("2025-07-12T00:00:00Z")));
|
||||||
assertThat(actual.getVersion()).isEqualTo("01");
|
assertThat(actual.getVersion()).isEqualTo("02");
|
||||||
assertThat(actual.getProvisions()).hasSize(3);
|
assertThat(actual.getProvisions()).hasSize(3);
|
||||||
assertThat(actual.getProvisions()).containsAll(
|
assertThat(actual.getProvisions()).containsAll(
|
||||||
List.of(
|
List.of(
|
||||||
|
Reference in New Issue
Block a user