Package-level declarations

Types

Link copied to clipboard

A TestRule that guarantees the execution of .after even if an exception has been thrown from delegate Statement. This is much like AfterClass or After annotations but can be used with RuleChain to guarantee the order of execution.

Link copied to clipboard

A generator emitting simple ASCII alphanumeric letters and numbers from the set (newlines not counted):

Link copied to clipboard

A generator emitting simple ASCII characters from the set (newlines not counted):

Link copied to clipboard

A generator emitting simple ASCII characters from the set (newlines not counted):

Link copied to clipboard

Base test case for BitSets.

Link copied to clipboard

Base test class for DocIdSets.

Link copied to clipboard

Utility classes for selecting numbers at random, but not necessarily in an uniform way. The implementation will try to pick "evil" numbers more often than uniform selection would. This includes exact range boundaries, numbers very close to range boundaries, numbers very close (or equal) to zero, etc.

Link copied to clipboard

A string generator from a predefined set of codepoints or characters.

Link copied to clipboard
object English

Converts numbers to english strings for testing.

Link copied to clipboard

Hackidy-Hack-Hack to cause a test to fail on non-bulk merges

Link copied to clipboard
class LineFileDocs(random: Random, path: String = LuceneTestCase.TEST_LINE_DOCS_FILE) : AutoCloseable

Minimal port of benchmark's LneDocSource + DocMaker, so tests can enum docs from a line file created by benchmark's WriteLineDoc task

Link copied to clipboard
open class LuceneTestCase
Link copied to clipboard

An InfoStream implementation that disables all logging. It also asserts if message is called while disabled.

Link copied to clipboard

Crawls object graph to collect RAM usage for testing

Link copied to clipboard
open class RandomizedTest

ported from package RandomizedTest

Link copied to clipboard
Link copied to clipboard

port of com.carrotsearch.randomizedtesting.generators.RandomPicks

Link copied to clipboard

A facade to various implementations of StringGenerator interface.

Link copied to clipboard

A string generator that emits valid unicodeGenerator codepoints.

Link copied to clipboard
object Rethrow

Sneaky: rethrowing checked exceptions as unchecked ones. Eh, it is sometimes useful...

Link copied to clipboard
abstract class StringGenerator

A StringGenerator generates random strings composed of characters. What these characters are and their distribution depends on a subclass.

Link copied to clipboard

Fake resource loader for tests: works if you want to fake reading a single file

Link copied to clipboard
annotation class TestGroup(val name: String = "", val sysProperty: String = "", val enabled: Boolean = true)
Link copied to clipboard
Link copied to clipboard

Setup and restore suite-level environment (fine grained junk that doesn't fit anywhere else).

Link copied to clipboard
class TestUtil
Link copied to clipboard

Intentionally slow IndexOutput for testing.

Link copied to clipboard

A string generator that emits valid unicodeGenerator codepoints.