diff --git a/FROST-Server.Tests/src/test/java/de/fraunhofer/iosb/ilt/statests/c08mqttsubscribe/MqttCoreTests.java b/FROST-Server.Tests/src/test/java/de/fraunhofer/iosb/ilt/statests/c08mqttsubscribe/MqttCoreTests.java index fab463bb4..c232badfa 100644 --- a/FROST-Server.Tests/src/test/java/de/fraunhofer/iosb/ilt/statests/c08mqttsubscribe/MqttCoreTests.java +++ b/FROST-Server.Tests/src/test/java/de/fraunhofer/iosb/ilt/statests/c08mqttsubscribe/MqttCoreTests.java @@ -321,7 +321,7 @@ void check07_SubscribeToEntitySetWithRelativeTopicUpdatePUT() throws ServiceFail LOGGER.debug(" {} paths", paths.size()); for (var path : paths) { totalPaths++; - var finalNp = path.getLast(); + var finalNp = path.get(path.size() - 1); String topic = eh2.createUrl(eh2.getCache(finalNp.getEntityType(), 0)); for (int idx = path.size() - 1; idx >= 0; idx--) { NavigationProperty nextNp = path.get(idx); @@ -557,7 +557,7 @@ void check11_SubscribeToEntityWithRelativeTopicUpdatePUT() throws ServiceFailure LOGGER.debug(" {} paths", paths.size()); for (var path : paths) { totalPaths++; - var finalNp = path.getLast(); + var finalNp = path.get(path.size() - 1); String topic = eh2.createUrl(eh2.getCache(finalNp.getEntityType(), 0)); for (int idx = path.size() - 1; idx >= 0; idx--) { NavigationProperty nextNp = path.get(idx);