/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, {@code allowedStatements}, {@link Threads#CURRENT}, {@code queryType} * @since 2.2 */ @Deprecated public C expectAtMost(int allowedStatements, Query query) { return expect(SqlQueries.maxQueries(allowedStatements).type(adapter(query))); }
/** * Alias for {@link #verifyBetween(int, int, Threads, Query)} with arguments {@code allowedStatements}, {@code allowedStatements}, {@link Threads#CURRENT}, {@code queryType} * @since 2.2 */ @Deprecated public C verify(int allowedStatements, Query query) throws WrongNumberOfQueriesError { return verify(SqlQueries.exactQueries(allowedStatements).type(adapter(query))); }
/** * Alias for {@link #verifyBetween(int, int, Threads, Query)} with arguments 0, 0, {@link Threads#CURRENT}, {@code queryType} * @since 2.2 */ @Deprecated public C verifyNever(Query query) throws WrongNumberOfQueriesError { return verify(SqlQueries.noneQueries().type(adapter(query))); }
/** * Adds an expectation to the current instance that at least {@code minAllowedStatements} and at most * {@code maxAllowedStatements} were called between the creation of the current instance * and a call to {@link #verify()} method * @since 2.2 */ @Deprecated public C expectBetween(int minAllowedStatements, int maxAllowedStatements, Query query) { return expect(SqlQueries.queriesBetween(minAllowedStatements, maxAllowedStatements).type(adapter(query))); }
/** * Verifies that at least {@code minAllowedStatements} and at most * {@code maxAllowedStatements} were called between the creation of the current instance * and a call to {@link #verify()} method * @throws WrongNumberOfQueriesError if wrong number of queries was executed * @since 2.2 */ @Deprecated public C verifyBetween(int minAllowedStatements, int maxAllowedStatements, Query query) throws WrongNumberOfQueriesError { return verify(SqlQueries.queriesBetween(minAllowedStatements, maxAllowedStatements).type(adapter(query))); }
/** * Verifies that at least {@code minAllowedStatements} and at most * {@code maxAllowedStatements} were called between the creation of the current instance * and a call to {@link #verify()} method * @throws WrongNumberOfQueriesError if wrong number of queries was executed * @since 2.2 */ @Deprecated public C verifyBetween(int minAllowedStatements, int maxAllowedStatements, Query query) throws WrongNumberOfQueriesError { return verify(SqlQueries.queriesBetween(minAllowedStatements, maxAllowedStatements).type(adapter(query))); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, 0, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectNever(Threads threadMatcher, Query query) { return expect(SqlQueries.noneQueries().threads(threadMatcher).type(adapter(query))); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, 0, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectNever(Query query, Threads threadMatcher) { return expect(SqlQueries.noneQueries().type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #verifyBetween(int, int, Threads, Query)} with arguments 0, 0, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C verifyNever(Query query, Threads threadMatcher) throws WrongNumberOfQueriesError { return verify(SqlQueries.noneQueries().type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments {@code allowedStatements}, {@code allowedStatements}, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expect(int allowedStatements, Threads threadMatcher, Query query) { return expect(SqlQueries.exactQueries(allowedStatements).threads(threadMatcher).type(adapter(query))); }
/** * Alias for {@link #verifyBetween(int, int, Threads, Query)} with arguments 0, 1, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C verifyAtMostOnce(Query query, Threads threadMatcher) throws WrongNumberOfQueriesError { return verify(SqlQueries.atMostOneQuery().type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments {@code allowedStatements}, {@code allowedStatements}, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expect(int allowedStatements, Query query, Threads threadMatcher) { return expect(SqlQueries.exactQueries(allowedStatements).type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, 1, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectAtMostOnce(Query query, Threads threadMatcher) { return expect(SqlQueries.atMostOneQuery().type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments {@code allowedStatements}, {@link Integer#MAX_VALUE}, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectAtLeast(int allowedStatements, Threads threadMatcher, Query query) { return expect(SqlQueries.minQueries(allowedStatements).threads(threadMatcher).type(adapter(query))); }
/** * Verifies that at least {@code minAllowedStatements} and at most * {@code maxAllowedStatements} were called between the creation of the current instance * and a call to {@link #verify()} method * @throws WrongNumberOfQueriesError if wrong number of queries was executed * @since 2.2 */ @Deprecated public C verifyBetween(int minAllowedStatements, int maxAllowedStatements, Query query, Threads threadMatcher) throws WrongNumberOfQueriesError { return verify(SqlQueries.queriesBetween(minAllowedStatements, maxAllowedStatements).type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, 0, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectNever(Threads threadMatcher, Query query) { return expect(SqlQueries.noneQueries().threads(threadMatcher).type(adapter(query))); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, 0, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectNever(Query query, Threads threadMatcher) { return expect(SqlQueries.noneQueries().type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #expectBetween(int, int, Threads, Query)} with arguments 0, {@code allowedStatements}, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C expectAtMost(int allowedStatements, Query query, Threads threadMatcher) { return expect(SqlQueries.maxQueries(allowedStatements).type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #verifyBetween(int, int, Threads, Query)} with arguments {@code allowedStatements}, {@code allowedStatements}, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C verify(int allowedStatements, Query query, Threads threadMatcher) throws WrongNumberOfQueriesError { return verify(SqlQueries.exactQueries(allowedStatements).type(adapter(query)).threads(threadMatcher)); }
/** * Alias for {@link #verifyBetween(int, int, Threads, Query)} with arguments {@code allowedStatements}, {@link Integer#MAX_VALUE}, {@code threads}, {@code queryType} * @since 2.2 */ @Deprecated public C verifyAtLeast(int allowedStatements, Threads threadMatcher, Query query) throws WrongNumberOfQueriesError { return verify(SqlQueries.minQueries(allowedStatements).threads(threadMatcher).type(adapter(query))); }