Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adjust to mdsal CursorAware API changes
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
databroker
/
ClientBackedWriteTransactionTest.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedWriteTransactionTest.java
b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedWriteTransactionTest.java
index 8091f705530ea86bb4e7f459a10354caa8ccf9a1..4a6ee3f944b63b869d8e3d136129da799c4b5e43 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedWriteTransactionTest.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedWriteTransactionTest.java
@@
-31,7
+31,7
@@
public class ClientBackedWriteTransactionTest extends ClientBackedTransactionTes
private DOMStoreThreePhaseCommitCohort readyCohort;
@Before
private DOMStoreThreePhaseCommitCohort readyCohort;
@Before
- public void setUp()
throws Exception
{
+ public void setUp() {
MockitoAnnotations.initMocks(this);
Mockito.doReturn(TRANSACTION_ID).when(delegate).getIdentifier();
MockitoAnnotations.initMocks(this);
Mockito.doReturn(TRANSACTION_ID).when(delegate).getIdentifier();
@@
-41,32
+41,32
@@
public class ClientBackedWriteTransactionTest extends ClientBackedTransactionTes
}
@Override
}
@Override
- ClientBackedWriteTransaction object()
throws Exception
{
+ ClientBackedWriteTransaction object() {
return object;
}
@Test
return object;
}
@Test
- public void testWrite()
throws Exception
{
+ public void testWrite() {
object().write(path, data);
Mockito.verify(delegate).write(path, data);
}
@Test
object().write(path, data);
Mockito.verify(delegate).write(path, data);
}
@Test
- public void testMerge()
throws Exception
{
+ public void testMerge() {
object().merge(path, data);
Mockito.verify(delegate).merge(path, data);
}
@Test
object().merge(path, data);
Mockito.verify(delegate).merge(path, data);
}
@Test
- public void testDelete()
throws Exception
{
+ public void testDelete() {
object().delete(path);
Mockito.verify(delegate).delete(path);
}
@Test
object().delete(path);
Mockito.verify(delegate).delete(path);
}
@Test
- public void testReady()
throws Exception
{
- final
org.opendaylight.controller.sal.core.spi.data.
DOMStoreThreePhaseCommitCohort result = object().ready();
+ public void testReady() {
+ final DOMStoreThreePhaseCommitCohort result = object().ready();
Assert.assertNotNull(result);
Mockito.verify(delegate).ready();
}
Assert.assertNotNull(result);
Mockito.verify(delegate).ready();
}
-}
\ No newline at end of file
+}