Class com.mongodb.connection.LoggingCommandEventSenderSpecification

3

tests

1

failures

0

ignored

0.037s

duration

66%

successful

Failed tests

should log events

Too few invocations for:

1 * logger.debug {
            it.matches("Execution of one-way command with request id ${message.getId()} completed successfully in \\d+\\.\\d+ ms " +
                    "on connection \\[connectionId\\{localValue:${connectionDescription.connectionId.localValue}\\}] " +
                    'to server 127\\.0\\.0\\.1:27017')
        }   (0 invocations)

Unmatched invocations (ordered by similarity):

1 * logger.debug('Execution of one-way command with request id 4099 completed successfully in 6,41 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4099 completed successfully in 8,19 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4099 failed to complete successfully in 9,01 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017', com.mongodb.MongoInternalException: failure!)

Too few invocations for:

1 * logger.debug {
            it.matches("Execution of command with request id ${message.getId()} completed successfully in \\d+\\.\\d+ ms " +
                    "on connection \\[connectionId\\{localValue:${connectionDescription.connectionId.localValue}\\}] " +
                    'to server 127\\.0\\.0\\.1:27017')
        }   (0 invocations)

Unmatched invocations (ordered by similarity):

1 * logger.debug('Execution of one-way command with request id 4099 completed successfully in 6,41 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4099 completed successfully in 8,19 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4099 failed to complete successfully in 9,01 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017', com.mongodb.MongoInternalException: failure!)

Too few invocations for:

1 * logger.debug({
            it.matches("Execution of command with request id ${message.getId()} failed to complete successfully in \\d+\\.\\d+ ms " +
                    "on connection \\[connectionId\\{localValue:${connectionDescription.connectionId.localValue}\\}] " +
                    'to server 127\\.0\\.0\\.1:27017')
        }, failureException)   (0 invocations)

Unmatched invocations (ordered by similarity):

1 * logger.debug('Execution of one-way command with request id 4099 completed successfully in 6,41 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4099 completed successfully in 8,19 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4099 failed to complete successfully in 9,01 ms on connection [connectionId{localValue:325}] to server 127.0.0.1:27017', com.mongodb.MongoInternalException: failure!)


	at org.spockframework.mock.runtime.InteractionScope.verifyInteractions(InteractionScope.java:78)
	at org.spockframework.mock.runtime.MockController.leaveScope(MockController.java:76)
	at com.mongodb.connection.LoggingCommandEventSenderSpecification.should log events(LoggingCommandEventSenderSpecification.groovy:98)
Too few invocations for:

1 * logger.debug {
            it.matches("Execution of one-way command with request id ${message.getId()} completed successfully in \\d+\\.\\d+ ms " +
                    "on connection \\[connectionId\\{localValue:${connectionDescription.connectionId.localValue}\\}] " +
                    'to server 127\\.0\\.0\\.1:27017')
        }   (0 invocations)

Unmatched invocations (ordered by similarity):

1 * logger.debug('Execution of command with request id 4100 completed successfully in 2,29 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of one-way command with request id 4100 completed successfully in 1,44 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4100 failed to complete successfully in 3,90 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017', com.mongodb.MongoInternalException: failure!)

Too few invocations for:

1 * logger.debug {
            it.matches("Execution of command with request id ${message.getId()} completed successfully in \\d+\\.\\d+ ms " +
                    "on connection \\[connectionId\\{localValue:${connectionDescription.connectionId.localValue}\\}] " +
                    'to server 127\\.0\\.0\\.1:27017')
        }   (0 invocations)

Unmatched invocations (ordered by similarity):

1 * logger.debug('Execution of command with request id 4100 completed successfully in 2,29 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of one-way command with request id 4100 completed successfully in 1,44 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4100 failed to complete successfully in 3,90 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017', com.mongodb.MongoInternalException: failure!)

Too few invocations for:

1 * logger.debug({
            it.matches("Execution of command with request id ${message.getId()} failed to complete successfully in \\d+\\.\\d+ ms " +
                    "on connection \\[connectionId\\{localValue:${connectionDescription.connectionId.localValue}\\}] " +
                    'to server 127\\.0\\.0\\.1:27017')
        }, failureException)   (0 invocations)

Unmatched invocations (ordered by similarity):

1 * logger.debug('Execution of command with request id 4100 completed successfully in 2,29 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of one-way command with request id 4100 completed successfully in 1,44 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017')
1 * logger.debug('Execution of command with request id 4100 failed to complete successfully in 3,90 ms on connection [connectionId{localValue:326}] to server 127.0.0.1:27017', com.mongodb.MongoInternalException: failure!)


	at org.spockframework.mock.runtime.InteractionScope.verifyInteractions(InteractionScope.java:78)
	at org.spockframework.mock.runtime.MockController.leaveScope(MockController.java:76)
	at com.mongodb.connection.LoggingCommandEventSenderSpecification.should log events(LoggingCommandEventSenderSpecification.groovy:98)

Tests

Test Duration Result
should log events 0.021s failed
should log large command with ellipses 0.006s passed
should send events 0.010s passed