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 |
Modifier and Type | Method and Description |
---|---|
Threads |
WrongNumberOfRowsError.getThreadMatcher() |
Threads |
WrongNumberOfQueriesError.getThreadMatcher() |
static Threads |
Threads.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Threads[] |
Threads.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
int |
Spy.executedStatements(Threads threadMatcher) |
int |
Spy.executedStatements(Threads threadMatcher,
Query query) |
C |
Spy.expect(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expect(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expect(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expect(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expect(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
static Spy |
Sniffer.expect(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.expectAtLeast(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectAtLeast(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectAtLeast(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectAtLeast(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectAtLeast(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
static Spy |
Sniffer.expectAtLeast(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.expectAtMost(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectAtMost(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectAtMost(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectAtMost(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectAtMost(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
static Spy |
Sniffer.expectAtMost(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.expectAtMostOnce(Query query,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectAtMostOnce(Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectAtMostOnce(Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectAtMostOnce(Threads threadMatcher)
Deprecated.
|
C |
Spy.expectAtMostOnce(Threads threadMatcher,
Query query)
Deprecated.
|
static Spy |
Sniffer.expectAtMostOnce(Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.expectBetween(int minAllowedStatements,
int maxAllowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectBetween(int minAllowedStatements,
int maxAllowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectBetween(int minAllowedStatements,
int maxAllowedStatements,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectBetween(int minAllowedStatements,
int maxAllowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectBetween(int minAllowedStatements,
int maxAllowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
static Spy |
Sniffer.expectBetween(int minAllowedStatements,
int maxAllowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.expectNever(Query query,
Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectNever(Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.expectNever(Threads threadMatcher)
Deprecated.
|
static Spy |
Sniffer.expectNever(Threads threadMatcher)
Deprecated.
|
C |
Spy.expectNever(Threads threadMatcher,
Query query)
Deprecated.
|
static Spy |
Sniffer.expectNever(Threads threadMatcher,
Query query)
Deprecated.
|
Map<StatementMetaData,SqlStats> |
Spy.getExecutedStatements(Threads threadMatcher,
boolean removeStackTraces) |
Map<SocketMetaData,SocketStats> |
Spy.getSocketOperations(Threads threadMatcher,
String address,
boolean removeStackTraces) |
C |
Spy.verify(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verify(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verify(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.verifyAtLeast(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyAtLeast(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyAtLeast(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.verifyAtMost(int allowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyAtMost(int allowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyAtMost(int allowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.verifyAtMostOnce(Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyAtMostOnce(Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyAtMostOnce(Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.verifyBetween(int minAllowedStatements,
int maxAllowedStatements,
Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyBetween(int minAllowedStatements,
int maxAllowedStatements,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyBetween(int minAllowedStatements,
int maxAllowedStatements,
Threads threadMatcher,
Query query)
Deprecated.
|
C |
Spy.verifyNever(Query query,
Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyNever(Threads threadMatcher)
Deprecated.
|
C |
Spy.verifyNever(Threads threadMatcher,
Query query)
Deprecated.
|
Constructor and Description |
---|
WrongNumberOfQueriesError(Threads threadMatcher,
Query query,
int minimumQueries,
int maximumQueries,
int numQueries,
Collection<StatementMetaData> executedStatements) |
WrongNumberOfRowsError(Threads threadMatcher,
Query query,
int minimumRows,
int maximumQueries,
int numRows,
Map<StatementMetaData,SqlStats> executedStatements) |
Modifier and Type | Field and Description |
---|---|
protected Threads |
TcpConnections.TcpExpectation.threads |
Modifier and Type | Method and Description |
---|---|
TcpConnections.TcpExpectation_Count_Threads |
TcpConnections.TcpExpectation_Count.threads(Threads threads) |
TcpConnections.TcpExpectation |
TcpConnections.TcpExpectation_Count_Host.threads(Threads threads) |
Constructor and Description |
---|
TcpExpectation(int min,
int max,
Threads threads,
String host) |
Modifier and Type | Method and Description |
---|---|
SqlQueries.SqlExpectation_CountQueries_Threads |
SqlQueries.SqlExpectation_CountQueries.threads(Threads threads) |
SqlQueries.SqlExpectation_CountRows_Threads |
SqlQueries.SqlExpectation_CountRows.threads(Threads threads) |
SqlQueries.SqlExpectation_CountQueries_CountRows_Threads |
SqlQueries.SqlExpectation_CountQueries_CountRows.threads(Threads threads) |
SqlQueries.SqlExpectation_CountQueries_Threads_QueryType |
SqlQueries.SqlExpectation_CountQueries_QueryType.threads(Threads threads) |
io.sniffy.sql.SqlQueries.SqlExpectation |
SqlQueries.SqlExpectation_CountQueries_CountRows_QueryType.threads(Threads threads) |
SqlQueries.SqlExpectation_CountRows_Threads_QueryType |
SqlQueries.SqlExpectation_CountRows_QueryType.threads(Threads threads) |
Copyright © 2016. All rights reserved.