static <T extends Throwable> T |
LuceneTestCase.expectThrows(Class<T> expectedType,
String noExceptionMessage,
LuceneTestCase.ThrowingRunnable runnable) |
Checks a specific exception class is thrown by the given runnable, and returns it.
|
static <T extends Throwable> T |
LuceneTestCase.expectThrows(Class<T> expectedType,
LuceneTestCase.ThrowingRunnable runnable) |
Checks a specific exception class is thrown by the given runnable, and returns it.
|
static <TO extends Throwable,TW extends Throwable> TW |
LuceneTestCase.expectThrows(Class<TO> expectedOuterType,
Class<TW> expectedWrappedType,
LuceneTestCase.ThrowingRunnable runnable) |
Checks that specific wrapped and outer exception classes are thrown by the given runnable, and
returns the wrapped exception.
|
static <TO extends Throwable,TW extends Throwable> TO |
LuceneTestCase.expectThrowsAnyOf(LinkedHashMap<Class<? extends TO>,List<Class<? extends TW>>> expectedOuterToWrappedTypes,
LuceneTestCase.ThrowingRunnable runnable) |
Checks that one of the specified wrapped and outer exception classes are thrown by the given
runnable, and returns the outer exception.
|
static <T extends Throwable> T |
LuceneTestCase.expectThrowsAnyOf(List<Class<? extends T>> expectedTypes,
LuceneTestCase.ThrowingRunnable runnable) |
Checks a specific exception class is thrown by the given runnable, and returns it.
|