Use Optional.isEmpty()
[netconf.git] / netconf / netconf-topology-singleton / src / test / java / org / opendaylight / netconf / topology / singleton / impl / MountPointEndToEndTest.java
index 59916be1a9c22d6ac1f9b06acd0fa38378d4ad6b..83bd1d80ea67e5cdabefa24357db22b82e9744f5 100644 (file)
@@ -684,7 +684,7 @@ public class MountPointEndToEndTest extends AbstractBaseSchemasTest {
 
     private void awaitMountPointNotPresent(final DOMMountPointService mountPointService) {
         await().atMost(5, TimeUnit.SECONDS).until(
-            () -> !mountPointService.getMountPoint(yangNodeInstanceId).isPresent());
+            () -> mountPointService.getMountPoint(yangNodeInstanceId).isEmpty());
     }
 
     private static DOMDataBroker getDOMDataBroker(final DOMMountPoint mountPoint) {