Uses of Interface
org.apache.lucene.tests.util.LuceneTestCase.ThrowingRunnable
-
Uses of LuceneTestCase.ThrowingRunnable in org.apache.lucene.tests.util
Modifier and TypeMethodDescriptionstatic <T extends Throwable>
TLuceneTestCase.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>
TLuceneTestCase.expectThrows
(Class<T> expectedType, LuceneTestCase.ThrowingRunnable runnable) Checks a specific exception class is thrown by the given runnable, and returns it.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.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>
TLuceneTestCase.expectThrowsAnyOf
(List<Class<? extends T>> expectedTypes, LuceneTestCase.ThrowingRunnable runnable) Checks a specific exception class is thrown by the given runnable, and returns it.