/** * Asserts that the specified {@link Callable} submitted to the {@link JavaApplication} * will eventually match the specified matcher. * * @param application * @param callable * @param matcher * @param <T> * * @throws AssertionError */ public static <T> void assertThat(JavaApplication<?> application, Callable<T> callable, Matcher<?> matcher) throws AssertionError { assertThat(new DeferredRemoteExecution<T>(application, callable), matcher); } }
/** * Asserts that the specified {@link Callable} submitted to the {@link JavaApplication} * will eventually match the specified matcher. * * @param <T> the type of value produced by the {@link Deferred} * * @param application the {@link JavaApplication} to which the {@link Callable} will be submitted * @param callable the {@link Callable} * @param matcher the {@link Matcher} representing the desire condition to match * * @throws AssertionError if the assertion fails */ public static <T> void assertThat(JavaApplication<?> application, Callable<T> callable, Matcher<?> matcher) throws AssertionError { assertThat(new DeferredRemoteExecution<T>(application, callable), matcher); } }