use of org.neo4j.bolt.v3.BoltStateMachineV3 in project neo4j by neo4j.
the class TransactionStreamingStateIT method shouldMoveFromTxStreamingToTxReadyOnPullAll_succ.
@Test
void shouldMoveFromTxStreamingToTxReadyOnPullAll_succ() throws Throwable {
// Given
BoltStateMachineV3 machine = getBoltStateMachineInTxStreamingState();
// When
BoltResponseRecorder recorder = new BoltResponseRecorder();
machine.process(PullAllMessage.INSTANCE, recorder);
// Then
RecordedBoltResponse response = recorder.nextResponse();
assertThat(response).satisfies(succeeded());
assertTrue(response.hasMetadata("type"));
assertTrue(response.hasMetadata("t_last"));
assertFalse(response.hasMetadata("bookmark"));
assertThat(machine.state()).isInstanceOf(TransactionReadyState.class);
}
Aggregations