Fix AbstractBaseDataBrokerTest.assertCommit() 65/80165/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 5 Feb 2019 21:50:54 +0000 (22:50 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 6 Feb 2019 15:02:20 +0000 (15:02 +0000)
This method should reflect whatever commit() is returning, but
unfortunately it was left out during conversion.

Change-Id: I7e7389d0a7f8fbd94af2ee07ce089f72f4855a74
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-adapter/src/test/java/org/opendaylight/mdsal/binding/dom/adapter/test/AbstractBaseDataBrokerTest.java

index 40049153241409286e60b2a141dc1eb4059dc519..9f8baa54362546c1f9d5fde6aa24e42030aa024a 100644 (file)
@@ -48,11 +48,11 @@ public abstract class AbstractBaseDataBrokerTest extends AbstractSchemaAwareTest
         return domBroker;
     }
 
-    protected static final void assertCommit(final ListenableFuture<Void> commit) {
+    protected static final void assertCommit(final ListenableFuture<?> commit) {
         assertCommit(commit, ASSERT_COMMIT_DEFAULT_TIMEOUT);
     }
 
-    protected static final void assertCommit(final ListenableFuture<Void> commit, long timeoutInMS) {
+    protected static final void assertCommit(final ListenableFuture<?> commit, long timeoutInMS) {
         try {
             commit.get(timeoutInMS, TimeUnit.MILLISECONDS);
         } catch (InterruptedException | ExecutionException | TimeoutException e) {