Package | Description |
---|---|
io.sniffy |
Sniffy allows you to validate the number of SQL queries executed by a given block of code
Example usage:
|
io.sniffy.socket | |
io.sniffy.sql | |
io.sniffy.test | |
io.sniffy.util |
Class and Description |
---|
Expectation
Adds an expectation about the number of queries generated by given test method
|
Query |
Sniffer.Executable
Executable interface is similar to
Runnable but it allows throwing Exception
from it's Sniffer.Executable.execute() method |
SniffyAssertionError |
Spy
Spy holds a number of queries which were executed at some point of time and uses it as a base for further assertions
|
Spy.Expectation |
SpyWithValue |
Threads
Sniffy allows to validate the number of queries generated from different threads
You can use Threads enum to select all threads (ANY), current thread (CURRENT) or
all threads except current (OTHERS)
|
WrongNumberOfQueriesError |
Class and Description |
---|
SniffyAssertionError |
Spy
Spy holds a number of queries which were executed at some point of time and uses it as a base for further assertions
|
Spy.Expectation |
Threads
Sniffy allows to validate the number of queries generated from different threads
You can use Threads enum to select all threads (ANY), current thread (CURRENT) or
all threads except current (OTHERS)
|
WrongNumberOfQueriesError |
Class and Description |
---|
Query |
Spy.Expectation |
Threads
Sniffy allows to validate the number of queries generated from different threads
You can use Threads enum to select all threads (ANY), current thread (CURRENT) or
all threads except current (OTHERS)
|
Class and Description |
---|
Expectation
Adds an expectation about the number of queries generated by given test method
|
Expectations
Container for multiple
Expectation annotations |
NoQueriesAllowed
Alias for
@Expectation(count = @Count(0), threads = Threads.CURRENT) |
Class and Description |
---|
Expectation
Adds an expectation about the number of queries generated by given test method
|
Copyright © 2016. All rights reserved.