Skip to content

Commit

Permalink
accept LONG cell locations
Browse files Browse the repository at this point in the history
  • Loading branch information
cproof committed Feb 27, 2024
1 parent 93c54bc commit 767dccd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/at/rtr/rmbt/request/CellLocationRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ public class CellLocationRequest {
private final Integer areaCode;

@JsonProperty(value = "location_id")
private final Integer locationId;
private final Long locationId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 767dccd

Please sign in to comment.