Package | Description |
---|---|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Throwable> |
LuceneTestCase.expectThrows(java.lang.Class<T> expectedType,
LuceneTestCase.ThrowingRunnable runnable)
Checks a specific exception class is thrown by the given runnable, and returns it.
|
static <T extends java.lang.Throwable> |
LuceneTestCase.expectThrows(java.lang.Class<T> expectedType,
java.lang.String noExceptionMessage,
LuceneTestCase.ThrowingRunnable runnable)
Checks a specific exception class is thrown by the given runnable, and returns it.
|
static <TO extends java.lang.Throwable,TW extends java.lang.Throwable> |
LuceneTestCase.expectThrows(java.lang.Class<TO> expectedOuterType,
java.lang.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 java.lang.Throwable,TW extends java.lang.Throwable> |
LuceneTestCase.expectThrowsAnyOf(java.util.LinkedHashMap<java.lang.Class<? extends TO>,java.util.List<java.lang.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 java.lang.Throwable> |
LuceneTestCase.expectThrowsAnyOf(java.util.List<java.lang.Class<? extends T>> expectedTypes,
LuceneTestCase.ThrowingRunnable runnable)
Checks a specific exception class is thrown by the given runnable, and returns it.
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.