/** * Execute the {@link Callable#call()} method, record the SQL queries * and return the {@link Spy.SpyWithValue} object with stats * @param callable code to test * @param <V> type of return value * @return statistics on executed queries * @throws Exception if underlying code under test throws an Exception * @since 2.0 */ @SuppressWarnings("unchecked") @Deprecated public static <V> Spy.SpyWithValue<V> call(Callable<V> callable) throws Exception { return Sniffy.call(callable); }
/** * Execute the {@link Callable#call()} method, record the SQL queries * and return the {@link Spy.SpyWithValue} object with stats * @param callable code to test * @param <V> type of return value * @return statistics on executed queries * @throws Exception if underlying code under test throws an Exception * @since 2.0 */ @SuppressWarnings("unchecked") @Deprecated public static <V> Spy.SpyWithValue<V> call(Callable<V> callable) throws Exception { return Sniffy.call(callable); }