TutorAssertions

public class TutorAssertions(source)

Constructors

Link copied to clipboard
public void TutorAssertions()

Functions

Link copied to clipboard
public static void assertNormal(Runnable runnable)
public static R assertNormal<R>(Callable<R> callable)
public static void assertNormal(Runnable runnable, String message)
public static void assertNormal(Runnable runnable, Supplier<String> messageSupplier)
public static R assertNormal<R>(Callable<R> callable, String message)
public static R assertNormal<R>(Callable<R> callable, Supplier<String> messageSupplier)
Shortcut for call and assertNormal.
Link copied to clipboard
public static E assertThrows<E extends Throwable>(Runnable runnable, Class<E> type)
public static E assertThrows<E extends Throwable>(Callable<? extends Object> callable, Class<E> type)
public static T assertThrows<T extends Throwable>(Runnable runnable, Class<T> type, String message)
public static T assertThrows<T extends Throwable>(Runnable runnable, Class<T> type, Supplier<String> messageSupplier)
public static T assertThrows<T extends Throwable>(Callable<? extends Object> callable, Class<T> type, String message)
public static T assertThrows<T extends Throwable>(Callable<? extends Object> callable, Class<T> type, Supplier<String> messageSupplier)
Shortcut for call and assertThrows.
Link copied to clipboard
public static Call<Void> call(Runnable runnable)
Calls runnable and returns a corresponding Call object.
public static Call<R> call<R>(Callable<R> callable)
Calls callable and returns a corresponding Call object.