Signed-off-by: Michael Vorburger <mike@vorburger.ch>
*/
package org.opendaylight.controller.simple.test;
+import java.util.concurrent.ExecutionException;
import javax.inject.Inject;
import org.junit.Rule;
import org.junit.Test;
@Inject DataBroker dataBroker;
- @Test public void testDataBroker() {
- dataBroker.newReadWriteTransaction().commit();
+ @Test public void testDataBroker() throws InterruptedException, ExecutionException {
+ dataBroker.newReadWriteTransaction().commit().get();
}
}
*/
package org.opendaylight.mdsal.simple.test;
+import java.util.concurrent.ExecutionException;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
DataBroker dataBroker;
@Ignore // TODO sort out DataBrokerAdapter in MdsalModule
- @Test public void testDataBroker() {
- // dataBroker.newReadWriteTransaction().commit();
+ @Test public void testDataBroker() throws InterruptedException, ExecutionException {
+ // dataBroker.newReadWriteTransaction().commit().get();
}
}