use of org.neo4j.bolt.v3.messaging.response.FatalFailureMessage in project neo4j by neo4j.
the class FailureMessageEncoderTest method shouldLogErrorIfIsFatalError.
@Test
void shouldLogErrorIfIsFatalError() throws Throwable {
Neo4jPack.Packer packer = mock(Neo4jPack.Packer.class);
Log log = mock(Log.class);
FailureMessageEncoder encoder = new FailureMessageEncoder(log);
// When
FatalFailureMessage message = new FatalFailureMessage(Status.General.UnknownError, "I am an error message");
encoder.encode(packer, message);
// Then
verify(log).debug("Encoding a fatal failure message to send. Message: %s", message);
}
Aggregations