Package com.carrotsearch.randomizedtesting
package com.carrotsearch.randomizedtesting
-
ClassDescriptionBase class for
TestMethodProvider
s based on annotations.A random with a delegate, preventingRandom.setSeed(long)
and locked to be used by a single thread.A filter forDescription.getClassName()
.Class model for a test suite.ClassModel.ModelBuilder<T_MEMBER extends Member,T_MODEL extends ClassModel.ClassElement<T_MEMBER, T_MODEL>> Allocation information (Thread, allocation stack) for tracking disposable resources.Test group conditions filter parser.A filter that matches something using globbing (*) pattern.Evaluates enabled/ disabled state for a given test group.Provide a test instance.We have our own "custom" assumption class because of JUnit's internal closed-up architecture.Method provider selecting tests that follow a name pattern oftest(.*)
.Method provider selectingTest
annotated public instance parameterless methods.Lifecycle stages for tracking resources.A filter forDescription.getMethodName()
.ASeedDecorator
to be used withSeedDecorators
annotation to modify the masterRandomness
with a hash off the suite's class name.Hash routines for primitive types.ObjectProcedure<KType>Context variables for an execution of a test suite (hooks and tests) running under aRandomizedRunner
.Per thread assigned resources.ARunner
implementation for running randomized test cases with predictable and repeatable randomness.Queue uncaught exceptions.Helper tuple (Method, instance params).Common scaffolding for subclassing randomized tests.Per-thread, per-lifecycle state randomness defined as an initial seed and the current Random instance.Rants about blocker limitations of JUnit...A builder for constructing "reproduce with" message.Thrown when a resource could not be released.Rethrowing checked exceptions as unchecked ones.Rethrow.Rethrower<T extends Throwable>Classy puzzler to rethrow any checked exception as an unchecked one.What kind of container are we in? Unfortunately we need to adjust to some "assumptions" containers make about runners.AThreadGroup
under which all tests (and hooks) are executed.This is an advanced feature.Utilities for parsing random seeds.This is never thrown.Global names for system properties controlling the behavior ofJUnit4
ANT task andRandomizedRunner
.Custom teeing stream that ensures both streams receive the output and no exceptions are quietly suppressed.A temporary path resource will be deleted at the end of a given lifecycle phase.A single test case entry composed of the test method and the arguments eventually passed to the test class's constructor.Responsible for providing individual test instances and their descriptions.Everything corresponding to thread leak control.A dummy class serving as the source of defaults for annotations.Runs aStatement
and keeps any exception and completion flag.Timeout parsing code and logic.A thread went wild.Utilities for dealing with throwables, stacks, etc.This is thrown on uncaught exceptions during suite or test execution.Validation utilities.OutputStream
implementation that transforms a byte stream to a character stream using a specified charset encoding and writes the resulting stream to aWriter
.Implements Xoroshiro128PlusRandom.