All Classes and Interfaces
Class
Description
Stream reader returns bytes which are finally sent to the forked jvm std-input-stream.
The base class of an event.
Configurator that relies on reflection to set parameters in TestNG
Describes a property setter by method name and parameter class
Default implementation of
MasterProcessChannelProcessorFactory
.The channel used for reads which cannot be implicitly closed after the operational Thread
is
interrupted
.The channel used for writes which cannot be implicitly closed after the operational Thread
is
interrupted
.A provider base class that all providers should extend to shield themselves from interface changes
The base class of an event of standard streams.
Underflow - could not completely read out al bytes in one call.
The base class of stream encoder.
Abstract base class for running tests using Surefire.
Determines whether the plugin should fail if no tests found to run.
The base class of an event of test control.
Abstract parallel scheduling strategy in private package.
Deprecated.
The Balancer controls the maximum of concurrent threads in the current Scheduler(s) and prevents
from own thread resources exhaustion if other group of schedulers share the same pool of threads.
Internal generic wrapper.
Constants used by the serializer/deserializer
Knows how to serialize and deserialize the booter configuration.
Knows how to serialize and deserialize the booter configuration.
Deprecated.
Configuration for forking tests.
Data transfer object of class and method literals.
Creates an index for class/method.
Filters stacktrace element by class name.
An ordered list of classpath elements with set behaviour
A Classpath is immutable and thread safe.
Deprecated.
Represents the classpaths for the BooterConfiguration.
The base thread class used to handle a stream, transforms the stream to an object.
This iterator is marked as stopped if
CloseableIterator.isClosed()
returns true
.Encapsulates data and command sent from master to forked process.
Hiding CommandReader instance in provider.
magic number : opcode [: opcode specific data]*
A
Commandline
implementation.Programming model with this class:
CLI options.
Command listener interface.
Reader of commands coming from plugin(master) process.
Stream reader returns bytes which ar finally sent to the forked jvm.
Forks the execution of task and the task completion.
Concurrency utilities.
Deprecated.
Deprecated.
Just like TestNGReporter, but explicitly implements IResultListener; this interface is new in TestNG 5.5
Configurator for passing configuration properties to TestNG
The event with a message for console debug level.
The event with a message for console error level.
The event with a message for console info level.
Allows providers to write console messages on the running maven process.
Decorator around
ConsoleLogger
.Deals with system.out/err.
Surefire output consumer proxy that writes test output to a
File
for each test suite.Extension for logger.
Extension listener for logger.
Base class for console reporters.
The event with a message for console warning level.
The control event of bye.
The control event of requesting a next test.
The control event of stopping on next test.
Decrements
countdown
and calls closeable
if reached zero.Counts down the calls
CountDownLauncher.countDown()
and the last reaching zero executes the CountDownLauncher.job()
.Creates new daemon Thread.
Reader stream sends commands to forked jvm std-
input-stream
.Deprecated.
Basic framework which constructs CLI.
Provides reporting modules on the plugin side.
Applies the final runorder of the tests
Deprecated.
Scans dependencies looking for tests.
Represents a deserialize stacktracewriter that has been
marshalled across to the plugin from the fork.
Destroys the embedded thread-pool.
Outputs test system out/system err directly to the console
Just a step on the road to getting the separation of reporting concerns operating properly.
Just a step on the road to getting the separation of reporting concerns operating properly.
Scans directories looking for tests.
Deprecated.
Dumps lost commands and caused exceptions in forked JVM.
Dumps a text or exception in dump file.
Super type of events.
magic number : opcode : run mode [: opcode specific data]*
Handler of events.
Status of
Used together with shutdown hook.
ParallelComputer runtime
.Used together with shutdown hook.
Stores and retrieves atomic events
used by
FailFastNotifier
and TestNG provider.Sends an even in
FailFastEventsSingleton
that failure has appeared.Notifies TestNG core skipping remaining tests after first failure has appeared.
Base class for file reporters.
Utils class for file-based reporters
Moved nested class from
JUnitCoreWrapper
.It's a session object used only by a particular Thread in ForkStarter
and communicates with a dedicated forked JVM.
Knows how to reconstruct *all* the state transmitted over stdout by the forked process.
Configuration for forking tests.
The part of the booter that is unique to a forked vm.
magic number : run mode : opcode [: opcode specific data]*
Events sent back to the plugin process.
Creates ForkingReporters, which are typically one instance per TestSet or thread.
Encodes the full output of the test run to the "target".
The properties related to the current JVM.
This is the plugin extension as a factory of
ForkChannel
.A bucket from which fork numbers can be drawn.
Starts the fork or runs in-process.
Resolves string test patterns in object oriented patterns
P
.Copies input map in
constructor
, and Entries are linked and thread-safe.Reports errors to dump file.
Starts the provider in the same VM as the surefire plugin.
Run integration tests using Surefire.
After the authentication has failed,
ForkChannel.tryConnectToClient()
throws InvalidSessionIdException
and ForkStarter
should close CommandlineExecutor
.The sequentially executing strategy in private package.
Loads classes from jar files added via
IsolatedClassLoader.addURL(URL)
.Reflection facade for JUnit3 classes
This implementation of
RunListener
handles OutputReportEntry
in the
output receiver
, downcasting to TestOutputReportEntry
, and
delegates the report entry to the TestReportListener
.Missing tests ? This class is basically a subset of the JUnit4TestChecker, which is tested
to boredom and back.
Looks for additional junit48-like features
Utility method used among all JUnit4 providers
JUnit4 reflection helper
RunListener for JUnit4, delegates to our own RunListener
Writes out a specific
Failure
for
surefire as a stacktrace.The extension of
logger
for JUnit5.Extension of
file and console reporter of test-set
for JUnit5.The extension of
xml reporter
based on XSD version 3.0 for JUnit5.JUnitCore solves bugs in original junit class
JUnitCore
.Noteworthy things about JUnit4 listening:
A class that is annotated with @Ignore will have one invocation of "testSkipped" with source==name A method that is annotated with @Ignore will have a invocation of testSkipped with source and name distinct Methods annotated with @Ignore trigger no further events.
A class that is annotated with @Ignore will have one invocation of "testSkipped" with source==name A method that is annotated with @Ignore will have a invocation of testSkipped with source and name distinct Methods annotated with @Ignore trigger no further events.
Encapsulates access to JUnitCore
JUnit 5 Platform Provider.
Test listener to record all the failures during one run
JUnit3 test set
The event for the JVM exit error.
A key-value source obeying the geneal constrains of java.util.Properties
Launcher proxy which delays the most possible the initialization of the real JUnit
Launcher in order to avoid stream/stdout corruption due to early logging.
A variant of TestsToRun that is provided with test class names
from an
System.in
.The main purpose of this class is to bind the
command reader
reading the commands from
CommandReader
, serializing them and writing the stream to the
sub-process
.The factory of
LegacyForkChannel
.Producer of encoder and decoder for process pipes.
Write the trace out for a POJO test.
Deprecated.
An abstraction for physical decoder of commands.
An abstraction for physical encoder of events.
The SPI interface, a factory of an encoder and a decoder.
Commands which are sent from plugin to the forked jvm.
Only run test methods in the given failure set.
For internal use only
Deprecated.
Jigsaw class-path and module-path.
The standard error logger for the error stream of the forked JMV,
see
ForkStarter
.The standard output logger for the output stream of the forked JMV,
see org.apache.maven.plugin.surefire.extensions.SurefireForkChannel.
Deprecated.
Parallel strategy for non-shared thread pool in private package.
Remote interface of forked JVM with command methods.
Extends
JUnit notifier
,
encapsulates several different types of JUnit listeners
, and
fires events to listeners.This balancer implements
Balancer
and does not do anything -no blocking operation.Logger doing nothing rather than using null.
TestcycleConsoleOutputReceiver doing nothing rather than using null.
ConsoleReporter doing nothing rather than using null.
FileReporter doing nothing rather than using null.
always returns true
FileReporter doing nothing rather than using null.
StatisticsReporter doing nothing rather than using null.
Similar to Java 7 java.util.Objects.
Minimum data requirement for report entry.
ParallelComputer extends JUnit
Computer
and has a shutdown functionality.An algorithm which configures
ParallelComputer
with allocated thread resources by given
JUnitCoreParameters
.Loads platform specifics.
Wrapper logger of miscellaneous implementations of
Logger
.Write the trace out for a POJO test.
Executes a JUnit3 test class
Recognizes PID of Plugin process and determines lifetime.
Console logger for
PrintStream
.Immutable object which encapsulates PID and elapsed time (Unix) or start time (Windows).
Represents the surefire configuration that passes all the way into the provider
classloader and the provider.
Creates the surefire provider.
Injected into the providers upon provider construction.
Used to get additional provider-specific JVM arguments.
Relocates class names when running with relocated provider
Describes a single entry for a test report
Type of an entry in the report
Bits and pieces of reporting configuration that seem to be necessary on the provider side.
Exception occurring during report generation.
Used by the providers to request (per-thread) run listeners.
Utility for reporter classes.
This interface is used to merge reports in
ForkStarter
.Deprecated.
will be renamed to ResolvedTestPattern
Type of patterns in ResolvedTest constructor.
Wraps
ResolvePathResult
and place marker.Used by providers to report results.
Determines the purpose the provider started the tests.
Sets the run mode in a listener, reflects the run mode of testset execution.
Counts number of JUnit suites, classes and methods.
A RunOrder specifies the order in which the tests will be run.
Represents a test-run-result; this may be from a single test run or an aggregated result.
Guards against misbehaving throwables
Schedules tests, controls thread resources, awaiting tests and other schedulers finished, and
a master scheduler can shutdown slaves.
The factory of
SchedulingStrategy
.Specifies the strategy of scheduling whether sequential, or parallel.
SPI loader for Surefire/Failsafe should use
current ClassLoader
.Parallel strategy for shared thread pool in private package.
Specifies the way how the forked jvm should be terminated after
class AbstractCommandStream is closed and CTRL+C.
Populates collection
triggeredTests
of descriptions started before shutting down.Wrapper of
ParallelComputer status information
and tests been populated before
a shutdown hook has been triggered.Basic implementation of
TestSetReportEntry
(immutable and thread-safe object).Used to execute tests annotated with net.jcip.annotations.NotThreadSafe.
Deprecated.
Filter for test class files
StackTrace element filter.
Ability to write a stack trace, filtered to omit locations inside Surefire and Maven.
The event of standard error stream.
The event of standard error stream with new line.
The event of standard output stream.
The event of standard output stream with new line.
Configuration that is used by the SurefireStarter but does not make it into the provider itself.
All the parameters used to construct reporters
Extension for stateless reporter.
Creates a report upon handled event "testSetCompleted".
Configuration passed to the constructor of default reporter
org.apache.maven.plugin.surefire.report.StatelessXmlReporter.
Extension listener for stateless console reporter of test-set.
Extension listener for stateless file reporter of test-set.
Extension listener for stateless file and console reporter of test-set.
Used in
CloseableDaemonThread
.Covers configuration parameter
skipAfterFailureCount
.Commands which are sent from plugin to the forked jvm.
Common
java.lang.String
manipulation routines.Encapsulates exceptions thrown during Surefire forking.
Default implementation for extension of console logger.
Does dependency resolution and artifact handling for the surefire plugin.
An error occurring during the invocation of Surefire via an alternate class loader.
This interface contains all the common parameters that have different implementations in Surefire vs IntegrationTest
The TCP/IP server accepting only one client connection.
The factory of
SurefireForkChannel
.Helper class for surefire plugins
Producer of TCP/IP encoder and decoder.
Run tests using Surefire.
A properties implementation that preserves insertion order.
Interface to be implemented by all Surefire providers.
Exception indicating that surefire had problems with reflection.
Does reflection based invocation of the surefire methods.
The parameters required to report on a surefire execution.
Default implementation for extension of
StatelessXmlReporter
in plugin.Default implementation for extension of
test-set event listener for stateless file and console reporter
in plugin.Describes a single test set
Deprecated.
The event of system property.
JDK 9 support.
Contains information about the detected test artifact
The event for the failed assumption.
JUnit Description parser.
The event for the erroneous test.
The event for the failed test.
Generic interface of test filter.
Dispatches commands without tests.
Builds
streams
, registers cachable commands
and provides accessible API to dispatch immediate commands to all atomically
alive streams.Invocation Handler for TestListener proxies to delegate to our
RunListener
Resolved multi pattern filter e.g.
Deprecated.
Maintains per-thread test result state for a single test method.
TestNG 4.7 and 5.1 configurator.
TestNG 5.10 configurator.
TestNG 5.13 configurator.
TestNG 5.14.1 configurator.
TestNG 5.14.3 configurator.
TestNG 5.2 configurator.
TestNG 6.0 configurator.
TestNG 7.4.0 configurator.
Test suite for TestNG based on a directory of Java test classes.
Contains utility methods for executing TestNG.
TestNG configurator for 5.3+ versions.
Listens for and provides and adaptor layer so that
TestNG tests can report their status to the current
RunListener
.Handles suite xml file definitions for TestNG.
A receiver of stdout/sterr output from running tests.
This report entry should be used in
TestOutputReceiver.writeTestOutput(OutputReportEntry)
.An
InputStream
that, when read, provides test class names out of a queue.This architecture has two sides (forked JVM, plugin JVM) implementing the same interface
TestReportListener
:Information about the requested test.
Method filter used in
JUnit4Provider
.Deprecated.
The event for completed testset.
Exception that indicates a test failed.
Describes test-set when started and finished.
Reports data for a single test set.
The event for started testset.
Maintains per-thread test result state.
The event for the skipped test.
The event for started test.
Contains all the tests that have been found according to specified include/exclude
specification for a given surefire run.
The event for succeeded test.
Abstract class which implements common functions.
Knows how to reconstruct *all* the state transmitted over Channel by the forked process.
This synchronization helper mostly avoids the locks.
A deferred file output stream decorator that recodes the bytes written into the stream from the VM default encoding
to UTF-8.
Verify integration tests ran using Surefire.
We need to wrap runners in a suite and count children of these runners.
Extends
WritableByteChannel
with buffered (i.e.