Creates a new Conductor, passes the Conductor to the
specified test function, and ensures that conduct gets invoked
on the Conductor.
Creates a new Conductor, passes the Conductor to the
specified test function, and ensures that conduct gets invoked
on the Conductor.
After the test function returns (so long as it returns normally and doesn't
complete abruptly with an exception), this method will determine whether the
conduct method has already been called (by invoking
conductingHasBegun on the Conductor). If not,
this method will invoke conduct to ensure that the
multi-threaded test is actually conducted.
Trait that can pass a new
Conductorfixture into tests, for use in suites such asMultipleFixtureFunSuiteorMultipleFixtureSpec, which facilitate writing tests that take different types of fixtures.Here's an example of the use of this trait to test the
ArrayBlockingQueueconcurrency abstraction fromjava.util.concurrent:For an explanation of how these tests work, see the documentation for
Conductor.