Package | Description |
---|---|
org.apache.lucene.util |
General test support.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
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> |
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> |
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> |
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> |
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.