X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=renderer%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Frenderer%2Futils%2FTransactionUtils.java;h=02bac55740a5df20082dfb5e505c4bd75379315b;hb=e3438cad213946cd76a73219876487c30024dfae;hp=11d443be79b29e7af5c5e86eafa81bdab2697bd3;hpb=738d0daf16440e92fc7b111d3db83b42573c705a;p=transportpce.git diff --git a/renderer/src/test/java/org/opendaylight/transportpce/renderer/utils/TransactionUtils.java b/renderer/src/test/java/org/opendaylight/transportpce/renderer/utils/TransactionUtils.java index 11d443be7..02bac5574 100644 --- a/renderer/src/test/java/org/opendaylight/transportpce/renderer/utils/TransactionUtils.java +++ b/renderer/src/test/java/org/opendaylight/transportpce/renderer/utils/TransactionUtils.java @@ -24,6 +24,8 @@ public final class TransactionUtils { } + @SuppressWarnings({ "unchecked", "deprecation" }) + // deviceTx.put needs the "true" boolean parameter at the end in order to not compromise the Junit test suite public static boolean writeTransaction(DeviceTransactionManager deviceTransactionManager, String nodeId, LogicalDatastoreType logicalDatastoreType, @@ -36,7 +38,7 @@ public final class TransactionUtils { return false; } DeviceTransaction deviceTx = deviceTxFuture.get().get(); - deviceTx.put(logicalDatastoreType, instanceIdentifier, object, true); + deviceTx.put(logicalDatastoreType, instanceIdentifier, object); deviceTx.commit(Timeouts.DEVICE_WRITE_TIMEOUT, Timeouts.DEVICE_WRITE_TIMEOUT_UNIT).get(); return true; }