|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Request
that, when processed, will run all the tests
in a class.
Description
as a child of the receiver.
Before
method you need to release them
after the test runs.BeforeClass
method you need to release them
after all the tests in the class have run.Filter
that passes all tests through.
suite()
method).Runner
to cause all tests it intends to run
to first be checked with the filter.
runner
using comparator
Request
that, when processed, will run all the tests
in a set of classes.
assertEquals(String, String)
fails.Description
named name
.
Description
named after testClass
Description
of a single test named name
in the class clazz
.
Description
of a single test named name
in the class clazz
.
Description
describes a test which is to be run or has been run.Object.equals(java.lang.Object)
invokedMethod?
Failure
holds a description of the failed test and the
exception that was thrown while running it.Failure
with the given description and exception.
filter
.
filter
is applied
Description
equals desiredDescription
Runner
for this Request
true
.Object.equals(java.lang.Object)
invokedMethod?JUnitCore
is a facade for running tests.JUnitCore
to run tests.
args
.
Request
that, when processed, will run a single test.
filter
or sort
tests.Runner
implementations.Parameterized
implements parameterized
tests.Request
is an abstract description of tests to be run.Result
collects and summarizes information from running multiple
tests.classes
.
request
.
test
.
classes
.
RunListener
and override the appropriate methods.Runner
runs tests and notifies a RunNotifier
of significant events as it does so.@RunWith
or extends a class annotated
with @RunWith
, JUnit will invoke the class it references to run the
tests in that class instead of the runner built into JUnit.sorter
Sorter
orders tests.Sorter
that uses comparator
to sort tests
comparator
For example, here is code to run a test suite in alphabetical order:
Suite
as a runner allows you to manually
build a suite containing tests from many classes.SuiteClasses
annotation specifies the classes to be run when a class
annotated with @RunWith(Suite.class)
is run.Test
annotation tells JUnit that the public void
method
to which it is attached can be run as a test case.Ignore
.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |