tuweni / org.apache.tuweni.junit

Package org.apache.tuweni.junit

Types

BouncyCastleExtension

A junit5 extension, that installs a BouncyCastle security provider.

open class BouncyCastleExtension : BeforeAllCallback

LuceneIndexWriterExtension

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.

open class LuceneIndexWriterExtension : ParameterResolver, AfterAllCallback

RedisServerExtension

A junit5 extension, that sets up an ephemeral Redis server for tests. The ephemeral Redis server is created with a random free port for the test suite and injected into any tests with parameters of type Integer annotated with RedisPort NOTE: Redis does not support picking a random port on its own. This extension tries its best to test free ports and avoid collisions.

class RedisServerExtension : ParameterResolver, AfterAllCallback

TempDirectoryExtension

A junit5 extension, that provides a temporary directory for tests. The temporary directory is created for the test suite and injected into any tests with parameters annotated by TempDirectory.

class TempDirectoryExtension : ParameterResolver, AfterAllCallback

VertxExtension

A junit5 extension, that provides a Vert.X instance for tests. The Vert.X instance created for the test suite and injected into any tests with parameters annotated by VertxInstance.

open class VertxExtension : ParameterResolver, AfterAllCallback

Annotations

LuceneIndex

A parameter annotation for injecting a Lucene index directory into junit5 tests.

class LuceneIndex

LuceneIndexWriter

A parameter annotation for injecting a Lucene index writer into junit5 tests.

class LuceneIndexWriter

RedisPort

A parameter annotation for injecting the running Redis server port into junit5 tests.

class RedisPort

TempDirectory

A parameter annotation for injecting a temporary directory into junit5 tests.

class TempDirectory

VertxInstance

A parameter annotation for injecting a temporary Vert.X instance into junit5 tests.

class VertxInstance