X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2Factors%2Fdds%2FClientTransactionCursorTest.java;h=2e7f8f3b843247107ca15df40a76ecd48d481143;hb=729e3f9606dae61f98bd0bca0cfb082c22e5b8d8;hp=14bc0def653b71111dc10a7311195d706e3ca2f0;hpb=b26d729bcee634f5d978848b046939931b8f5665;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransactionCursorTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransactionCursorTest.java index 14bc0def65..2e7f8f3b84 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransactionCursorTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/actors/dds/ClientTransactionCursorTest.java @@ -31,13 +31,13 @@ public class ClientTransactionCursorTest { private ClientTransactionCursor cursor; @Before - public void setUp() throws Exception { + public void setUp() { MockitoAnnotations.initMocks(this); cursor = new ClientTransactionCursor(transaction); } @Test - public void testEnterOneNode() throws Exception { + public void testEnterOneNode() { cursor.enter(YangInstanceIdentifier.NodeIdentifier.create(NODE_1)); cursor.delete(YangInstanceIdentifier.NodeIdentifier.create(NODE_2)); final YangInstanceIdentifier expected = createId(NODE_1, NODE_2); @@ -45,7 +45,7 @@ public class ClientTransactionCursorTest { } @Test - public void testEnterNodeIterables() throws Exception { + public void testEnterNodeIterables() { final Iterable collect = toPathArg(NODE_1, NODE_2); cursor.enter(collect); cursor.delete(YangInstanceIdentifier.NodeIdentifier.create(NODE_3)); @@ -54,7 +54,7 @@ public class ClientTransactionCursorTest { } @Test - public void testEnterNodeVarargs() throws Exception { + public void testEnterNodeVarargs() { cursor.enter(YangInstanceIdentifier.NodeIdentifier.create(NODE_1), YangInstanceIdentifier.NodeIdentifier.create(NODE_2)); cursor.delete(YangInstanceIdentifier.NodeIdentifier.create(NODE_3)); @@ -63,7 +63,7 @@ public class ClientTransactionCursorTest { } @Test - public void testExitOneLevel() throws Exception { + public void testExitOneLevel() { cursor.enter(toPathArg(NODE_1, NODE_2)); cursor.exit(); cursor.delete(YangInstanceIdentifier.NodeIdentifier.create(NODE_2)); @@ -72,7 +72,7 @@ public class ClientTransactionCursorTest { } @Test - public void testExitTwoLevels() throws Exception { + public void testExitTwoLevels() { cursor.enter(toPathArg(NODE_1, NODE_2, NODE_3)); cursor.exit(2); cursor.delete(YangInstanceIdentifier.NodeIdentifier.create(NODE_2)); @@ -81,20 +81,20 @@ public class ClientTransactionCursorTest { } @Test - public void testClose() throws Exception { + public void testClose() { cursor.close(); verify(transaction).closeCursor(cursor); } @Test - public void testDelete() throws Exception { + public void testDelete() { cursor.delete(YangInstanceIdentifier.NodeIdentifier.create(NODE_1)); final YangInstanceIdentifier expected = createId(NODE_1); verify(transaction).delete(expected); } @Test - public void testMerge() throws Exception { + public void testMerge() { final YangInstanceIdentifier.NodeIdentifier path = YangInstanceIdentifier.NodeIdentifier.create(NODE_1); final ContainerNode data = createData(path.getNodeType()); cursor.merge(path, data); @@ -103,7 +103,7 @@ public class ClientTransactionCursorTest { } @Test - public void testWrite() throws Exception { + public void testWrite() { final YangInstanceIdentifier.NodeIdentifier path = YangInstanceIdentifier.NodeIdentifier.create(NODE_1); final ContainerNode data = createData(path.getNodeType()); cursor.write(path, data);