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 <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.
|
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.