## Uses of Interface
org.apache.lucene.util.LuceneTestCase.ThrowingRunnable

- Packages that use LuceneTestCase.ThrowingRunnable
  Package | Description
  --- | ---
  org.apache.lucene.util | General test support.

- - ### Uses of LuceneTestCase.ThrowingRunnable in org.apache.lucene.util

    Methods in org.apache.lucene.util with parameters of type LuceneTestCase.ThrowingRunnable
    Modifier and Type | Method and Description
    --- | ---
    `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 <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 <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.

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.