public void testGetSetId() throws Exception {
assertNotNull(report.getId());
Long old = report.getId();
- Long newid = 123l;
+ final Long newid = 123l;
report.setId(newid);
assertNotEquals(old, report.getId());
public void testGetSetId() throws Exception {
assertNotNull(reportType.getId());
Long old = reportType.getId();
- Long newid = 123l;
+ final Long newid = 123l;
reportType.setId(newid);
assertNotEquals(old, reportType.getId());
@RequestMapping(value = "/reports/{id}", method = RequestMethod.GET)
public String iotDeviceReports(Model model, @PathVariable Long id) {
// FIXME: returns only 10 last reports for each report type
- int limit = 10;
+ final int limit = 10;
ViewDevice viewDevice;
Device device = deviceService.findById(id);
@ResponseBody
public String findReportsByDeviceUuid(@PathVariable String deviceUuId) {
Device device = deviceService.findByUUID(deviceUuId);
- int limit = 10;
+ final int limit = 10;
Map<String, List<Map<String, String>>> mapReports = new HashMap<>();
if (device != null) {
@Test
public void testEncodeAndDecodePayloadFromCborWrongPayload() {
Cbor<String> cbor = new Cbor<>();
- Long data = 121213131l;
+ final Long data = 121213131l;
byte[] payload = cbor.encodingPayloadToCbor(data);
String result = (String) cbor.parsePayloadFromCbor(payload, String.class);
assertNotNull(result);