* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.mdsal.dom.broker;
import static org.junit.Assert.assertEquals;
import java.util.Collections;
import java.util.Map;
import java.util.Optional;
-import javax.annotation.Nonnull;
+import java.util.concurrent.ExecutionException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
}
@Test
- public void testRead() throws Exception {
+ public void testRead() throws InterruptedException, ExecutionException {
final ListenableFuture<Optional<NormalizedNode<?, ?>>> readResult =
readTx.read(LogicalDatastoreType.CONFIGURATION, TestModel.TEST_PATH);
assertTrue(readTx.exists(LogicalDatastoreType.CONFIGURATION, TestModel.TEST_PATH).get());
}
@After
- public void close() throws Exception {
+ public void close() {
readTx.close();
}
return ImmutableClassToInstanceMap.of();
}
- @Nonnull
@Override
public <T extends DOMDataTreeListener> ListenerRegistration<T>
- registerListener(@Nonnull final T listener, @Nonnull final Collection<DOMDataTreeIdentifier> subtrees,
- final boolean allowRxMerges,
- @Nonnull final Collection<DOMDataTreeProducer> producers) throws DOMDataTreeLoopException {
+ registerListener(final T listener, final Collection<DOMDataTreeIdentifier> subtrees,
+ final boolean allowRxMerges, final Collection<DOMDataTreeProducer> producers)
+ throws DOMDataTreeLoopException {
final Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>> subtree = Maps.newHashMap();
subtree.put(new DOMDataTreeIdentifier(LogicalDatastoreType.CONFIGURATION, TestModel.TEST_PATH),
TestUtils.TEST_CONTAINER);
};
}
- @Nonnull
@Override
- public DOMDataTreeProducer createProducer(@Nonnull final Collection<DOMDataTreeIdentifier> subtrees) {
- return null;
+ public DOMDataTreeProducer createProducer(final Collection<DOMDataTreeIdentifier> subtrees) {
+ throw new UnsupportedOperationException();
}
}
}