import static org.junit.Assert.assertNotNull;
import static org.mockito.Matchers.any;
-import static org.mockito.Matchers.anyCollectionOf;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.opendaylight.mdsal.dom.store.inmemory.TestUtils.DOM_DATA_TREE_IDENTIFIER;
import static org.opendaylight.mdsal.dom.store.inmemory.TestUtils.resetMocks;
+import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import org.junit.Test;
-import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.tree.CursorAwareDataTreeSnapshot;
public class InMemoryDOMDataTreeShardProducerTest {
doReturn(inmemoryDOMDataTreeShardWriteTransaction).when(inMemoryDOMDataTreeShard)
.createTransaction(any(String.class), any(InMemoryDOMDataTreeShardProducer.class),
- anyCollectionOf((DOMDataTreeIdentifier.class)), any(CursorAwareDataTreeSnapshot.class));
+ any(CursorAwareDataTreeSnapshot.class));
final InMemoryDOMDataTreeShardProducer inMemoryDOMDataTreeShardProducer =
new InMemoryDOMDataTreeShardProducer(inMemoryDOMDataTreeShard,
- ImmutableSet.of(DOM_DATA_TREE_IDENTIFIER));
+ ImmutableSet.of(DOM_DATA_TREE_IDENTIFIER),
+ new ShardDataModificationFactory(DOM_DATA_TREE_IDENTIFIER, ImmutableMap.of(),
+ ImmutableMap.of()));
assertNotNull(inMemoryDOMDataTreeShardProducer.createTransaction());
verify(inMemoryDOMDataTreeShard).createTransaction(
any(String.class),
any(InMemoryDOMDataTreeShardProducer.class),
- anyCollectionOf(DOMDataTreeIdentifier.class),
any(CursorAwareDataTreeSnapshot.class));
resetMocks();
}
-}
\ No newline at end of file
+}