Callable.call()
method, record the SQL queries
and return the SpyWithValue
object with statsCallable.call()
method on provided argument and verifies the expectationsSpy.verify()
method; it is useful for try-with-resource API:sniffer:jdbc:h2:mem:
Sniffer.execute(Sniffer.Executable)
method is called, it will execute the Executable.execute() method, record the SQL queries and return the
Spy
object with statsSniffer.Executable.execute()
method, record the SQL queries
and return the Spy
object with statsSniffer.Executable.execute()
method on provided argument and verifies the expectationsExpectation
annotationssniffer:
prefix to your JDBC URL.@Expectation(count = @Count(0), threads = Threads.CURRENT)
@SocketExpectation(connections = @Count(0))
Sniffer.spy()
method; useful for chainingRunnable.run()
method, record the SQL queries
and return the Spy
object with statsRunnable.run()
method on provided argument and verifies the expectationsRunnable
but it allows throwing Exception
from it's Sniffer.Executable.execute()
methodSocketExpectation
annotationsexpect
methods familyCopyright © 2016. All rights reserved.