A B C D E F G H I J L M N O P R S T U V W Z

A

A - Static variable in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
A - Static variable in class org.junit.experimental.test.theories.TheoriesTest.NullsOK
 
A - Static variable in class org.junit.experimental.test.theories.TheoriesTest.ShouldFilterNull
 
aClass(Class<?>) - Static method in class org.junit.runner.Request
Create a Request that, when processed, will run all the tests in a class.
ActiveTestSuite - Class in junit.extensions
A TestSuite for active Tests.
ActiveTestSuite() - Constructor for class junit.extensions.ActiveTestSuite
 
ActiveTestSuite(Class<? extends TestCase>) - Constructor for class junit.extensions.ActiveTestSuite
 
ActiveTestSuite(String) - Constructor for class junit.extensions.ActiveTestSuite
 
ActiveTestSuite(Class<? extends TestCase>, String) - Constructor for class junit.extensions.ActiveTestSuite
 
add(Runner) - Method in class org.junit.internal.runners.CompositeRunner
 
addAll(List<? extends Runner>) - Method in class org.junit.internal.runners.CompositeRunner
 
addChild(Description) - Method in class org.junit.runner.Description
Add Description as a child of the receiver.
addDimension(int) - Method in error org.junit.internal.ArrayComparisonFailure
 
addError(Test, Throwable) - Method in interface junit.framework.TestListener
An error occurred.
addError(Test, Throwable) - Method in class junit.framework.TestResult
Adds an error to the list of errors.
addError(Test, Throwable) - Method in class junit.runner.BaseTestRunner
 
addError(Test, Throwable) - Method in class junit.textui.ResultPrinter
 
addFailure(Test, AssertionFailedError) - Method in interface junit.framework.TestListener
A failure occurred.
addFailure(Test, AssertionFailedError) - Method in class junit.framework.TestResult
Adds a failure to the list of failures.
addFailure(Test, AssertionFailedError) - Method in class junit.runner.BaseTestRunner
 
addFailure(Test, AssertionFailedError) - Method in class junit.textui.ResultPrinter
 
addFailure(Throwable) - Method in class org.junit.internal.runners.ClassRoadie
 
addFailure(Throwable) - Method in class org.junit.internal.runners.MethodRoadie
 
addFirstListener(RunListener) - Method in class org.junit.runner.notification.RunNotifier
Internal use only.
addListener(TestListener) - Method in class junit.framework.TestResult
Registers a TestListener
addListener(RunListener) - Method in class org.junit.runner.JUnitCore
Add a listener to be notified as the tests run.
addListener(RunListener) - Method in class org.junit.runner.notification.RunNotifier
Internal use only
addTest(Test) - Method in class junit.framework.TestSuite
Adds a test to the suite.
addTestSuite(Class<? extends TestCase>) - Method in class junit.framework.TestSuite
Adds the tests from the given class to the suite
After - Annotation Type in org.junit
If you allocate external resources in a Before method you need to release them after the test runs.
AfterClass - Annotation Type in org.junit
If you allocate expensive external resources in a BeforeClass method you need to release them after all the tests in the class have run.
ALL - Static variable in class org.junit.runner.manipulation.Filter
A null Filter that passes all tests through.
allIntsOk(int) - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDataPointMethod
 
allIntsOk(int) - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDateMethod
 
allIntsOk(int) - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasUglyDataPointMethod
 
allStringsAreNonNull(String) - Method in class org.junit.experimental.test.theories.TheoriesTest.ShouldFilterNull
 
AllTests - Class in org.junit.runners
Runner for use with JUnit 3.8.x-style AllTests classes (those that only implement a static suite() method).
AllTests(Class<?>) - Constructor for class org.junit.runners.AllTests
 
and(Matcher<? extends T>) - Method in class org.junit.matchers.CombinableMatcher
 
apply(Runner) - Method in class org.junit.runner.manipulation.Filter
Invoke with a Runner to cause all tests it intends to run to first be checked with the filter.
apply(Runner) - Method in class org.junit.runner.manipulation.Sorter
Sorts the test in runner using comparator
ArrayComparisonFailure - Error in org.junit.internal
Thrown when two array elements differ
ArrayComparisonFailure(String, AssertionError, int) - Constructor for error org.junit.internal.ArrayComparisonFailure
Construct a new ArrayComparisonFailure with an error text and the array's dimension that was not equal
Assert - Class in junit.framework
A set of assert methods.
Assert() - Constructor for class junit.framework.Assert
Protect constructor since it is a static only class
Assert - Class in org.junit
A set of assertion methods useful for writing tests.
Assert() - Constructor for class org.junit.Assert
Protect constructor since it is a static only class
assertArrayEquals(String, Object[], Object[]) - Static method in class org.junit.Assert
Asserts that two object arrays are equal.
assertArrayEquals(Object[], Object[]) - Static method in class org.junit.Assert
Asserts that two object arrays are equal.
assertArrayEquals(String, byte[], byte[]) - Static method in class org.junit.Assert
Asserts that two byte arrays are equal.
assertArrayEquals(byte[], byte[]) - Static method in class org.junit.Assert
Asserts that two byte arrays are equal.
assertArrayEquals(String, char[], char[]) - Static method in class org.junit.Assert
Asserts that two char arrays are equal.
assertArrayEquals(char[], char[]) - Static method in class org.junit.Assert
Asserts that two char arrays are equal.
assertArrayEquals(String, short[], short[]) - Static method in class org.junit.Assert
Asserts that two short arrays are equal.
assertArrayEquals(short[], short[]) - Static method in class org.junit.Assert
Asserts that two short arrays are equal.
assertArrayEquals(String, int[], int[]) - Static method in class org.junit.Assert
Asserts that two int arrays are equal.
assertArrayEquals(int[], int[]) - Static method in class org.junit.Assert
Asserts that two int arrays are equal.
assertArrayEquals(String, long[], long[]) - Static method in class org.junit.Assert
Asserts that two long arrays are equal.
assertArrayEquals(long[], long[]) - Static method in class org.junit.Assert
Asserts that two long arrays are equal.
assertEquals(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects are equal.
assertEquals(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects are equal.
assertEquals(String, String, String) - Static method in class junit.framework.Assert
Asserts that two Strings are equal.
assertEquals(String, String) - Static method in class junit.framework.Assert
Asserts that two Strings are equal.
assertEquals(String, double, double, double) - Static method in class junit.framework.Assert
Asserts that two doubles are equal concerning a delta.
assertEquals(double, double, double) - Static method in class junit.framework.Assert
Asserts that two doubles are equal concerning a delta.
assertEquals(String, float, float, float) - Static method in class junit.framework.Assert
Asserts that two floats are equal concerning a positive delta.
assertEquals(float, float, float) - Static method in class junit.framework.Assert
Asserts that two floats are equal concerning a delta.
assertEquals(String, long, long) - Static method in class junit.framework.Assert
Asserts that two longs are equal.
assertEquals(long, long) - Static method in class junit.framework.Assert
Asserts that two longs are equal.
assertEquals(String, boolean, boolean) - Static method in class junit.framework.Assert
Asserts that two booleans are equal.
assertEquals(boolean, boolean) - Static method in class junit.framework.Assert
Asserts that two booleans are equal.
assertEquals(String, byte, byte) - Static method in class junit.framework.Assert
Asserts that two bytes are equal.
assertEquals(byte, byte) - Static method in class junit.framework.Assert
Asserts that two bytes are equal.
assertEquals(String, char, char) - Static method in class junit.framework.Assert
Asserts that two chars are equal.
assertEquals(char, char) - Static method in class junit.framework.Assert
Asserts that two chars are equal.
assertEquals(String, short, short) - Static method in class junit.framework.Assert
Asserts that two shorts are equal.
assertEquals(short, short) - Static method in class junit.framework.Assert
Asserts that two shorts are equal.
assertEquals(String, int, int) - Static method in class junit.framework.Assert
Asserts that two ints are equal.
assertEquals(int, int) - Static method in class junit.framework.Assert
Asserts that two ints are equal.
assertEquals(String, Object, Object) - Static method in class org.junit.Assert
Asserts that two objects are equal.
assertEquals(Object, Object) - Static method in class org.junit.Assert
Asserts that two objects are equal.
assertEquals(String, double, double, double) - Static method in class org.junit.Assert
Asserts that two doubles or floats are equal to within a positive delta.
assertEquals(long, long) - Static method in class org.junit.Assert
 
assertEquals(String, long, long) - Static method in class org.junit.Assert
 
assertEquals(double, double) - Static method in class org.junit.Assert
 
assertEquals(String, double, double) - Static method in class org.junit.Assert
 
assertEquals(double, double, double) - Static method in class org.junit.Assert
Asserts that two doubles or floats are equal to within a positive delta.
assertEquals(String, Object[], Object[]) - Static method in class org.junit.Assert
Deprecated. use assertArrayEquals
assertEquals(Object[], Object[]) - Static method in class org.junit.Assert
Deprecated. use assertArrayEquals
assertFalse(String, boolean) - Static method in class junit.framework.Assert
Asserts that a condition is false.
assertFalse(boolean) - Static method in class junit.framework.Assert
Asserts that a condition is false.
assertFalse(String, boolean) - Static method in class org.junit.Assert
Asserts that a condition is false.
assertFalse(boolean) - Static method in class org.junit.Assert
Asserts that a condition is false.
AssertionFailedError - Error in junit.framework
Thrown when an assertion failed.
AssertionFailedError() - Constructor for error junit.framework.AssertionFailedError
 
AssertionFailedError(String) - Constructor for error junit.framework.AssertionFailedError
 
assertNotNull(Object) - Static method in class junit.framework.Assert
Asserts that an object isn't null.
assertNotNull(String, Object) - Static method in class junit.framework.Assert
Asserts that an object isn't null.
assertNotNull(String, Object) - Static method in class org.junit.Assert
Asserts that an object isn't null.
assertNotNull(Object) - Static method in class org.junit.Assert
Asserts that an object isn't null.
assertNotSame(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects do not refer to the same object.
assertNotSame(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects do not refer to the same object.
assertNotSame(String, Object, Object) - Static method in class org.junit.Assert
Asserts that two objects do not refer to the same object.
assertNotSame(Object, Object) - Static method in class org.junit.Assert
Asserts that two objects do not refer to the same object.
assertNull(Object) - Static method in class junit.framework.Assert
Asserts that an object is null.
assertNull(String, Object) - Static method in class junit.framework.Assert
Asserts that an object is null.
assertNull(String, Object) - Static method in class org.junit.Assert
Asserts that an object is null.
assertNull(Object) - Static method in class org.junit.Assert
Asserts that an object is null.
assertSame(String, Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects refer to the same object.
assertSame(Object, Object) - Static method in class junit.framework.Assert
Asserts that two objects refer to the same object.
assertSame(String, Object, Object) - Static method in class org.junit.Assert
Asserts that two objects refer to the same object.
assertSame(Object, Object) - Static method in class org.junit.Assert
Asserts that two objects refer to the same object.
assertThat(T, Matcher<T>) - Static method in class org.junit.Assert
 
assertThat(String, T, Matcher<T>) - Static method in class org.junit.Assert
 
assertTrue(String, boolean) - Static method in class junit.framework.Assert
Asserts that a condition is true.
assertTrue(boolean) - Static method in class junit.framework.Assert
Asserts that a condition is true.
assertTrue(String, boolean) - Static method in class org.junit.Assert
Asserts that a condition is true.
assertTrue(boolean) - Static method in class org.junit.Assert
Asserts that a condition is true.
assertValid() - Method in class org.junit.internal.runners.MethodValidator
 
Assume - Class in org.junit
 
Assume() - Constructor for class org.junit.Assume
 
Assume.AssumptionViolatedException - Exception in org.junit
 
Assume.AssumptionViolatedException(Object, Matcher<?>) - Constructor for exception org.junit.Assume.AssumptionViolatedException
 
assumeNoException(Throwable) - Static method in class org.junit.Assume
 
assumeNotNull(Object...) - Static method in class org.junit.Assume
 
assumeThat(T, Matcher<T>) - Static method in class org.junit.Assume
 
assumeTrue(boolean) - Static method in class org.junit.Assume
 
asTest(Description) - Method in class junit.framework.JUnit4TestAdapterCache
 
asTestList(Description) - Method in class junit.framework.JUnit4TestAdapterCache
 

B

B - Static variable in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
B2 - Static variable in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
backTraceHasGoodToString(String, String) - Method in class org.junit.experimental.test.results.PrintableResultTest
 
BaseTestRunner - Class in junit.runner
Base class for all test runners.
BaseTestRunner() - Constructor for class junit.runner.BaseTestRunner
 
basicRun(TestResult) - Method in class junit.extensions.TestDecorator
The basic run behaviour.
Before - Annotation Type in org.junit
When writing tests, it is common to find that several tests need similar objects created before they can run.
BeforeClass - Annotation Type in org.junit
Sometimes several tests need to share computationally expensive setup (like logging into a database).
both(Matcher<T>) - Static method in class org.junit.matchers.JUnitMatchers
 
buildParameterizedAssertionError(String, String) - Method in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
buildRunner(Class<? extends Runner>) - Method in class org.junit.internal.requests.ClassRequest
 

C

canAcceptField(Field) - Method in class org.junit.experimental.theories.ParameterSignature
 
canAcceptMethod(Method) - Method in class org.junit.experimental.theories.ParameterSignature
 
canRunTheories() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
canRunTwoParameterTheories() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
childlessCopy() - Method in class org.junit.runner.Description
 
classAnnotations() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
classes(String, Class<?>...) - Static method in class org.junit.runner.Request
Create a Request that, when processed, will run all the tests in a set of classes.
ClassesRequest - Class in org.junit.internal.requests
 
ClassesRequest(String, Class<?>...) - Constructor for class org.junit.internal.requests.ClassesRequest
 
ClassRequest - Class in org.junit.internal.requests
 
ClassRequest(Class<?>, boolean) - Constructor for class org.junit.internal.requests.ClassRequest
 
ClassRequest(Class<?>) - Constructor for class org.junit.internal.requests.ClassRequest
 
ClassRoadie - Class in org.junit.internal.runners
 
ClassRoadie(RunNotifier, TestClass, Description, Runnable) - Constructor for class org.junit.internal.runners.ClassRoadie
 
classWithoutSuiteMethod(Class<?>) - Static method in class org.junit.runner.Request
 
clearStatus() - Method in class junit.runner.BaseTestRunner
Clears the status message.
CombinableMatcher<T> - Class in org.junit.matchers
 
CombinableMatcher(Matcher<? extends T>) - Constructor for class org.junit.matchers.CombinableMatcher
 
compact(String) - Method in class junit.framework.ComparisonCompactor
 
compare(Description, Description) - Method in class org.junit.runner.manipulation.Sorter
 
ComparisonCompactor - Class in junit.framework
 
ComparisonCompactor(int, String, String) - Constructor for class junit.framework.ComparisonCompactor
 
ComparisonFailure - Error in junit.framework
Thrown when an assert equals for Strings failed.
ComparisonFailure(String, String, String) - Constructor for error junit.framework.ComparisonFailure
Constructs a comparison failure.
ComparisonFailure - Error in org.junit
Thrown when an assertEquals(String, String) fails.
ComparisonFailure(String, String, String) - Constructor for error org.junit.ComparisonFailure
Constructs a comparison failure.
CompositeRunner - Class in org.junit.internal.runners
 
CompositeRunner(String) - Constructor for class org.junit.internal.runners.CompositeRunner
 
containsString(String) - Static method in class org.junit.matchers.JUnitMatchers
 
containsString(String) - Static method in class org.junit.matchers.StringContains
 
countTestCases() - Method in class junit.extensions.RepeatedTest
 
countTestCases() - Method in class junit.extensions.TestDecorator
 
countTestCases() - Method in class junit.framework.JUnit4TestAdapter
 
countTestCases() - Method in class junit.framework.JUnit4TestCaseFacade
 
countTestCases() - Method in interface junit.framework.Test
Counts the number of test cases that will be run by this test.
countTestCases() - Method in class junit.framework.TestCase
Counts the number of test cases executed by run(TestResult result).
countTestCases() - Method in class junit.framework.TestSuite
Counts the number of test cases that will be run by this test.
createAdaptingListener(RunNotifier) - Static method in class org.junit.internal.runners.JUnit38ClassRunner
 
createListener() - Method in class org.junit.runner.Result
Internal use only.
createResult() - Method in class junit.framework.TestCase
Creates a default TestResult object
createSuiteDescription(String, Annotation...) - Static method in class org.junit.runner.Description
Create a Description named name.
createSuiteDescription(Class<?>) - Static method in class org.junit.runner.Description
Create a Description named after testClass
createTest(Class<? extends TestCase>, String) - Static method in class junit.framework.TestSuite
...as the moon sets over the early morning Merlin, Oregon mountains, our intrepid adventurers type...
createTest() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
createTestDescription(Class<?>, String, Annotation...) - Static method in class org.junit.runner.Description
Create a Description of a single test named name in the class clazz.
createTestDescription(Class<?>, String) - Static method in class org.junit.runner.Description
Create a Description of a single test named name in the class clazz.
createTestResult() - Method in class junit.textui.TestRunner
Creates the TestResult to be used for the test run.

D

DATA - Static variable in class org.junit.experimental.test.theories.TheoriesTest.AssumptionsFail
 
DataPoint - Annotation Type in org.junit.experimental.theories
 
DataPointMethodTest - Class in org.junit.experimental.test.theories
 
DataPointMethodTest() - Constructor for class org.junit.experimental.test.theories.DataPointMethodTest
 
DataPointMethodTest.DataPointMethodReturnsMutableObject - Class in org.junit.experimental.test.theories
 
DataPointMethodTest.DataPointMethodReturnsMutableObject() - Constructor for class org.junit.experimental.test.theories.DataPointMethodTest.DataPointMethodReturnsMutableObject
 
DataPointMethodTest.HasDataPointMethod - Class in org.junit.experimental.test.theories
 
DataPointMethodTest.HasDataPointMethod() - Constructor for class org.junit.experimental.test.theories.DataPointMethodTest.HasDataPointMethod
 
DataPointMethodTest.HasDateMethod - Class in org.junit.experimental.test.theories
 
DataPointMethodTest.HasDateMethod() - Constructor for class org.junit.experimental.test.theories.DataPointMethodTest.HasDateMethod
 
DataPointMethodTest.HasUglyDataPointMethod - Class in org.junit.experimental.test.theories
 
DataPointMethodTest.HasUglyDataPointMethod() - Constructor for class org.junit.experimental.test.theories.DataPointMethodTest.HasUglyDataPointMethod
 
describe() - Method in class org.junit.runner.manipulation.Filter
Returns a textual description of this Filter
describeTo(Description) - Method in exception org.junit.Assume.AssumptionViolatedException
 
describeTo(Description) - Method in class org.junit.matchers.CombinableMatcher
 
describeTo(Description) - Method in class org.junit.matchers.IsCollectionContaining
 
describeTo(Description) - Method in class org.junit.matchers.SubstringMatcher
 
Description - Class in org.junit.runner
A Description describes a test which is to be run or has been run.
differentParameterizedAssertionErrorsHaveDifferentToStrings(ParameterizedAssertionError, ParameterizedAssertionError) - Method in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
doRun(Test) - Method in class junit.textui.TestRunner
 
doRun(Test, boolean) - Method in class junit.textui.TestRunner
 

E

Each - Class in org.junit.matchers
 
Each() - Constructor for class org.junit.matchers.Each
 
each(Matcher<T>) - Static method in class org.junit.matchers.Each
 
each(Matcher<T>) - Static method in class org.junit.matchers.JUnitMatchers
 
eachOne(Object...) - Static method in class org.junit.runners.Parameterized
 
either(Matcher<T>) - Static method in class org.junit.matchers.JUnitMatchers
 
elapsedTimeAsString(long) - Method in class junit.runner.BaseTestRunner
Returns the formatted string of the elapsed time.
elapsedTimeAsString(long) - Method in class junit.textui.ResultPrinter
Returns the formatted string of the elapsed time.
elapsedTimeAsString(long) - Method in class org.junit.internal.TextListener
Returns the formatted string of the elapsed time.
empty() - Method in class org.junit.experimental.test.theories.DataPointMethodTest.DataPointMethodReturnsMutableObject
 
EMPTY - Static variable in class org.junit.runner.Description
 
Enclosed - Class in org.junit.runners
 
Enclosed(Class<?>) - Constructor for class org.junit.runners.Enclosed
 
endTest(Test) - Method in interface junit.framework.TestListener
A test ended.
endTest(Test) - Method in class junit.framework.TestResult
Informs the result that a test was completed.
endTest(Test) - Method in class junit.runner.BaseTestRunner
 
endTest(Test) - Method in class junit.textui.ResultPrinter
 
equalParameterizedAssertionErrorsHaveSameToString(ParameterizedAssertionError, ParameterizedAssertionError) - Method in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
equals(Object) - Method in exception org.junit.experimental.theories.internal.ParameterizedAssertionError
 
equals(Object) - Method in class org.junit.runner.Description
 
equalsReturnsTrue(Throwable, String, Object[]) - Method in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
errorCount() - Method in class junit.framework.TestResult
Gets the number of detected errors.
errorReport(Class<?>, Throwable) - Static method in class org.junit.runner.Request
 
ErrorReportingRequest - Class in org.junit.internal.requests
 
ErrorReportingRequest(Class<?>, Throwable) - Constructor for class org.junit.internal.requests.ErrorReportingRequest
 
ErrorReportingRunner - Class in org.junit.internal.runners
 
ErrorReportingRunner(Description, Throwable) - Constructor for class org.junit.internal.runners.ErrorReportingRunner
 
errors() - Method in class junit.framework.TestResult
Returns an Enumeration for the errors
evalSubstringOf(String) - Method in class org.junit.matchers.StringContains
 
evalSubstringOf(String) - Method in class org.junit.matchers.SubstringMatcher
 
everythingIsA(String) - Method in class org.junit.experimental.test.theories.TheoriesTest.NullsOK
 
everythingIsOne(int) - Method in class org.junit.experimental.test.theories.TheoriesTest.ParameterAnnotations
 
everythingIsZero(int, int) - Method in class org.junit.experimental.test.theories.TheoriesTest.DoesntUseParams
 
everythingIsZero(int) - Method in class org.junit.experimental.test.theories.TheoriesTest.HasATheory
 
everythingIsZero(int, int) - Method in class org.junit.experimental.test.theories.TheoriesTest.HasATwoParameterTheory
 
everythingsEmpty(List<Object>, int) - Method in class org.junit.experimental.test.theories.DataPointMethodTest.DataPointMethodReturnsMutableObject
 
EXCEPTION_EXIT - Static variable in class junit.textui.TestRunner
 
exceptionMessage() - Method in class junit.framework.TestFailure
 
ExperimentalTests - Class in org.junit.experimental.test
 
ExperimentalTests() - Constructor for class org.junit.experimental.test.ExperimentalTests
 
extractClassName(String) - Method in class junit.runner.BaseTestRunner
Extract the class name from a String in VA/Java style

F

fail(String) - Static method in class junit.framework.Assert
Fails a test with the given message.
fail() - Static method in class junit.framework.Assert
Fails a test with no message.
fail(String) - Static method in class org.junit.Assert
Fails a test with the given message.
fail() - Static method in class org.junit.Assert
Fails a test with no message.
failedTest() - Method in class junit.framework.TestFailure
Gets the failed test.
failNotEquals(String, Object, Object) - Static method in class junit.framework.Assert
 
failNotSame(String, Object, Object) - Static method in class junit.framework.Assert
 
failSame(String) - Static method in class junit.framework.Assert
 
Failure - Class in org.junit.runner.notification
A Failure holds a description of the failed test and the exception that was thrown while running it.
Failure(Description, Throwable) - Constructor for class org.junit.runner.notification.Failure
Constructs a Failure with the given description and exception.
FAILURE_EXIT - Static variable in class junit.textui.TestRunner
 
failureCount() - Method in class junit.framework.TestResult
Gets the number of detected failures.
failureCountIs(int) - Static method in class org.junit.experimental.results.ResultMatchers
 
failures() - Method in class junit.framework.TestResult
Returns an Enumeration for the failures
fErrors - Variable in class junit.framework.TestResult
 
fFailedTest - Variable in class junit.framework.TestFailure
 
fFailures - Variable in class junit.framework.TestResult
 
fieldParameterSupplier(Class<?>) - Static method in class org.junit.experimental.theories.ParameterSignature
 
filter(Filter) - Method in class junit.framework.JUnit4TestAdapter
 
filter(Filter) - Method in class org.junit.internal.runners.CompositeRunner
 
filter(Filter) - Method in class org.junit.internal.runners.JUnit38ClassRunner
 
filter(Filter) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
Filter - Class in org.junit.runner.manipulation
The canonical case of filtering is when you want to run a single test method in a class.
Filter() - Constructor for class org.junit.runner.manipulation.Filter
 
filter(Filter) - Method in interface org.junit.runner.manipulation.Filterable
Remove tests that don't pass the parameter filter.
Filterable - Interface in org.junit.runner.manipulation
Runners that allow filtering should implement this interface.
FilterRequest - Class in org.junit.internal.requests
A filtered Request.
FilterRequest(Request, Filter) - Constructor for class org.junit.internal.requests.FilterRequest
Creates a filtered Request
filterWith(Filter) - Method in class org.junit.runner.Request
Returns a Request that only contains those tests that should run when filter is applied
filterWith(Description) - Method in class org.junit.runner.Request
Returns a Request that only runs contains tests whose Description equals desiredDescription
fireTestFailure(Failure) - Method in class org.junit.runner.notification.RunNotifier
Invoke to tell listeners that an atomic test failed.
fireTestFinished(Description) - Method in class org.junit.runner.notification.RunNotifier
Invoke to tell listeners that an atomic test finished.
fireTestIgnored(Description) - Method in class org.junit.runner.notification.RunNotifier
Invoke to tell listeners that an atomic test was ignored.
fireTestRunFinished(Result) - Method in class org.junit.runner.notification.RunNotifier
Do not invoke.
fireTestRunStarted(Description) - Method in class org.junit.runner.notification.RunNotifier
Do not invoke.
fireTestStarted(Description) - Method in class org.junit.runner.notification.RunNotifier
Invoke to tell listeners that an atomic test is about to start.
FIVE - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
fListeners - Variable in class junit.framework.TestResult
 
format(String, Object, Object) - Static method in class junit.framework.Assert
 
forValue(Object) - Static method in class org.junit.experimental.theories.PotentialParameterValue
 
fRunTests - Variable in class junit.framework.TestResult
 
fSources - Variable in class org.junit.experimental.theories.internal.TheoryMethod.PotentialMethodValues
 
fTest - Variable in class junit.extensions.TestDecorator
 
fThrownException - Variable in class junit.framework.TestFailure
 

G

getActual() - Method in error junit.framework.ComparisonFailure
Gets the actual string value
getActual() - Method in error org.junit.ComparisonFailure
Returns the actual string value
getAnnotatedMethods(Class<? extends Annotation>) - Method in class org.junit.internal.runners.TestClass
 
getAnnotatedSupplier() - Method in class org.junit.experimental.theories.ParameterSignature
 
getAnnotation(Class<T>) - Method in class org.junit.runner.Description
 
getAnnotations() - Method in class org.junit.runner.Description
 
getCauses() - Method in exception org.junit.internal.runners.InitializationError
 
getChildren() - Method in class org.junit.runner.Description
 
getConstructor() - Method in class org.junit.internal.runners.TestClass
 
getDefault() - Static method in class junit.framework.JUnit4TestAdapterCache
 
getDescription() - Method in class junit.framework.JUnit4TestAdapter
 
getDescription() - Method in class junit.framework.JUnit4TestCaseFacade
 
getDescription() - Method in class org.junit.internal.requests.IgnoredClassRunner
 
getDescription() - Method in class org.junit.internal.runners.CompositeRunner
 
getDescription() - Method in class org.junit.internal.runners.ErrorReportingRunner
 
getDescription() - Method in class org.junit.internal.runners.JUnit38ClassRunner
 
getDescription() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
getDescription() - Method in class org.junit.runner.notification.Failure
 
getDescription() - Method in class org.junit.runner.Runner
 
getDisplayName() - Method in class org.junit.runner.Description
 
getException() - Method in class org.junit.runner.notification.Failure
 
getExpected() - Method in error junit.framework.ComparisonFailure
Gets the expected string value
getExpected() - Method in error org.junit.ComparisonFailure
Returns the expected string value
getExpectedException() - Method in class org.junit.internal.runners.TestMethod
 
getFailureCount() - Method in class org.junit.runner.Result
 
getFailures() - Method in class org.junit.experimental.results.PrintableResult
 
getFailures() - Method in class org.junit.runner.Result
 
getFilteredTrace(Throwable) - Static method in class junit.runner.BaseTestRunner
Returns a filtered stack trace
getFilteredTrace(String) - Static method in class junit.runner.BaseTestRunner
Filters stack frames from internal JUnit classes
getIgnoreCount() - Method in class org.junit.runner.Result
 
getJavaClass() - Method in class org.junit.internal.runners.TestClass
 
getMessage() - Method in error junit.framework.ComparisonFailure
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
getMessage() - Method in exception org.junit.Assume.AssumptionViolatedException
 
getMessage() - Method in error org.junit.ComparisonFailure
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
getMessage() - Method in error org.junit.internal.ArrayComparisonFailure
 
getMessage() - Method in class org.junit.runner.notification.Failure
Convenience method
getName() - Method in class junit.framework.TestCase
Gets the name of a TestCase
getName() - Method in class junit.framework.TestSuite
Returns the name of the suite.
getName() - Method in class org.junit.internal.runners.CompositeRunner
 
getName() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
getName() - Method in class org.junit.internal.runners.TestClass
 
getNotifier(TestResult, JUnit4TestAdapter) - Method in class junit.framework.JUnit4TestAdapterCache
 
getPotentialValues(Object) - Method in class org.junit.experimental.theories.ParameterSignature
 
getPreference(String) - Static method in class junit.runner.BaseTestRunner
 
getPreference(String, int) - Static method in class junit.runner.BaseTestRunner
 
getPreferences() - Static method in class junit.runner.BaseTestRunner
 
getRunCount() - Method in class org.junit.runner.Result
 
getRunner() - Method in class org.junit.internal.requests.ClassesRequest
 
getRunner() - Method in class org.junit.internal.requests.ClassRequest
 
getRunner() - Method in class org.junit.internal.requests.ErrorReportingRequest
 
getRunner() - Method in class org.junit.internal.requests.FilterRequest
 
getRunner() - Method in class org.junit.internal.requests.SortingRequest
 
getRunner() - Method in class org.junit.runner.Request
Returns a Runner for this Request
getRunners() - Method in class org.junit.internal.runners.CompositeRunner
 
getRunTime() - Method in class org.junit.runner.Result
 
getSupplier(Annotation) - Method in class org.junit.experimental.theories.ParameterSignature
 
getSupplier(Class<?>) - Method in class org.junit.experimental.theories.ParameterSignature
 
getSupplierAnnotation() - Method in class org.junit.experimental.theories.ParameterSignature
 
getTest() - Method in class junit.extensions.TestDecorator
 
getTest(String) - Method in class junit.runner.BaseTestRunner
Returns the Test corresponding to the given suite.
getTestClass() - Method in class junit.framework.JUnit4TestAdapter
 
getTestClass() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
getTestConstructor(Class<? extends TestCase>) - Static method in class junit.framework.TestSuite
Gets a constructor which takes a single String as its argument or a no arg constructor.
getTestHeader() - Method in class org.junit.runner.notification.Failure
 
getTestMethods() - Method in class org.junit.experimental.theories.Theories
 
getTestMethods() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
getTests() - Method in class junit.framework.JUnit4TestAdapter
 
getTimeout() - Method in class org.junit.internal.runners.TestMethod
 
getTrace() - Method in class org.junit.runner.notification.Failure
Convenience method
getValue() - Method in class org.junit.experimental.theories.PotentialParameterValue
 
getValueSources(Object, ParameterSignature) - Method in class org.junit.experimental.theories.ParameterSupplier
 
getValueSources(Object, ParameterSignature) - Method in class org.junit.experimental.theories.suppliers.TestedOnSupplier
 
getVersion() - Method in class org.junit.runner.JUnitCore
 
getWriter() - Method in class junit.textui.ResultPrinter
 

H

hasFailuresDescriptionReflectsInput(int) - Method in class org.junit.experimental.test.results.ResultMatchersTest
 
hasFailuresHasGoodDescription() - Method in class org.junit.experimental.test.results.ResultMatchersTest
 
hashCode() - Method in class org.junit.runner.Description
 
hasItem(Matcher<? extends T>) - Static method in class org.junit.matchers.IsCollectionContaining
 
hasItem(T) - Static method in class org.junit.matchers.IsCollectionContaining
 
hasItem(T) - Static method in class org.junit.matchers.JUnitMatchers
 
hasItem(Matcher<? extends T>) - Static method in class org.junit.matchers.JUnitMatchers
 
hasItems(Matcher<? extends T>...) - Static method in class org.junit.matchers.IsCollectionContaining
 
hasItems(T...) - Static method in class org.junit.matchers.IsCollectionContaining
 
hasItems(Matcher<? extends T>...) - Static method in class org.junit.matchers.JUnitMatchers
 
hasItems(T...) - Static method in class org.junit.matchers.JUnitMatchers
 
hasSingleFailureContaining(String) - Static method in class org.junit.experimental.results.ResultMatchers
 
hasSuiteMethod() - Method in class org.junit.internal.requests.ClassRequest
 
honorExpected() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
honorTimeout() - Method in class org.junit.experimental.test.theories.TheoriesTest
 

I

id() - Static method in class junit.runner.Version
 
Ignore - Annotation Type in org.junit
Sometimes you want to temporarily disable a test or a group of tests.
ignoreDataPointMethodsWithoutAnnotation() - Method in class org.junit.experimental.test.theories.DataPointMethodTest
 
ignoreDataPointMethodsWithWrongTypes() - Method in class org.junit.experimental.test.theories.DataPointMethodTest
 
IgnoredClassRunner - Class in org.junit.internal.requests
 
IgnoredClassRunner(Class<?>) - Constructor for class org.junit.internal.requests.IgnoredClassRunner
 
ignoreExceptionsFromDataPointMethods() - Method in class org.junit.experimental.test.theories.DataPointMethodTest
 
includeMultipleFailures(String) - Method in class org.junit.experimental.test.results.PrintableResultTest
 
INDEPENDENCE - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
InitializationError - Exception in org.junit.internal.runners
 
InitializationError(List<Throwable>) - Constructor for exception org.junit.internal.runners.InitializationError
 
InitializationError(Throwable...) - Constructor for exception org.junit.internal.runners.InitializationError
 
InitializationError(String) - Constructor for exception org.junit.internal.runners.InitializationError
 
invoke(Object) - Method in class org.junit.experimental.theories.internal.TheoryMethod
 
invoke(Object) - Method in class org.junit.internal.runners.TestMethod
 
invokeTestMethod(Method, RunNotifier) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
IS_ONE - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
IsCollectionContaining<T> - Class in org.junit.matchers
 
IsCollectionContaining(Matcher<? extends T>) - Constructor for class org.junit.matchers.IsCollectionContaining
 
isEmpty() - Method in class org.junit.runner.Description
 
isFailure() - Method in class junit.framework.TestFailure
 
isIgnored() - Method in class org.junit.internal.runners.TestMethod
 
isSuccessful() - Static method in class org.junit.experimental.results.ResultMatchers
 
isSuite() - Method in class org.junit.runner.Description
 
isTest() - Method in class org.junit.runner.Description
 

J

J - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
join(String, Object...) - Static method in exception org.junit.experimental.theories.internal.ParameterizedAssertionError
 
join(String, Collection<Object>) - Static method in exception org.junit.experimental.theories.internal.ParameterizedAssertionError
 
junit.extensions - package junit.extensions
Provides extended functionality for JUnit v3.x.
junit.framework - package junit.framework
Provides JUnit v3.x core classes.
junit.runner - package junit.runner
Provides JUnit v3.x test runners.
junit.textui - package junit.textui
Provides JUnit v3.x command line based tool to run tests.
JUnit38ClassRunner - Class in org.junit.internal.runners
 
JUnit38ClassRunner(Class<?>) - Constructor for class org.junit.internal.runners.JUnit38ClassRunner
 
JUnit38ClassRunner(Test) - Constructor for class org.junit.internal.runners.JUnit38ClassRunner
 
JUnit4ClassRunner - Class in org.junit.internal.runners
 
JUnit4ClassRunner(Class<?>) - Constructor for class org.junit.internal.runners.JUnit4ClassRunner
 
JUnit4TestAdapter - Class in junit.framework
 
JUnit4TestAdapter(Class<?>) - Constructor for class junit.framework.JUnit4TestAdapter
 
JUnit4TestAdapter(Class<?>, JUnit4TestAdapterCache) - Constructor for class junit.framework.JUnit4TestAdapter
 
JUnit4TestAdapterCache - Class in junit.framework
 
JUnit4TestAdapterCache() - Constructor for class junit.framework.JUnit4TestAdapterCache
 
JUnit4TestCaseFacade - Class in junit.framework
 
JUnitCore - Class in org.junit.runner
JUnitCore is a facade for running tests.
JUnitCore() - Constructor for class org.junit.runner.JUnitCore
Create a new JUnitCore to run tests.
JUnitMatchers - Class in org.junit.matchers
 
JUnitMatchers() - Constructor for class org.junit.matchers.JUnitMatchers
 

L

loadSuiteClass(String) - Method in class junit.runner.BaseTestRunner
Returns the loaded Class for a suite name.

M

main(String[]) - Static method in class junit.runner.Version
 
main(String[]) - Static method in class junit.textui.TestRunner
 
main(String...) - Static method in class org.junit.runner.JUnitCore
Run the tests contained in the classes named in the args.
MATCHER - Static variable in class org.junit.experimental.test.theories.TheoriesTest.AssumptionsFail
 
matches(Object) - Method in class org.junit.matchers.CombinableMatcher
 
matches(Object) - Method in class org.junit.matchers.TypeSafeMatcher
Method made final to prevent accidental override.
matchesSafely(Iterable<T>) - Method in class org.junit.matchers.IsCollectionContaining
 
matchesSafely(String) - Method in class org.junit.matchers.SubstringMatcher
 
matchesSafely(T) - Method in class org.junit.matchers.TypeSafeMatcher
Subclasses should implement this.
method(Class<?>, String) - Static method in class org.junit.runner.Request
Create a Request that, when processed, will run a single test.
METHOD_NAME - Static variable in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
methodDescription(Method) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
MethodRoadie - Class in org.junit.internal.runners
 
MethodRoadie(Object, TestMethod, RunNotifier, Description) - Constructor for class org.junit.internal.runners.MethodRoadie
 
MethodValidator - Class in org.junit.internal.runners
 
MethodValidator(TestClass) - Constructor for class org.junit.internal.runners.MethodValidator
 
mutableObjectsAreCreatedAfresh() - Method in class org.junit.experimental.test.theories.DataPointMethodTest
 

N

NO_OBJECTS - Static variable in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
nonZeroIntsAreFun(int) - Method in class org.junit.experimental.test.theories.TheoriesTest.AssumptionsFail
 
NOT_ZERO - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
notADataPoint() - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDateMethod
 
NoTestsRemainException - Exception in org.junit.runner.manipulation
Thrown when a filter removes all tests from a runner.
NoTestsRemainException() - Constructor for exception org.junit.runner.manipulation.NoTestsRemainException
 
NULL - Static variable in class org.junit.experimental.test.theories.TheoriesTest.NullsOK
 
NULL - Static variable in class org.junit.experimental.test.theories.TheoriesTest.ShouldFilterNull
 
NULL_POINTER_EXCEPTION - Static variable in class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
NULL_STRING - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
nullsOk() - Method in class org.junit.experimental.theories.internal.TheoryMethod
 
nullsUsedUnlessProhibited() - Method in class org.junit.experimental.test.theories.TheoriesTest
 

O

OldTestClassRunner - Class in org.junit.internal.runners
Deprecated. 
OldTestClassRunner(Class<?>) - Constructor for class org.junit.internal.runners.OldTestClassRunner
Deprecated.  
ONE - Static variable in class org.junit.experimental.test.theories.DataPointMethodTest.DataPointMethodReturnsMutableObject
 
ONE - Static variable in class org.junit.experimental.test.theories.TheoriesTest.DoesntUseParams
 
ONE - Static variable in class org.junit.experimental.test.theories.TheoriesTest.HasATheory
 
ONE - Static variable in class org.junit.experimental.test.theories.TheoriesTest.HasATwoParameterTheory
 
ONE - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
oneHundred() - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDataPointMethod
 
oneHundred() - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDateMethod
 
oneHundred() - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasUglyDataPointMethod
 
oneUglyHundred() - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasUglyDataPointMethod
 
onlyDatesOk(Date) - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDateMethod
 
onlyStringsOk(String) - Method in class org.junit.experimental.test.theories.DataPointMethodTest.HasDateMethod
 
or(Matcher<? extends T>) - Method in class org.junit.matchers.CombinableMatcher
 
org.junit - package org.junit
Provides JUnit core classes and annotations.
org.junit.experimental.results - package org.junit.experimental.results
 
org.junit.experimental.test - package org.junit.experimental.test
 
org.junit.experimental.test.results - package org.junit.experimental.test.results
 
org.junit.experimental.test.theories - package org.junit.experimental.test.theories
 
org.junit.experimental.theories - package org.junit.experimental.theories
 
org.junit.experimental.theories.internal - package org.junit.experimental.theories.internal
 
org.junit.experimental.theories.suppliers - package org.junit.experimental.theories.suppliers
 
org.junit.internal - package org.junit.internal
 
org.junit.internal.requests - package org.junit.internal.requests
Provides implementations of Request.
org.junit.internal.runners - package org.junit.internal.runners
Provides implementations of Runner
org.junit.matchers - package org.junit.matchers
 
org.junit.runner - package org.junit.runner
Provides classes used to describe, collect, run and analyze multiple tests.
org.junit.runner.manipulation - package org.junit.runner.manipulation
Provides classes to filter or sort tests.
org.junit.runner.notification - package org.junit.runner.notification
Provides information about a test run.
org.junit.runners - package org.junit.runners
Provides standard Runner implementations.

P

Parameterized - Class in org.junit.runners
The custom runner Parameterized implements parameterized tests.
Parameterized(Class<?>) - Constructor for class org.junit.runners.Parameterized
 
Parameterized.Parameters - Annotation Type in org.junit.runners
 
ParameterizedAssertionError - Exception in org.junit.experimental.theories.internal
 
ParameterizedAssertionError(Throwable, String, Object...) - Constructor for exception org.junit.experimental.theories.internal.ParameterizedAssertionError
 
ParameterizedAssertionErrorTest - Class in org.junit.experimental.test.theories
 
ParameterizedAssertionErrorTest() - Constructor for class org.junit.experimental.test.theories.ParameterizedAssertionErrorTest
 
ParameterSignature - Class in org.junit.experimental.theories
 
ParametersSuppliedBy - Annotation Type in org.junit.experimental.theories
 
ParameterSupplier - Class in org.junit.experimental.theories
 
ParameterSupplier() - Constructor for class org.junit.experimental.theories.ParameterSupplier
 
pause(boolean) - Method in class junit.textui.TestRunner
 
pickUpDataPointMethods() - Method in class org.junit.experimental.test.theories.DataPointMethodTest
 
pleaseStop() - Method in class org.junit.runner.notification.RunNotifier
Ask that the tests run stop before starting the next test.
PotentialParameterValue - Class in org.junit.experimental.theories
 
PotentialParameterValue() - Constructor for class org.junit.experimental.theories.PotentialParameterValue
 
PotentialParameterValue.CouldNotGenerateValueException - Exception in org.junit.experimental.theories
 
PotentialParameterValue.CouldNotGenerateValueException() - Constructor for exception org.junit.experimental.theories.PotentialParameterValue.CouldNotGenerateValueException
 
PrintableResult - Class in org.junit.experimental.results
 
PrintableResult(List<Failure>) - Constructor for class org.junit.experimental.results.PrintableResult
 
PrintableResult(Result) - Constructor for class org.junit.experimental.results.PrintableResult
 
PrintableResult(Class<?>) - Constructor for class org.junit.experimental.results.PrintableResult
 
PrintableResultTest - Class in org.junit.experimental.test.results
 
PrintableResultTest() - Constructor for class org.junit.experimental.test.results.PrintableResultTest
 
printDefect(TestFailure, int) - Method in class junit.textui.ResultPrinter
 
printDefectHeader(TestFailure, int) - Method in class junit.textui.ResultPrinter
 
printDefects(Enumeration<TestFailure>, int, String) - Method in class junit.textui.ResultPrinter
 
printDefectTrace(TestFailure) - Method in class junit.textui.ResultPrinter
 
printErrors(TestResult) - Method in class junit.textui.ResultPrinter
 
printFailure(Failure, int) - Method in class org.junit.internal.TextListener
 
printFailureHeader(Failure, int) - Method in class org.junit.internal.TextListener
 
printFailures(TestResult) - Method in class junit.textui.ResultPrinter
 
printFailures(Result) - Method in class org.junit.internal.TextListener
 
printFailureTrace(Failure) - Method in class org.junit.internal.TextListener
 
printFooter(TestResult) - Method in class junit.textui.ResultPrinter
 
printFooter(Result) - Method in class org.junit.internal.TextListener
 
printHeader(long) - Method in class junit.textui.ResultPrinter
 
printHeader(long) - Method in class org.junit.internal.TextListener
 
processArguments(String[]) - Method in class junit.runner.BaseTestRunner
Processes the command line arguments and returns the name of the suite class to run or null
protect() - Method in interface junit.framework.Protectable
Run the the following method protected.
Protectable - Interface in junit.framework
A Protectable can be run and can throw a Throwable.

R

relationship() - Method in class org.junit.matchers.StringContains
 
relationship() - Method in class org.junit.matchers.SubstringMatcher
 
removeListener(TestListener) - Method in class junit.framework.TestResult
Unregisters a TestListener
removeListener(RunListener) - Method in class org.junit.runner.JUnitCore
Remove a listener.
removeListener(RunListener) - Method in class org.junit.runner.notification.RunNotifier
Internal use only
RepeatedTest - Class in junit.extensions
A Decorator that runs a test repeatedly.
RepeatedTest(Test, int) - Constructor for class junit.extensions.RepeatedTest
 
reportBadParams() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
Request - Class in org.junit.runner
A Request is an abstract description of tests to be run.
Request() - Constructor for class org.junit.runner.Request
 
Result - Class in org.junit.runner
A Result collects and summarizes information from running multiple tests.
Result() - Constructor for class org.junit.runner.Result
 
ResultMatchers - Class in org.junit.experimental.results
 
ResultMatchers() - Constructor for class org.junit.experimental.results.ResultMatchers
 
ResultMatchersTest - Class in org.junit.experimental.test.results
 
ResultMatchersTest() - Constructor for class org.junit.experimental.test.results.ResultMatchersTest
 
ResultPrinter - Class in junit.textui
 
ResultPrinter(PrintStream) - Constructor for class junit.textui.ResultPrinter
 
run(TestResult) - Method in class junit.extensions.ActiveTestSuite
 
run(TestResult) - Method in class junit.extensions.RepeatedTest
 
run(TestResult) - Method in class junit.extensions.TestDecorator
 
run(TestResult) - Method in class junit.extensions.TestSetup
 
run(TestResult) - Method in class junit.framework.JUnit4TestAdapter
 
run(TestResult) - Method in class junit.framework.JUnit4TestCaseFacade
 
run(TestResult) - Method in interface junit.framework.Test
Runs a test and collects its result in a TestResult instance.
run() - Method in class junit.framework.TestCase
A convenience method to run this test, collecting the results with a default TestResult object.
run(TestResult) - Method in class junit.framework.TestCase
Runs the test case and collects the results in TestResult.
run(TestCase) - Method in class junit.framework.TestResult
Runs a TestCase.
run(TestResult) - Method in class junit.framework.TestSuite
Runs the tests and collects their result in a TestResult.
run(Class<? extends TestCase>) - Static method in class junit.textui.TestRunner
Runs a suite extracted from a TestCase subclass.
run(Test) - Static method in class junit.textui.TestRunner
Runs a single test and collects its results.
run(RunNotifier) - Method in class org.junit.internal.requests.IgnoredClassRunner
 
run(RunNotifier) - Method in class org.junit.internal.runners.CompositeRunner
 
run(RunNotifier) - Method in class org.junit.internal.runners.ErrorReportingRunner
 
run(RunNotifier) - Method in class org.junit.internal.runners.JUnit38ClassRunner
 
run(RunNotifier) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
run() - Method in class org.junit.internal.runners.MethodRoadie
 
run(Class<?>...) - Method in class org.junit.runner.JUnitCore
Run all the tests in classes.
run(Request) - Method in class org.junit.runner.JUnitCore
Run all the tests contained in request.
run(Test) - Method in class org.junit.runner.JUnitCore
Run all the tests contained in JUnit 3.8.x test.
run(Runner) - Method in class org.junit.runner.JUnitCore
Do not use.
run(RunNotifier) - Method in class org.junit.runner.Runner
Run the tests for this runner.
run(RunNotifier) - Method in class org.junit.runners.Parameterized
 
run(RunNotifier) - Method in class org.junit.runners.Suite
 
runAndWait(Test) - Static method in class junit.textui.TestRunner
Runs a single test and waits until the user types RETURN.
runBare() - Method in class junit.framework.TestCase
Runs the bare test sequence.
runBeforesThenTestThenAfters(Runnable) - Method in class org.junit.internal.runners.MethodRoadie
 
runChildren(RunNotifier) - Method in class org.junit.internal.runners.CompositeRunner
 
runClasses(Class<?>...) - Static method in class org.junit.runner.JUnitCore
Run the tests contained in classes.
runCount() - Method in class junit.framework.TestResult
Gets the number of run tests.
runFailed(String) - Method in class junit.runner.BaseTestRunner
Override to define how to handle a failed loading of a test suite.
runFailed(String) - Method in class junit.textui.TestRunner
 
runFinished() - Method in class junit.extensions.ActiveTestSuite
 
RunListener - Class in org.junit.runner.notification
If you need to respond to the events during a test run, extend RunListener and override the appropriate methods.
RunListener() - Constructor for class org.junit.runner.notification.RunListener
 
runMain(String...) - Method in class org.junit.runner.JUnitCore
Do not use.
runMethods(RunNotifier) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
Runner - Class in org.junit.runner
A Runner runs tests and notifies a RunNotifier of significant events as it does so.
Runner() - Constructor for class org.junit.runner.Runner
 
RunNotifier - Class in org.junit.runner.notification
If you write custom runners, you may need to notify JUnit of your progress running tests.
RunNotifier() - Constructor for class org.junit.runner.notification.RunNotifier
 
runProtected(Test, Protectable) - Method in class junit.framework.TestResult
Runs a TestCase.
runProtected() - Method in class org.junit.internal.runners.ClassRoadie
 
runSingleMethod(String, String, boolean) - Method in class junit.textui.TestRunner
 
runTest(Test, TestResult) - Method in class junit.extensions.ActiveTestSuite
 
runTest() - Method in class junit.framework.TestCase
Override to run the test and assert its state.
runTest(Test, TestResult) - Method in class junit.framework.TestSuite
 
runTest() - Method in class org.junit.internal.runners.MethodRoadie
 
runTestMethod() - Method in class org.junit.internal.runners.MethodRoadie
 
runUnprotected() - Method in class org.junit.internal.runners.ClassRoadie
 
RunWith - Annotation Type in org.junit.runner
When a class is annotated with @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.

S

savePreferences() - Static method in class junit.runner.BaseTestRunner
 
setLoading(boolean) - Method in class junit.runner.BaseTestRunner
Sets the loading behaviour of the test runner
setName(String) - Method in class junit.framework.TestCase
Sets the name of a TestCase
setName(String) - Method in class junit.framework.TestSuite
Sets the name of the suite.
setPreference(String, String) - Static method in class junit.runner.BaseTestRunner
 
setPreferences(Properties) - Static method in class junit.runner.BaseTestRunner
 
setPrinter(ResultPrinter) - Method in class junit.textui.TestRunner
 
setUp() - Method in class junit.extensions.TestSetup
Sets up the fixture.
setUp() - Method in class junit.framework.TestCase
Sets up the fixture, for example, open a network connection.
SHELL_POINT - Static variable in class org.junit.experimental.test.results.PrintableResultTest
 
shouldFilterNull() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
shouldRun(Description) - Method in class org.junit.runner.manipulation.Filter
 
shouldStop() - Method in class junit.framework.TestResult
Checks whether the test run should stop
shouldStop() - Method in class org.junit.experimental.test.theories.TheoriesTest.HonorTimeout
 
shouldThrow() - Method in class org.junit.experimental.test.theories.TheoriesTest.HonorExpectedException
 
showFailedAssumptionsWhenNoParametersFound(int, Matcher<Integer>) - Method in class org.junit.experimental.test.theories.TheoriesTest
 
showStackRaw() - Static method in class junit.runner.BaseTestRunner
 
signatures(Method) - Static method in class org.junit.experimental.theories.ParameterSignature
 
sort(Sorter) - Method in class junit.framework.JUnit4TestAdapter
 
sort(Sorter) - Method in class org.junit.internal.runners.CompositeRunner
 
sort(Sorter) - Method in class org.junit.internal.runners.JUnit38ClassRunner
 
sort(Sorter) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
sort(Sorter) - Method in interface org.junit.runner.manipulation.Sortable
Sorts the tests using sorter
Sortable - Interface in org.junit.runner.manipulation
Interface for runners that allow sorting of tests.
Sorter - Class in org.junit.runner.manipulation
A Sorter orders tests.
Sorter(Comparator<Description>) - Constructor for class org.junit.runner.manipulation.Sorter
Creates a Sorter that uses comparator to sort tests
SortingRequest - Class in org.junit.internal.requests
 
SortingRequest(Request, Comparator<Description>) - Constructor for class org.junit.internal.requests.SortingRequest
 
sortWith(Comparator<Description>) - Method in class org.junit.runner.Request
Returns a Request whose Tests can be run in a certain order, defined by comparator For example, here is code to run a test suite in alphabetical order:
SPACE - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
start(String[]) - Method in class junit.textui.TestRunner
Starts a test run.
startTest(Test) - Method in interface junit.framework.TestListener
A test started.
startTest(Test) - Method in class junit.framework.TestResult
Informs the result that a test will be started.
startTest(Test) - Method in class junit.runner.BaseTestRunner
 
startTest(Test) - Method in class junit.textui.ResultPrinter
 
STATUS_ERROR - Static variable in interface junit.runner.TestRunListener
 
STATUS_FAILURE - Static variable in interface junit.runner.TestRunListener
 
stop() - Method in class junit.framework.TestResult
Marks that the test run should stop.
StoppedByUserException - Exception in org.junit.runner.notification
Thrown when a user has requested that the test run stop.
StoppedByUserException() - Constructor for exception org.junit.runner.notification.StoppedByUserException
 
StringContains - Class in org.junit.matchers
Tests if the argument is a string that contains a substring.
StringContains(String) - Constructor for class org.junit.matchers.StringContains
 
substring - Variable in class org.junit.matchers.SubstringMatcher
 
SubstringMatcher - Class in org.junit.matchers
 
SubstringMatcher(String) - Constructor for class org.junit.matchers.SubstringMatcher
 
SUCCESS_EXIT - Static variable in class junit.textui.TestRunner
 
Suite - Class in org.junit.runners
Using Suite as a runner allows you to manually build a suite containing tests from many classes.
Suite(Class<?>) - Constructor for class org.junit.runners.Suite
Internal use only.
Suite(Class<?>, Class<?>[]) - Constructor for class org.junit.runners.Suite
 
Suite.SuiteClasses - Annotation Type in org.junit.runners
The SuiteClasses annotation specifies the classes to be run when a class annotated with @RunWith(Suite.class) is run.
SUITE_METHODNAME - Static variable in class junit.runner.BaseTestRunner
 

T

tearDown() - Method in class junit.extensions.TestSetup
Tears down the fixture.
tearDown() - Method in class junit.framework.TestCase
Tears down the fixture, for example, close a network connection.
Test - Interface in junit.framework
A Test can be run and collect its results.
Test - Annotation Type in org.junit
The Test annotation tells JUnit that the public void method to which it is attached can be run as a test case.
Test.None - Class in org.junit
Default empty exception
TEST_MECHANISM - Static variable in class org.junit.runner.Description
 
testAborted(Description, Throwable) - Method in class org.junit.runner.notification.RunNotifier
 
testAnnotations(Method) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
testAt(int) - Method in class junit.framework.TestSuite
Returns the test at the given index
TestCase - Class in junit.framework
A test case defines the fixture to run multiple tests.
TestCase() - Constructor for class junit.framework.TestCase
No-arg constructor to enable serialization.
TestCase(String) - Constructor for class junit.framework.TestCase
Constructs a test case with the given name.
TestClass - Class in org.junit.internal.runners
 
TestClass(Class<?>) - Constructor for class org.junit.internal.runners.TestClass
 
TestClassRunner - Class in org.junit.internal.runners
Deprecated. 
TestClassRunner(Class<?>) - Constructor for class org.junit.internal.runners.TestClassRunner
Deprecated.  
testCount() - Method in class junit.framework.TestSuite
Returns the number of tests in this suite
testCount() - Method in class org.junit.runner.Description
 
testCount() - Method in class org.junit.runner.Runner
 
TestDecorator - Class in junit.extensions
A Decorator for Tests.
TestDecorator(Test) - Constructor for class junit.extensions.TestDecorator
 
TestedOn - Annotation Type in org.junit.experimental.theories.suppliers
 
testedOnLimitsParameters() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
TestedOnSupplier - Class in org.junit.experimental.theories.suppliers
 
TestedOnSupplier() - Constructor for class org.junit.experimental.theories.suppliers.TestedOnSupplier
 
testEnded(String) - Method in class junit.runner.BaseTestRunner
 
testEnded(String) - Method in interface junit.runner.TestRunListener
 
testEnded(String) - Method in class junit.textui.TestRunner
 
testFailed(int, Test, Throwable) - Method in class junit.runner.BaseTestRunner
 
testFailed(int, String, String) - Method in interface junit.runner.TestRunListener
 
testFailed(int, Test, Throwable) - Method in class junit.textui.TestRunner
 
TestFailure - Class in junit.framework
A TestFailure collects a failed test together with the caught exception.
TestFailure(Test, Throwable) - Constructor for class junit.framework.TestFailure
Constructs a TestFailure with the given test and exception.
testFailure(Failure) - Method in class org.junit.internal.TextListener
 
testFailure(Failure) - Method in class org.junit.runner.notification.RunListener
Called when an atomic test fails.
testFinished(Description) - Method in class org.junit.runner.notification.RunListener
Called when an atomic test has finished, whether the test succeeds or fails.
testFromSuiteMethod(Class<?>) - Static method in class org.junit.runners.AllTests
 
testIgnored(Description) - Method in class org.junit.internal.TextListener
 
testIgnored(Description) - Method in class org.junit.runner.notification.RunListener
Called when a test will not be run, generally because a test method is annotated with Ignore.
TestListener - Interface in junit.framework
A Listener for test progress
TestMethod - Class in org.junit.internal.runners
 
TestMethod(Method, TestClass) - Constructor for class org.junit.internal.runners.TestMethod
 
testName(Method) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
TestResult - Class in junit.framework
A TestResult collects the results of executing a test case.
TestResult() - Constructor for class junit.framework.TestResult
 
testResult(Class<?>) - Static method in class org.junit.experimental.results.PrintableResult
 
testRunEnded(long) - Method in interface junit.runner.TestRunListener
 
testRunFinished(Result) - Method in class org.junit.internal.TextListener
 
testRunFinished(Result) - Method in class org.junit.runner.notification.RunListener
Called when all tests have finished
TestRunListener - Interface in junit.runner
A listener interface for observing the execution of a test run.
TestRunner - Class in junit.textui
A command line based tool to run tests.
TestRunner() - Constructor for class junit.textui.TestRunner
Constructs a TestRunner.
TestRunner(PrintStream) - Constructor for class junit.textui.TestRunner
Constructs a TestRunner using the given stream for all the output
TestRunner(ResultPrinter) - Constructor for class junit.textui.TestRunner
Constructs a TestRunner using the given ResultPrinter all the output
testRunStarted(String, int) - Method in interface junit.runner.TestRunListener
 
testRunStarted(Description) - Method in class org.junit.runner.notification.RunListener
Called before any tests have been run.
testRunStopped(long) - Method in interface junit.runner.TestRunListener
 
tests() - Method in class junit.framework.TestSuite
Returns the tests as an enumeration
TestSetup - Class in junit.extensions
A Decorator to set up and tear down additional fixture state.
TestSetup(Test) - Constructor for class junit.extensions.TestSetup
 
testStarted(String) - Method in class junit.runner.BaseTestRunner
 
testStarted(String) - Method in interface junit.runner.TestRunListener
 
testStarted(String) - Method in class junit.textui.TestRunner
 
testStarted(Description) - Method in class org.junit.internal.TextListener
 
testStarted(Description) - Method in class org.junit.runner.notification.RunListener
Called when an atomic test is about to be started.
TestSuite - Class in junit.framework
A TestSuite is a Composite of Tests.
TestSuite() - Constructor for class junit.framework.TestSuite
Constructs an empty TestSuite.
TestSuite(Class<? extends TestCase>) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given class.
TestSuite(Class<? extends TestCase>, String) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given class with the given name.
TestSuite(String) - Constructor for class junit.framework.TestSuite
Constructs an empty TestSuite.
TestSuite(Class<?>...) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given array of classes.
TestSuite(Class<? extends TestCase>[], String) - Constructor for class junit.framework.TestSuite
Constructs a TestSuite from the given array of classes with the given name.
TextListener - Class in org.junit.internal
 
TextListener() - Constructor for class org.junit.internal.TextListener
 
TextListener(PrintStream) - Constructor for class org.junit.internal.TextListener
 
Theories - Class in org.junit.experimental.theories
 
Theories(Class<?>) - Constructor for class org.junit.experimental.theories.Theories
 
TheoriesTest - Class in org.junit.experimental.test.theories
 
TheoriesTest() - Constructor for class org.junit.experimental.test.theories.TheoriesTest
 
TheoriesTest.AssumptionsFail - Class in org.junit.experimental.test.theories
 
TheoriesTest.AssumptionsFail() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.AssumptionsFail
 
TheoriesTest.DoesntUseParams - Class in org.junit.experimental.test.theories
 
TheoriesTest.DoesntUseParams() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.DoesntUseParams
 
TheoriesTest.HasATheory - Class in org.junit.experimental.test.theories
 
TheoriesTest.HasATheory() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.HasATheory
 
TheoriesTest.HasATwoParameterTheory - Class in org.junit.experimental.test.theories
 
TheoriesTest.HasATwoParameterTheory() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.HasATwoParameterTheory
 
TheoriesTest.HonorExpectedException - Class in org.junit.experimental.test.theories
 
TheoriesTest.HonorExpectedException() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.HonorExpectedException
 
TheoriesTest.HonorTimeout - Class in org.junit.experimental.test.theories
 
TheoriesTest.HonorTimeout() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.HonorTimeout
 
TheoriesTest.NullsOK - Class in org.junit.experimental.test.theories
 
TheoriesTest.NullsOK() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.NullsOK
 
TheoriesTest.ParameterAnnotations - Class in org.junit.experimental.test.theories
 
TheoriesTest.ParameterAnnotations() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.ParameterAnnotations
 
TheoriesTest.ShouldFilterNull - Class in org.junit.experimental.test.theories
 
TheoriesTest.ShouldFilterNull() - Constructor for class org.junit.experimental.test.theories.TheoriesTest.ShouldFilterNull
 
Theory - Annotation Type in org.junit.experimental.theories
 
theoryAnnotationsAreRetained() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
theoryClassMethodsShowUp() - Method in class org.junit.experimental.test.theories.TheoriesTest
 
TheoryMethod - Class in org.junit.experimental.theories.internal
 
TheoryMethod(Method, TestClass) - Constructor for class org.junit.experimental.theories.internal.TheoryMethod
 
TheoryMethod.PotentialMethodValues - Class in org.junit.experimental.theories.internal
 
TheoryMethod.PotentialMethodValues() - Constructor for class org.junit.experimental.theories.internal.TheoryMethod.PotentialMethodValues
 
TheoryMethod.PotentialMethodValues(List<PotentialParameterValue>) - Constructor for class org.junit.experimental.theories.internal.TheoryMethod.PotentialMethodValues
 
THREE - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 
thrownException() - Method in class junit.framework.TestFailure
Gets the thrown exception.
toString() - Method in class junit.extensions.RepeatedTest
 
toString() - Method in class junit.extensions.TestDecorator
 
toString() - Method in class junit.framework.JUnit4TestAdapter
 
toString() - Method in class junit.framework.JUnit4TestCaseFacade
 
toString() - Method in class junit.framework.TestCase
Returns a string representation of the test case
toString() - Method in class junit.framework.TestFailure
Returns a short description of the failure.
toString() - Method in class junit.framework.TestSuite
 
toString() - Method in class org.junit.experimental.results.PrintableResult
 
toString() - Method in error org.junit.internal.ArrayComparisonFailure
toString() - Method in class org.junit.runner.Description
 
toString() - Method in class org.junit.runner.notification.Failure
 
trace() - Method in class junit.framework.TestFailure
 
truncate(String) - Static method in class junit.runner.BaseTestRunner
Truncates a String to the maximum length.
TWO - Static variable in class org.junit.experimental.test.theories.DataPointMethodTest.DataPointMethodReturnsMutableObject
 
TypeSafeMatcher<T> - Class in org.junit.matchers
Convenient base class for Matchers that require a non-null value of a specific type.
TypeSafeMatcher() - Constructor for class org.junit.matchers.TypeSafeMatcher
 
TypeSafeMatcher(Class<T>) - Constructor for class org.junit.matchers.TypeSafeMatcher
 

U

useReloadingTestSuiteLoader() - Method in class junit.runner.BaseTestRunner
 

V

validate() - Method in class org.junit.experimental.theories.Theories
 
validate() - Method in class org.junit.internal.runners.JUnit4ClassRunner
 
validate(MethodValidator) - Method in class org.junit.runners.Suite
 
validateInstanceMethods() - Method in class org.junit.internal.runners.MethodValidator
 
validateMethodsForDefaultRunner() - Method in class org.junit.internal.runners.MethodValidator
 
validateNoArgConstructor() - Method in class org.junit.internal.runners.MethodValidator
 
validateStaticMethods() - Method in class org.junit.internal.runners.MethodValidator
 
Version - Class in junit.runner
This class defines the current version of JUnit

W

warning(String) - Static method in class junit.framework.TestSuite
Returns a test which will fail and log a warning message.
wasSuccessful() - Method in class junit.framework.TestResult
Returns whether the entire test was successful or not.
wasSuccessful() - Method in class org.junit.runner.Result
 
wrapMethod(Method) - Method in class org.junit.experimental.theories.Theories
 
wrapMethod(Method) - Method in class org.junit.internal.runners.JUnit4ClassRunner
 

Z

ZERO - Static variable in class org.junit.experimental.test.theories.TheoriesTest
 

A B C D E F G H I J L M N O P R S T U V W Z