Bump upstreams
[netconf.git] / apps / netconf-topology-singleton / src / test / java / org / opendaylight / netconf / topology / singleton / impl / ProxyDOMDataBrokerTest.java
index df2550d9af90755187d1f9721d180cfef0cea1d0..afa2a7757fbb983975be33c8dd691d3143669e03 100644 (file)
@@ -8,7 +8,7 @@
 package org.opendaylight.netconf.topology.singleton.impl;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.assertThrows;
 
 import akka.actor.ActorSystem;
 import akka.actor.Status.Success;
@@ -16,6 +16,7 @@ import akka.testkit.TestProbe;
 import akka.testkit.javadsl.TestKit;
 import akka.util.Timeout;
 import java.net.InetSocketAddress;
+import java.util.List;
 import java.util.concurrent.TimeUnit;
 import org.junit.AfterClass;
 import org.junit.Test;
@@ -87,13 +88,13 @@ public class ProxyDOMDataBrokerTest {
         masterActor.expectMsgClass(ReadRequest.class);
     }
 
-    @Test(expected = UnsupportedOperationException.class)
+    @Test
     public void testCreateTransactionChain() {
-        proxy.createTransactionChain(null);
+        assertThrows(UnsupportedOperationException.class, proxy::createTransactionChain);
     }
 
     @Test
     public void testGetSupportedExtensions() {
-        assertTrue(proxy.getExtensions().isEmpty());
+        assertEquals(List.of(), proxy.supportedExtensions());
     }
 }