|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Request that, when processed, will run all the tests
in a class.
o to the set.
i to the set.
i to the set.
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.
type
suite()
method).testMethod, with no params
assigned.
SelfDescribing value to this description.
SelfDescribing objects
to the description.
Statement to implement an additional
test-running rule.
Runner to cause all tests it intends to run
to first be checked with the filter.
runner using comparator
ArrayComparisonFailure with an error text and the array's
dimension that was not equal
assertEquals(double expected, double actual, double epsilon)
instead
assertEquals(String message, double expected, double actual, double epsilon)
instead
actual satisfies the condition specified by
matcher.
actual satisfies the condition specified by
matcher.
StringDescription.toString(SelfDescribing).
objects, the test will halt and be ignored.
actual satisfies the condition specified by matcher.
false, the test will halt and be ignored.
Description that is stored as a string.klass
callable.
matcher does not match value.
Request that, when processed, will run all the tests
in a set of classes.
Request that, when processed, will run all the tests
in a set of classes with the default Computer.
BlockJUnit4ClassRunner in place of JUnit4ClassRunner.Request that, when processed, will run all the tests
in a class.
assertEquals(String, String) fails.longs, supporting low-contention CAS
operations.o is in the set.
i is in the set.
NonBlockingHashMapLong.containsKey(long).
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.
ConcurrentAutoTable.add(long) with -1
Description describes a test which is to be run or has been run.Set view of the mappings contained in this map.
Set view of the mappings contained in this map.
Set view of the mappings contained in this map.
Set view of the mappings contained in this map.
Object.equals(java.lang.Object) invokedMethod?
Object.equals(java.lang.Object) invokedMethod?
ConcurrentAutoTable.get().
Throwable if anything goes wrong.
matcher to the list of requirements for any thrown exception.
type
substring
matcher to the list of requirements for the message
returned from any thrown exception.
Failure holds a description of the failed test and the
exception that was thrown while running it.Failure with the given description and exception.
count failures
filter.
Request.filter is applied
Description
equals desiredDescription
MaxHistory from file, or generates a new one that
will be saved to file.
BlockJUnit4ClassRunner, but custom runners can make other uses)FrameworkMethod for method
null
if this map contains no mapping for the key.
null
if this map contains no mapping for the key.
NonBlockingHashMapLong.get(long).
null
if this map contains no mapping for the key.
null
if this map contains no mapping for the key.
target
annotationClass.
annotationClass.
annotationType on this method, if
one exists.
AssertionError if there are more or less than one.
Runner for this Request
classes, building Runners with builder.
TestClass object wrapping the class to be executed.
string
string
ConcurrentAutoTable.add(long) with +1
InitializationError with one or more
errors errors as causes
InitializationError with one cause
with message string
ConcurrentAutoTable.get(), included for completeness.
target with
parameters params.
true.Object.equals(java.lang.Object) invokedMethod?Iterator.
BlockJUnit4ClassRunner in place of JUnit4ClassRunner.
This may disappear as soon as 1 April 2009JUnitCore is a facade for running tests.JUnitCore to run tests.
Set view of the keys contained in this map.
Set view of the keys contained in this map; with care
the keys may be iterated over without auto-boxing.
Set view of the keys contained in this map.
Set view of the keys contained in this map.
ConcurrentAutoTable.get(), included for completeness.
args.
Filter that only runs the single method described by
desiredDescription
Request that, when processed, will run a single test.
BlockJUnit4ClassRunner in place of JUnit4ClassRunner.BlockJUnit4ClassRunner in place of JUnit4ClassRunner.long.
ConcurrentHashMap
with better scaling properties and generally lower costs to mutate the Map.ConcurrentHashMap
with primitive long keys, better scaling properties and
generally lower costs.Iterator and Enumeration
interfaces, generified to the Long class and supporting a
non-auto-boxing NonBlockingHashMapLong.IteratorLong.nextLong() function.NonBlockingHashMap making it implement the
Set interface.NonBlockingHashSet.
ConcurrentHashMap
with better scaling properties and generally lower costs to mutate the Map.ConcurrentHashMap
with better scaling properties and generally lower costs to mutate the Map.longs.Sorter that leaves elements in an undefined order
Request.RunnerMatchers for use with
the Assert.assertThat(Object, org.hamcrest.Matcher)
statementfilter or sort tests.Runner implementations.Parameterized implements parameterized tests.ParameterizedT.ConcurrentAutoTable.toString(), showing internal structure.
failures
type
NonBlockingHashMapLong.put(long, TypeV).
NonBlockingHashMap.put(TypeK, TypeV) if-and-only-if the key is not mapped.
NonBlockingHashMapLong.put(long, TypeV) if-and-only-if the key is not mapped.
NonBlockingHashMapLong.putIfAbsent(long, TypeV).
NonBlockingHashtable.put(TypeK, TypeV) if-and-only-if the key is not mapped.
NonBlockingIdentityHashMap.put(TypeK, TypeV) if-and-only-if the key is not mapped.
NonBlockingHashMap.remove(Object) if-and-only-if the key is mapped
to a value which is equals to the given value.
NonBlockingHashMapLong.IteratorLong.next() or NonBlockingHashMapLong.IteratorLong.nextLong().
NonBlockingHashMapLong.remove(long) if-and-only-if the key is mapped
to a value which is equals to the given value.
NonBlockingHashMapLong.remove(long).
NonBlockingHashMapLong.remove(long,Object).
o from the set.
NonBlockingHashtable.remove(Object) if-and-only-if the key is mapped
to a value which is equals to the given value.
NonBlockingIdentityHashMap.remove(Object) if-and-only-if the key is mapped
to a value which is equals to the given value.
o from the set.
i from the set.
put(key,val) if-and-only-if the key is
mapped to some value already.
put(key,newValue) if-and-only-if the key is
mapped a value which is equals to oldValue.
put(key,val) if-and-only-if the key is
mapped to some value already.
put(key,newValue) if-and-only-if the key is
mapped a value which is equals to oldValue.
NonBlockingHashMapLong.replace(long, TypeV).
NonBlockingHashMapLong.replace(long, TypeV).
put(key,val) if-and-only-if the key is
mapped to some value already.
put(key,newValue) if-and-only-if the key is
mapped a value which is equals to oldValue.
put(key,val) if-and-only-if the key is
mapped to some value already.
put(key,newValue) if-and-only-if the key is
mapped a value which is equals to oldValue.
Request is an abstract description of tests to be run.Result collects and summarizes information from running multiple
tests.class.
request.
request.
classes.
classes.
request.
test.
classes.
classes.
RunListener
and override the appropriate methods.Runner runs tests and notifies a RunNotifier
of significant events as it does so.children.
@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:
Description that is stored as a string.Suite as a runner allows you to manually
build a suite containing tests from many classes.@RunWith(Suite.class)
JUnitCore
SuiteClasses annotation specifies the classes to be run when a class
annotated with @RunWith(Suite.class) is run.suite()
method).Test annotation tells JUnit that the public void method
to which it is attached can be run as a test case.BlockJUnit4ClassRunner in place of JUnit4ClassRunner.TestClass wrapping klass.
TestFailure collects a failed test together with
the caught exception.Ignore.
BlockJUnit4ClassRunner in place of JUnit4ClassRunner.TestResult collects the results of executing
a test case.type
TestSuite is a Composite of Tests.long value converted to a string.
SelfDescribing object as a String.
errors if this method:
is not public, or
returns something other than void, or
is static (given isStatic is false), or
is not static (given isStatic is true).
errors if this method:
is not public, or
takes parameters, or
returns something other than void, or
is static (given isStatic is false), or
is not static (given isStatic is true).
Collection view of the values contained in this map.
Collection view of the values contained in this map.
Collection view of the values contained in this map.
Collection view of the values contained in this map.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||