- @Test(expected=UnknownMessageException.class)
- public void testNegativePerformingWriteOperationOnReadTransaction() throws Exception {
- final ActorRef shard = createShard();
- final Props props = ShardTransaction.props(store.newReadOnlyTransaction(), shard,
- testSchemaContext, datastoreContext, shardStats, "txn",
- DataStoreVersions.CURRENT_VERSION);
- final TestActorRef<ShardTransaction> transaction = TestActorRef.apply(props,getSystem());
-
- transaction.receive(new DeleteData(TestModel.TEST_PATH).toSerializable(
- DataStoreVersions.CURRENT_VERSION), ActorRef.noSender());
- }
-