- addTest(Test) - Method in class junit.extensions.proxy.ProxyTestSuite
-
If the suite is not a
ProxyTestSuite, then the tests in the
suite are recursively enumerated and a proxy test suite is created with
the same name and tests.
- addTestSuite(Class) - Method in class junit.extensions.proxy.ProxyTestSuite
-
We override the implementation of
TestSuite.addTestSuite( Class theClass ) to wrap the
testClass in another instance of this
ProxyTestSuite class using the same delegate that was provided
to our constructor.
- assertEquals(boolean[], boolean[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, boolean[], boolean[]) - Static method in class junit.framework.TestCase2
-
Compares arrays of primitive values.
- assertEquals(byte[], byte[]) - Static method in class junit.framework.TestCase2
-
Compares byte[]s by value (not reference).
- assertEquals(String, byte[], byte[]) - Static method in class junit.framework.TestCase2
-
Compares byte[]s by value (not reference).
- assertEquals(char[], char[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, char[], char[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(short[], short[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, short[], short[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(int[], int[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, int[], int[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(long[], long[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, long[], long[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(float[], float[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, float[], float[]) - Static method in class junit.framework.TestCase2
-
TODO Use smarter floating point comparison and offer parameter
for controlling the floating point comparison.
- assertEquals(double[], double[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, double[], double[]) - Static method in class junit.framework.TestCase2
-
TODO Use smarter floating point comparison and offer parameter
for controlling the floating point comparison.
- assertEquals(Object[], Object[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(String, Object[], Object[]) - Static method in class junit.framework.TestCase2
-
- assertEquals(float, float) - Static method in class junit.framework.TestCase2
-
Provides a proper basis for comparing floating point numbers (the values
must be within 10 ulps of one another).
- assertEquals(String, float, float) - Static method in class junit.framework.TestCase2
-
Provides a proper basis for comparing floating point numbers (the values
must be within 10 ulps of one another).
- assertEquals(double, double) - Static method in class junit.framework.TestCase2
-
Provides a proper basis for comparing floating point numbers (the values
must be within 10 ulps of one another).
- assertEquals(String, double, double) - Static method in class junit.framework.TestCase2
-
Provides a proper basis for comparing floating point numbers (the values
must be within 10 ulps of one another).
- assertEqualsWithinUlps(String, double, double, long) - Static method in class junit.framework.TestCase2
-
Provides a proper basis for comparing floating point numbers (the values
must be within maxUlps of one another).
- assertSameArray(Object[], Object[]) - Static method in class junit.framework.TestCase2
-
- assertSameArray(String, Object[], Object[]) - Static method in class junit.framework.TestCase2
-
- assertSameBigDecimal(BigDecimal, BigDecimal) - Static method in class junit.framework.TestCase2
-
- assertSameBigDecimal(String, BigDecimal, BigDecimal) - Static method in class junit.framework.TestCase2
-
- assertSameBigInteger(BigInteger, BigInteger) - Static method in class junit.framework.TestCase2
-
- assertSameBigInteger(String, BigInteger, BigInteger) - Static method in class junit.framework.TestCase2
-
- assertSameIterator(Object[], Iterator) - Static method in class junit.framework.TestCase2
-
Method verifies that the
actual Iterator
produces the expected objects in the expected order.
- assertSameIterator(String, Object[], Iterator) - Static method in class junit.framework.TestCase2
-
Method verifies that the
actual Iterator
produces the expected objects in the expected order.
- assertSameIteratorAnyOrder(Object[], Iterator) - Static method in class junit.framework.TestCase2
-
Verifies that the iterator visits the specified objects in some arbitrary
ordering and that the iterator is exhausted once all expected objects
have been visited.
- assertSameIteratorAnyOrder(String, Object[], Iterator) - Static method in class junit.framework.TestCase2
-
Verifies that the iterator visits the specified objects in some arbitrary
ordering and that the iterator is exhausted once all expected objects
have been visited.
- assertSameValue(Object, Object) - Static method in class junit.framework.TestCase2
-
Test helper that can correctly compare arrays of primitives and
arrays of objects as well as primitives and objects.
- assertSameValue(String, Object, Object) - Static method in class junit.framework.TestCase2
-
Test helper that can correctly compare arrays of primitives and
arrays of objects as well as primitives and objects.
- assertZeroUlps(float, float) - Method in class junit.framework.TestCase2
-
Verify zero ULPs difference between the values.
- assertZeroUlps(double, double) - Method in class junit.framework.TestCase2
-
Verify zero ULPs difference between the values.
- getDefaults() - Method in class junit.framework.TestCase2.MyProperties
-
Exposes the protected member in the
Properties
class.
- getDelegate() - Method in interface junit.extensions.proxy.IProxyTest
-
Returns the reference to the delegate or null if
the delegate was not established.
- getDelegate() - Method in class junit.extensions.proxy.ProxyTestSuite
-
Returns the delegate supplied to the constructor.
- getInnerCause(Throwable, Class) - Static method in class junit.framework.TestCase2
-
Examines a stack trace for an instance of the specified cause nested to
any level within that stack trace.
- getNormalInt(int) - Method in class junit.framework.TestCase2
-
Returns a random integer normally distributed in [0:range].
- getProjectBuildPath() - Static method in class junit.framework.TestCase2
-
Returns the project build directory, even in a multiproject
build.
- getProperties() - Method in class junit.framework.TestCase2
-
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
- getRandomObject(boolean) - Method in class junit.framework.TestCase2
-
Returns an object with a random type and random value.
- getRandomObject(Random, boolean) - Method in class junit.framework.TestCase2
-
Returns an object with a random type and random value.
- getRandomOrder(int) - Static method in class junit.framework.TestCase2
-
Test helper produces a random sequence of indices in the range [0:n-1]
suitable for visiting the elements of an array of n elements in a random
order.
- getRandomString(int, int) - Method in class junit.framework.TestCase2
-
Returns a random but unique string of Unicode characters with a maximum
length of len and a minimum length.
- getSource() - Method in class junit.framework.TestCase2.MyProperties
-
The file or CLASSPATH resource from which the properties
were loaded.
- getTestInputStream(String) - Method in class junit.framework.TestCase2
-
Returns an
InputStream that may be used to read from a
test resource found along the CLASSPATH.
- getTestResource(String, String) - Method in class junit.framework.TestCase2
-
Read a test character resource from along the CLASSPATH.
- getTestResource(String) - Method in class junit.framework.TestCase2
-
- getType(Class) - Method in class junit.framework.TestCase2.RandomType
-
Return the type code for the specified class.
- getUlps(float, float) - Static method in class junit.framework.TestCase2
-
- getUlps(double, double) - Static method in class junit.framework.TestCase2
-