test_class.file: server/src/test/java/io/spine/server/entity/TransactionalEventPlayerTest.java
test_class.identifier: TransactionalEventPlayerTest
test_case.body: @Test
      @DisplayName("delegate applying events to transaction when playing")
      void delegateEventsToTx() {
          TxPlayingEntity entity = entityWithActiveTx(false);
          EventPlayingTransaction txMock = (EventPlayingTransaction) entity.transaction();
          assertNotNull(txMock);
          Version v1 = increment(zero());
          Event firstEvent = withVersion(v1);
          Event secondEvent = withVersion(increment(v1));
  
          entity.play(newArrayList(firstEvent, secondEvent));
  
          verifyEventApplied(txMock, firstEvent);
          verifyEventApplied(txMock, secondEvent);
      }
test_case.class_method_signature: TransactionalEventPlayerTest.delegateEventsToTx()
test_case.full_signature: @Test @DisplayName("delegate applying events to transaction when playing") void delegateEventsToTx()
test_case.identifier: delegateEventsToTx
test_case.invocations: entityWithActiveTx transaction assertNotNull increment zero withVersion withVersion increment play newArrayList verifyEventApplied verifyEventApplied
test_case.modifiers: @Test @DisplayName("delegate applying events to transaction when playing")
test_case.parameters: ()
test_case.return: void
test_case.signature: void delegateEventsToTx()
focal_class.declarator: transaction
focal_class.modifier: private final
focal_class.original_string: private final EventPlayingTransaction<?, ?, ?, ?> transaction;
focal_class.type: EventPlayingTransaction<?, ?, ?, ?>
focal_class.var_name: transaction
focal_class.file: server/src/main/java/io/spine/server/entity/TransactionalEventPlayer.java
focal_class.identifier: TransactionalEventPlayer
focal_class.interfaces: implements EventPlayer
focal_class.class_method_signature: TransactionalEventPlayer.TransactionalEventPlayer(EventPlayingTransaction<?, ?, ?, ?> transaction)
focal_class.full_signature:   TransactionalEventPlayer(EventPlayingTransaction<?, ?, ?, ?> transaction)
focal_class.identifier: TransactionalEventPlayer
focal_class.parameters: (EventPlayingTransaction<?, ?, ?, ?> transaction)
focal_class.signature:  TransactionalEventPlayer(EventPlayingTransaction<?, ?, ?, ?> transaction)
focal_class.class_method_signature: TransactionalEventPlayer.play(Iterable<Event> events)
focal_class.full_signature: @Override public BatchDispatchOutcome play(Iterable<Event> events)
focal_class.identifier: play
focal_class.modifiers: @Override public
focal_class.parameters: (Iterable<Event> events)
focal_class.return: BatchDispatchOutcome
focal_class.signature: BatchDispatchOutcome play(Iterable<Event> events)
focal_method.body: @Override
      public BatchDispatchOutcome play(Iterable<Event> events) {
          checkNotNull(events);
          BatchDispatch process = new BatchDispatch(transaction);
          for (Event event : events) {
              process.play(event);
          }
          return process.summary();
      }
focal_method.class_method_signature: TransactionalEventPlayer.play(Iterable<Event> events)
focal_method.full_signature: @Override public BatchDispatchOutcome play(Iterable<Event> events)
focal_method.identifier: play
focal_method.invocations: checkNotNull play summary
focal_method.modifiers: @Override public
focal_method.parameters: (Iterable<Event> events)
focal_method.return: BatchDispatchOutcome
focal_method.signature: BatchDispatchOutcome play(Iterable<Event> events)