diff --git a/wls-monitoring-service/src/main/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModel.java b/wls-monitoring-service/src/main/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModel.java index e93c2885..f3f8fdfd 100644 --- a/wls-monitoring-service/src/main/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModel.java +++ b/wls-monitoring-service/src/main/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModel.java @@ -8,6 +8,6 @@ @Builder public record WaehleranzahlModel( @NotNull BezirkUndWahlID bezirkUndWahlID, - @NotNull Long anzahlWaehler, + @NotNull long anzahlWaehler, @NotNull LocalDateTime uhrzeit) { } diff --git a/wls-monitoring-service/src/test/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModelMapperTest.java b/wls-monitoring-service/src/test/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModelMapperTest.java index fda1be55..0e587b89 100644 --- a/wls-monitoring-service/src/test/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModelMapperTest.java +++ b/wls-monitoring-service/src/test/java/de/muenchen/oss/wahllokalsystem/monitoringservice/service/waehleranzahl/WaehleranzahlModelMapperTest.java @@ -17,7 +17,7 @@ void should_returnEqualWaehleranzahlModel_when_waehleranzahlIsMapped() { val wahlID = "wahlID01"; val wahlbezirkID = "wahlbezirkID01"; BezirkUndWahlID bezirkUndWahlID = new BezirkUndWahlID(wahlID, wahlbezirkID); - val anzahlWaehler = 99L; + val anzahlWaehler = 99; LocalDateTime uhrzeit = LocalDateTime.now(); val waehleranzahlEntity = new Waehleranzahl(bezirkUndWahlID, anzahlWaehler, uhrzeit); @@ -33,7 +33,7 @@ void should_returnEqualWaehleranzahl_when_waehleranzahlModelIsMapped() { val wahlID = "wahlID01"; val wahlbezirkID = "wahlbezirkID01"; BezirkUndWahlID bezirkUndWahlID = new BezirkUndWahlID(wahlID, wahlbezirkID); - val anzahlWaehler = 99L; + val anzahlWaehler = 99; LocalDateTime uhrzeit = LocalDateTime.now(); val waehleranzahlModel = new WaehleranzahlModel(bezirkUndWahlID, anzahlWaehler, uhrzeit);