From 767dccd5df6f20103f87d537c766c005e1c3c5fd Mon Sep 17 00:00:00 2001 From: Thomas Schreiber Date: Tue, 27 Feb 2024 14:46:52 +0100 Subject: [PATCH] accept LONG cell locations --- .../java/at/rtr/rmbt/mapper/impl/CellLocationMapperImpl.java | 2 +- src/main/java/at/rtr/rmbt/request/CellLocationRequest.java | 2 +- .../at/rtr/rmbt/mapper/impl/CellLocationMapperImplTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImpl.java b/src/main/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImpl.java index 8f7e4b5..325bb86 100644 --- a/src/main/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImpl.java +++ b/src/main/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImpl.java @@ -16,7 +16,7 @@ public CellLocation cellLocationRequestToCellLocation(CellLocationRequest cellLo .test(test) .openTestUUID(test.getOpenTestUuid()) .areaCode(cellLocationRequest.getAreaCode()) - .locationId(cellLocationRequest.getLocationId()) + .locationId(cellLocationRequest.getLocationId().intValue()) .primaryScramblingCode(cellLocationRequest.getPrimaryScramblingCode()) .time(TimeUtils.getZonedDateTimeFromMillisAndTimezone(cellLocationRequest.getTime(), test.getTimezone())) .timeNs(cellLocationRequest.getTimeNs()) diff --git a/src/main/java/at/rtr/rmbt/request/CellLocationRequest.java b/src/main/java/at/rtr/rmbt/request/CellLocationRequest.java index 928ab56..f8d6f97 100644 --- a/src/main/java/at/rtr/rmbt/request/CellLocationRequest.java +++ b/src/main/java/at/rtr/rmbt/request/CellLocationRequest.java @@ -21,5 +21,5 @@ public class CellLocationRequest { private final Integer areaCode; @JsonProperty(value = "location_id") - private final Integer locationId; + private final Long locationId; } diff --git a/src/test/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImplTest.java b/src/test/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImplTest.java index 6da5ee7..dd35d0a 100644 --- a/src/test/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImplTest.java +++ b/src/test/java/at/rtr/rmbt/mapper/impl/CellLocationMapperImplTest.java @@ -31,7 +31,7 @@ public void cellLocationRequestToCellLocation_whenCommonData_expectCellLocation( when(test.getOpenTestUuid()).thenReturn(TestConstants.DEFAULT_TEST_UUID); when(test.getTimezone()).thenReturn(TestConstants.DEFAULT_TIMEZONE); when(cellLocationRequest.getAreaCode()).thenReturn(TestConstants.DEFAULT_AREA_CODE_FIRST); - when(cellLocationRequest.getLocationId()).thenReturn(TestConstants.DEFAULT_LOCATION_ID); + when(cellLocationRequest.getLocationId()).thenReturn(TestConstants.DEFAULT_LOCATION_ID.longValue()); when(cellLocationRequest.getPrimaryScramblingCode()).thenReturn(TestConstants.DEFAULT_PRIMARY_SCRAMBLING_CODE); when(cellLocationRequest.getTimeNs()).thenReturn(TestConstants.DEFAULT_TIME_NS); when(cellLocationRequest.getTime()).thenReturn(TestConstants.DEFAULT_TIME_INSTANT);