tuweni / org.apache.tuweni.junit / LuceneIndexWriterExtension

LuceneIndexWriterExtension

open class LuceneIndexWriterExtension : ParameterResolver, AfterAllCallback (source)

A junit5 extension, that provides a memory-backed Lucene index writer for tests. The index writer is created for the test suite and injected into any tests with parameters annotated by LuceneIndexWriter.

Constructors

<init>

A junit5 extension, that provides a memory-backed Lucene index writer for tests. The index writer is created for the test suite and injected into any tests with parameters annotated by LuceneIndexWriter.

LuceneIndexWriterExtension()

Functions

afterAll

open fun afterAll(context: ExtensionContext!): Unit

resolveParameter

open fun resolveParameter(parameterContext: ParameterContext!, extensionContext: ExtensionContext!): Any!

supportsParameter

open fun supportsParameter(parameterContext: ParameterContext!, extensionContext: ExtensionContext!): Boolean