- accept(FrameworkMember<?>, T) - Method in interface org.junit.runners.model.MemberValueConsumer
-
Receives the next value and its declaring member.
- 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
-
- addChild(Description) - Method in class org.junit.runner.Description
-
Add Description as a child of the receiver.
- 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
-
- addError(Throwable) - Method in class org.junit.rules.ErrorCollector
-
Adds a Throwable to the table.
- 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
-
- 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.
- addToAnnotationLists(T, Map<Class<? extends Annotation>, List<T>>) - Static method in class org.junit.runners.model.TestClass
-
- After - Annotation Type in org.junit
-
If you allocate external resources in a
Before method you need to release them
after the test runs.
- after() - Method in class org.junit.rules.ExternalResource
-
Override to tear down your specific external resource.
- after() - Method in class org.junit.rules.TemporaryFolder
-
- 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.
- AllOf<T> - Class in org.hamcrest.core
-
Calculates the logical conjunction of multiple matchers.
- AllOf(Iterable<Matcher<? super T>>) - Constructor for class org.hamcrest.core.AllOf
-
- allOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>...) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AllOf
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- 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
-
Only called reflectively.
- Alphanumeric - Class in org.junit.runner.manipulation
-
A sorter that orders tests alphanumerically by test name.
- Alphanumeric() - Constructor for class org.junit.runner.manipulation.Alphanumeric
-
- and(Condition.Step<? super T, U>) - Method in class org.hamcrest.Condition
-
- and(Matcher<? super T>) - Method in class org.hamcrest.core.CombinableMatcher
-
- and(Matcher<? super X>) - Method in class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
-
- Annotatable - Interface in org.junit.runners.model
-
A model element that may have annotations.
- AnnotationsValidator - Class in org.junit.validator
-
An AnnotationsValidator validates all annotations of a test class,
including its annotated fields and methods.
- AnnotationsValidator() - Constructor for class org.junit.validator.AnnotationsValidator
-
- AnnotationValidator - Class in org.junit.validator
-
Validates annotations on classes and methods.
- AnnotationValidator() - Constructor for class org.junit.validator.AnnotationValidator
-
- AnnotationValidatorFactory - Class in org.junit.validator
-
Creates instances of Annotation Validators.
- AnnotationValidatorFactory() - Constructor for class org.junit.validator.AnnotationValidatorFactory
-
- any(Class<T>) - Static method in class org.hamcrest.core.IsInstanceOf
-
Creates a matcher that matches when the examined object is an instance of the specified
type,
as determined by calling the
Class.isInstance(Object) method on that type, passing the
the examined object.
- any(Class<T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches when the examined object is an instance of the specified
type,
as determined by calling the
Class.isInstance(Object) method on that type, passing the
the examined object.
- AnyOf<T> - Class in org.hamcrest.core
-
Calculates the logical disjunction of multiple matchers.
- AnyOf(Iterable<Matcher<? super T>>) - Constructor for class org.hamcrest.core.AnyOf
-
- anyOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<? super T>...) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.core.AnyOf
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Iterable<Matcher<? super T>>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- anything() - Static method in class org.hamcrest.core.IsAnything
-
Creates a matcher that always matches, regardless of the examined object.
- anything(String) - Static method in class org.hamcrest.core.IsAnything
-
Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified
String.
- anything() - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that always matches, regardless of the examined object.
- anything(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that always matches, regardless of the examined object, but describes
itself with the specified
String.
- append(String) - Method in class org.hamcrest.BaseDescription
-
Append the String str to the description.
- append(char) - Method in class org.hamcrest.BaseDescription
-
Append the char c to the description.
- append(String) - Method in class org.hamcrest.StringDescription
-
- append(char) - Method in class org.hamcrest.StringDescription
-
- appendDescriptionOf(SelfDescribing) - Method in class org.hamcrest.BaseDescription
-
- appendDescriptionOf(SelfDescribing) - Method in interface org.hamcrest.Description
-
Appends the description of a
SelfDescribing value to this description.
- appendDescriptionOf(SelfDescribing) - Method in class org.hamcrest.Description.NullDescription
-
- appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in class org.hamcrest.BaseDescription
-
- appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in interface org.hamcrest.Description
-
- appendList(String, String, String, Iterable<? extends SelfDescribing>) - Method in class org.hamcrest.Description.NullDescription
-
- appendText(String) - Method in class org.hamcrest.BaseDescription
-
- appendText(String) - Method in interface org.hamcrest.Description
-
Appends some plain text to the description.
- appendText(String) - Method in class org.hamcrest.Description.NullDescription
-
- appendValue(Object) - Method in class org.hamcrest.BaseDescription
-
- appendValue(Object) - Method in interface org.hamcrest.Description
-
Appends an arbitary value to the description.
- appendValue(Object) - Method in class org.hamcrest.Description.NullDescription
-
- appendValueList(String, String, String, T...) - Method in class org.hamcrest.BaseDescription
-
- appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.BaseDescription
-
- appendValueList(String, String, String, T...) - Method in interface org.hamcrest.Description
-
Appends a list of values to the description.
- appendValueList(String, String, String, Iterable<T>) - Method in interface org.hamcrest.Description
-
Appends a list of values to the description.
- appendValueList(String, String, String, T...) - Method in class org.hamcrest.Description.NullDescription
-
- appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.Description.NullDescription
-
- apply(I, Description) - Method in interface org.hamcrest.Condition.Step
-
- apply(Statement, Description) - Method in class org.junit.rules.DisableOnDebug
-
- apply(Statement, Description) - Method in class org.junit.rules.ExpectedException
-
- apply(Statement, Description) - Method in class org.junit.rules.ExternalResource
-
- apply(Statement, FrameworkMethod, Object) - Method in interface org.junit.rules.MethodRule
-
Modifies the method-running
Statement to implement an additional
test-running rule.
- apply(Statement, Description) - Method in class org.junit.rules.RuleChain
-
Modifies the method-running
Statement to implement this
test-running rule.
- apply(Statement, Description) - Method in class org.junit.rules.Stopwatch
-
- apply(Statement, Description) - Method in interface org.junit.rules.TestRule
-
Modifies the method-running
Statement to implement this
test-running rule.
- apply(Statement, Description) - Method in class org.junit.rules.TestWatcher
-
- apply(Statement, FrameworkMethod, Object) - Method in class org.junit.rules.TestWatchman
-
Deprecated.
- apply(Statement, Description) - Method in class org.junit.rules.Timeout
-
- apply(Statement, Description) - Method in class org.junit.rules.Verifier
-
- apply(Object) - 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(Object) - Method in class org.junit.runner.manipulation.Orderer
-
Order the tests in target.
- apply(Object) - Method in class org.junit.runner.manipulation.Ordering
-
Order the tests in target using this ordering.
- apply(Object) - Method in class org.junit.runner.manipulation.Sorter
-
Sorts the tests in target using comparator.
- around(TestRule) - Method in class org.junit.rules.RuleChain
-
Create a new
RuleChain, which encloses the given
TestRule with
the rules of the current
RuleChain.
- Assert - Class in junit.framework
-
- Assert() - Constructor for class junit.framework.Assert
-
Deprecated.
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, boolean[], boolean[]) - Static method in class org.junit.Assert
-
Asserts that two boolean arrays are equal.
- assertArrayEquals(boolean[], boolean[]) - Static method in class org.junit.Assert
-
Asserts that two boolean 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.
- assertArrayEquals(String, double[], double[], double) - Static method in class org.junit.Assert
-
Asserts that two double arrays are equal.
- assertArrayEquals(double[], double[], double) - Static method in class org.junit.Assert
-
Asserts that two double arrays are equal.
- assertArrayEquals(String, float[], float[], float) - Static method in class org.junit.Assert
-
Asserts that two float arrays are equal.
- assertArrayEquals(float[], float[], float) - Static method in class org.junit.Assert
-
Asserts that two float arrays are equal.
- assertEmpty(List<Throwable>) - Static method in exception org.junit.runners.model.MultipleFailureException
-
Asserts that a list of throwables is empty.
- assertEquals(String, Object, Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two objects are equal.
- assertEquals(Object, Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two objects are equal.
- assertEquals(String, String, String) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two Strings are equal.
- assertEquals(String, String) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two Strings are equal.
- assertEquals(String, double, double, double) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two doubles are equal concerning a delta.
- assertEquals(double, double, double) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two doubles are equal concerning a delta.
- assertEquals(String, float, float, float) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two floats are equal concerning a positive delta.
- assertEquals(float, float, float) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two floats are equal concerning a delta.
- assertEquals(String, long, long) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two longs are equal.
- assertEquals(long, long) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two longs are equal.
- assertEquals(String, boolean, boolean) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two booleans are equal.
- assertEquals(boolean, boolean) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two booleans are equal.
- assertEquals(String, byte, byte) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two bytes are equal.
- assertEquals(byte, byte) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two bytes are equal.
- assertEquals(String, char, char) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two chars are equal.
- assertEquals(char, char) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two chars are equal.
- assertEquals(String, short, short) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two shorts are equal.
- assertEquals(short, short) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two shorts are equal.
- assertEquals(String, int, int) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two ints are equal.
- assertEquals(int, int) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two ints are equal.
- assertEquals(String, Object, Object) - Static method in class junit.framework.TestCase
-
Asserts that two objects are equal.
- assertEquals(Object, Object) - Static method in class junit.framework.TestCase
-
Asserts that two objects are equal.
- assertEquals(String, String, String) - Static method in class junit.framework.TestCase
-
Asserts that two Strings are equal.
- assertEquals(String, String) - Static method in class junit.framework.TestCase
-
Asserts that two Strings are equal.
- assertEquals(String, double, double, double) - Static method in class junit.framework.TestCase
-
Asserts that two doubles are equal concerning a delta.
- assertEquals(double, double, double) - Static method in class junit.framework.TestCase
-
Asserts that two doubles are equal concerning a delta.
- assertEquals(String, float, float, float) - Static method in class junit.framework.TestCase
-
Asserts that two floats are equal concerning a positive delta.
- assertEquals(float, float, float) - Static method in class junit.framework.TestCase
-
Asserts that two floats are equal concerning a delta.
- assertEquals(String, long, long) - Static method in class junit.framework.TestCase
-
Asserts that two longs are equal.
- assertEquals(long, long) - Static method in class junit.framework.TestCase
-
Asserts that two longs are equal.
- assertEquals(String, boolean, boolean) - Static method in class junit.framework.TestCase
-
Asserts that two booleans are equal.
- assertEquals(boolean, boolean) - Static method in class junit.framework.TestCase
-
Asserts that two booleans are equal.
- assertEquals(String, byte, byte) - Static method in class junit.framework.TestCase
-
Asserts that two bytes are equal.
- assertEquals(byte, byte) - Static method in class junit.framework.TestCase
-
Asserts that two bytes are equal.
- assertEquals(String, char, char) - Static method in class junit.framework.TestCase
-
Asserts that two chars are equal.
- assertEquals(char, char) - Static method in class junit.framework.TestCase
-
Asserts that two chars are equal.
- assertEquals(String, short, short) - Static method in class junit.framework.TestCase
-
Asserts that two shorts are equal.
- assertEquals(short, short) - Static method in class junit.framework.TestCase
-
Asserts that two shorts are equal.
- assertEquals(String, int, int) - Static method in class junit.framework.TestCase
-
Asserts that two ints are equal.
- assertEquals(int, int) - Static method in class junit.framework.TestCase
-
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 are equal to within a positive delta.
- assertEquals(String, float, float, float) - Static method in class org.junit.Assert
-
Asserts that two floats are equal to within a positive delta.
- assertEquals(long, long) - Static method in class org.junit.Assert
-
Asserts that two longs are equal.
- assertEquals(String, long, long) - Static method in class org.junit.Assert
-
Asserts that two longs are equal.
- 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 are equal to within a positive delta.
- assertEquals(float, float, float) - Static method in class org.junit.Assert
-
Asserts that two floats are equal to within a positive delta.
- assertEquals(String, Object[], Object[]) - Static method in class org.junit.Assert
-
- assertEquals(Object[], Object[]) - Static method in class org.junit.Assert
-
- assertFalse(String, boolean) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that a condition is false.
- assertFalse(boolean) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that a condition is false.
- assertFalse(String, boolean) - Static method in class junit.framework.TestCase
-
Asserts that a condition is false.
- assertFalse(boolean) - Static method in class junit.framework.TestCase
-
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
-
Constructs a new AssertionFailedError without a detail message.
- AssertionFailedError(String) - Constructor for error junit.framework.AssertionFailedError
-
Constructs a new AssertionFailedError with the specified detail message.
- assertNotEquals(String, Object, Object) - Static method in class org.junit.Assert
-
Asserts that two objects are not equals.
- assertNotEquals(Object, Object) - Static method in class org.junit.Assert
-
Asserts that two objects are not equals.
- assertNotEquals(String, long, long) - Static method in class org.junit.Assert
-
Asserts that two longs are not equals.
- assertNotEquals(long, long) - Static method in class org.junit.Assert
-
Asserts that two longs are not equals.
- assertNotEquals(String, double, double, double) - Static method in class org.junit.Assert
-
Asserts that two doubles are not equal to within a positive delta.
- assertNotEquals(double, double, double) - Static method in class org.junit.Assert
-
Asserts that two doubles are not equal to within a positive delta.
- assertNotEquals(float, float, float) - Static method in class org.junit.Assert
-
Asserts that two floats are not equal to within a positive delta.
- assertNotEquals(String, float, float, float) - Static method in class org.junit.Assert
-
Asserts that two floats are not equal to within a positive delta.
- assertNotNull(Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that an object isn't null.
- assertNotNull(String, Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that an object isn't null.
- assertNotNull(Object) - Static method in class junit.framework.TestCase
-
Asserts that an object isn't null.
- assertNotNull(String, Object) - Static method in class junit.framework.TestCase
-
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
-
Deprecated.
Asserts that two objects do not refer to the same object.
- assertNotSame(Object, Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two objects do not refer to the same object.
- assertNotSame(String, Object, Object) - Static method in class junit.framework.TestCase
-
Asserts that two objects do not refer to the same object.
- assertNotSame(Object, Object) - Static method in class junit.framework.TestCase
-
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
-
Deprecated.
Asserts that an object is null.
- assertNull(String, Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that an object is null.
- assertNull(Object) - Static method in class junit.framework.TestCase
-
Asserts that an object is null.
- assertNull(String, Object) - Static method in class junit.framework.TestCase
-
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
-
Deprecated.
Asserts that two objects refer to the same object.
- assertSame(Object, Object) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that two objects refer to the same object.
- assertSame(String, Object, Object) - Static method in class junit.framework.TestCase
-
Asserts that two objects refer to the same object.
- assertSame(Object, Object) - Static method in class junit.framework.TestCase
-
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<? super T>) - Static method in class org.hamcrest.MatcherAssert
-
- assertThat(String, T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
-
- assertThat(String, boolean) - Static method in class org.hamcrest.MatcherAssert
-
- assertThat(T, Matcher<? super T>) - Static method in class org.junit.Assert
-
- assertThat(String, T, Matcher<? super T>) - Static method in class org.junit.Assert
-
- assertThrows(Class<T>, ThrowingRunnable) - Static method in class org.junit.Assert
-
Asserts that runnable throws an exception of type expectedThrowable when
executed.
- assertThrows(String, Class<T>, ThrowingRunnable) - Static method in class org.junit.Assert
-
Asserts that runnable throws an exception of type expectedThrowable when
executed.
- assertTrue(String, boolean) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that a condition is true.
- assertTrue(boolean) - Static method in class junit.framework.Assert
-
Deprecated.
Asserts that a condition is true.
- assertTrue(String, boolean) - Static method in class junit.framework.TestCase
-
Asserts that a condition is true.
- assertTrue(boolean) - Static method in class junit.framework.TestCase
-
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.
- asString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
-
- Assume - Class in org.junit
-
A set of methods useful for stating assumptions about the conditions in which a test is meaningful.
- Assume() - Constructor for class org.junit.Assume
-
- assumeFalse(boolean) - Static method in class org.junit.Assume
-
- assumeFalse(String, boolean) - Static method in class org.junit.Assume
-
- assumeNoException(Throwable) - Static method in class org.junit.Assume
-
Use to assume that an operation completes normally.
- assumeNoException(String, Throwable) - Static method in class org.junit.Assume
-
Attempts to halt the test and ignore it if Throwable e is
not null.
- assumeNotNull(Object...) - Static method in class org.junit.Assume
-
If called with a null array or one or more null elements in objects,
the test will halt and be ignored.
- assumeThat(T, Matcher<T>) - Static method in class org.junit.Assume
-
Call to assume that actual satisfies the condition specified by matcher.
- assumeThat(String, T, Matcher<T>) - Static method in class org.junit.Assume
-
Call to assume that actual satisfies the condition specified by matcher.
- assumeTrue(boolean) - Static method in class org.junit.Assume
-
If called with an expression evaluating to false, the test will halt and be ignored.
- assumeTrue(String, boolean) - Static method in class org.junit.Assume
-
If called with an expression evaluating to false, the test will halt and be ignored.
- AssumptionViolatedException - Exception in org.junit
-
An exception class used to implement assumptions (state in which a given test
is meaningful and should or should not be executed).
- AssumptionViolatedException(T, Matcher<T>) - Constructor for exception org.junit.AssumptionViolatedException
-
An assumption exception with the given actual value and a matcher describing
the expectation that failed.
- AssumptionViolatedException(String, T, Matcher<T>) - Constructor for exception org.junit.AssumptionViolatedException
-
An assumption exception with a message with the given actual value and a
matcher describing the expectation that failed.
- AssumptionViolatedException(String) - Constructor for exception org.junit.AssumptionViolatedException
-
An assumption exception with the given message only.
- AssumptionViolatedException(String, Throwable) - Constructor for exception org.junit.AssumptionViolatedException
-
An assumption exception with the given message and a cause.
- assureDeletion() - Method in class org.junit.rules.TemporaryFolder.Builder
-
Setting this flag assures that no resources are left undeleted.
- asTest(Description) - Method in class junit.framework.JUnit4TestAdapterCache
-
- asTestList(Description) - Method in class junit.framework.JUnit4TestAdapterCache
-
- canAcceptType(Class<?>) - Method in class org.junit.experimental.theories.ParameterSignature
-
- canAcceptValue(Object) - Method in class org.junit.experimental.theories.ParameterSignature
-
- canPotentiallyAcceptType(Class<?>) - Method in class org.junit.experimental.theories.ParameterSignature
-
- Categories - Class in org.junit.experimental.categories
-
From a given set of test classes, runs only the classes and methods that are
annotated with either the category given with the @IncludeCategory
annotation, or a subtype of that category.
- Categories(Class<?>, RunnerBuilder) - Constructor for class org.junit.experimental.categories.Categories
-
- Categories.CategoryFilter - Class in org.junit.experimental.categories
-
- Categories.ExcludeCategory - Annotation Type in org.junit.experimental.categories
-
- Categories.IncludeCategory - Annotation Type in org.junit.experimental.categories
-
- Category - Annotation Type in org.junit.experimental.categories
-
Marks a test class or test method as belonging to one or more categories of tests.
- CategoryFilter(Class<?>, Class<?>) - Constructor for class org.junit.experimental.categories.Categories.CategoryFilter
-
Deprecated.
- CategoryFilter(boolean, Set<Class<?>>, boolean, Set<Class<?>>) - Constructor for class org.junit.experimental.categories.Categories.CategoryFilter
-
- categoryFilter(boolean, Set<Class<?>>, boolean, Set<Class<?>>) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
-
- CategoryValidator - Class in org.junit.experimental.categories
-
Validates that there are no errors in the use of the Category
annotation.
- CategoryValidator() - Constructor for class org.junit.experimental.categories.CategoryValidator
-
- checkSucceeds(Callable<T>) - Method in class org.junit.rules.ErrorCollector
-
Adds to the table the exception, if any, thrown from callable.
- checkThat(T, Matcher<T>) - Method in class org.junit.rules.ErrorCollector
-
Adds a failure to the table if matcher does not match value.
- checkThat(String, T, Matcher<T>) - Method in class org.junit.rules.ErrorCollector
-
Adds a failure with the given reason
to the table if matcher does not match value.
- checkThrows(Class<? extends Throwable>, ThrowingRunnable) - Method in class org.junit.rules.ErrorCollector
-
Adds a failure to the table if runnable does not throw an
exception of type expectedThrowable when executed.
- childlessCopy() - Method in class org.junit.runner.Description
-
- childrenInvoker(RunNotifier) - Method in class org.junit.runners.ParentRunner
-
- classBlock(RunNotifier) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
-
- classBlock(RunNotifier) - Method in class org.junit.runners.ParentRunner
-
Constructs a Statement to run all of the tests in the test class.
- classes() - Static method in class org.junit.experimental.ParallelComputer
-
- classes(Computer, 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.
- classes(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 with the default Computer.
- ClassRule - Annotation Type in org.junit
-
Annotates static fields that reference rules or methods that return them.
- classRules() - Method in class org.junit.runners.ParentRunner
-
- classWithoutSuiteMethod(Class<?>) - Static method in class org.junit.runner.Request
-
Create a Request that, when processed, will run all the tests
in a class.
- clearStatus() - Method in class junit.runner.BaseTestRunner
-
Clears the status message.
- collectAnnotatedFieldValues(Object, Class<? extends Annotation>, Class<T>, MemberValueConsumer<T>) - Method in class org.junit.runners.model.TestClass
-
Finds the fields annotated with the specified annotation and having the specified type,
retrieves the values and passes those to the specified consumer.
- collectAnnotatedMethodValues(Object, Class<? extends Annotation>, Class<T>, MemberValueConsumer<T>) - Method in class org.junit.runners.model.TestClass
-
Finds the methods annotated with the specified annotation and returning the specified type,
invokes it and pass the return value to the specified consumer.
- collectInitializationErrors(List<Throwable>) - Method in class org.junit.experimental.theories.Theories
-
- collectInitializationErrors(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
- collectInitializationErrors(List<Throwable>) - Method in class org.junit.runners.ParentRunner
-
- CombinableBothMatcher(Matcher<? super X>) - Constructor for class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher
-
- CombinableEitherMatcher(Matcher<? super X>) - Constructor for class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher
-
- CombinableMatcher<T> - Class in org.hamcrest.core
-
- CombinableMatcher(Matcher<? super T>) - Constructor for class org.hamcrest.core.CombinableMatcher
-
- CombinableMatcher.CombinableBothMatcher<X> - Class in org.hamcrest.core
-
- CombinableMatcher.CombinableEitherMatcher<X> - Class in org.hamcrest.core
-
- 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
-
- ComparisonFailure(String, String, String) - Constructor for error org.junit.ComparisonFailure
-
Constructs a comparison failure.
- Computer - Class in org.junit.runner
-
Represents a strategy for computing runners and suites.
- Computer() - Constructor for class org.junit.runner.Computer
-
- computeTestMethods() - Method in class org.junit.experimental.theories.Theories
-
- computeTestMethods() - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
Returns the methods that run tests.
- Condition<T> - Class in org.hamcrest
-
A Condition implements part of a multi-step match.
- Condition.Step<I,O> - Interface in org.hamcrest
-
- containsString(String) - Static method in class org.hamcrest.core.StringContains
-
Creates a matcher that matches if the examined
String contains the specified
String anywhere.
- containsString(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined
String contains the specified
String anywhere.
- containsString(String) - Static method in class org.junit.matchers.JUnitMatchers
-
- CoreMatchers - Class in org.hamcrest
-
- CoreMatchers() - Constructor for class org.hamcrest.CoreMatchers
-
- CouldNotGenerateValueException() - Constructor for exception org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
-
- CouldNotGenerateValueException(Throwable) - Constructor for exception org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
-
- CouldNotReadCoreException - Exception in org.junit.experimental.max
-
Thrown when Max cannot read the MaxCore serialization
- CouldNotReadCoreException(Throwable) - Constructor for exception org.junit.experimental.max.CouldNotReadCoreException
-
Constructs
- 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.
- create() - Method in class org.junit.rules.TemporaryFolder
-
for testing purposes only.
- create(Ordering.Context) - Method in class org.junit.runner.manipulation.Alphanumeric
-
- create(Ordering.Context) - Method in interface org.junit.runner.manipulation.Ordering.Factory
-
Creates an Ordering instance using the given context.
- createAnnotationValidator(ValidateWith) - Method in class org.junit.validator.AnnotationValidatorFactory
-
Creates the AnnotationValidator specified by the value in
ValidateWith.
- createFailOnTimeoutStatement(Statement) - Method in class org.junit.rules.Timeout
-
Creates a
Statement that will run the given
statement, and timeout the operation based
on the values configured in this rule.
- createFilter(List<Class<?>>) - Method in class org.junit.experimental.categories.ExcludeCategories
-
Creates a
Filter which is only passed by tests that are
not categorized with any of the specified categories.
- createFilter(List<Class<?>>) - Method in class org.junit.experimental.categories.IncludeCategories
-
Creates a
Filter which is only passed by tests that are
categorized with any of the specified categories.
- createFilter(FilterFactoryParams) - Method in interface org.junit.runner.FilterFactory
-
- createListener() - Method in class org.junit.runner.Result
-
Internal use only.
- createResult() - Method in class junit.framework.TestCase
-
Creates a default TestResult object.
- createRunnerForTestWithParameters(TestWithParameters) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory
-
- createRunnerForTestWithParameters(TestWithParameters) - Method in interface org.junit.runners.parameterized.ParametersRunnerFactory
-
- createSuiteDescription(String, Annotation...) - Static method in class org.junit.runner.Description
-
Create a Description named name.
- createSuiteDescription(String, Serializable, 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
- createSuiteDescription(Class<?>, Annotation...) - Static method in class org.junit.runner.Description
-
Create a Description named after testClass
- createTest(Class<?>, 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.runners.BlockJUnit4ClassRunner
-
Returns a new fixture for running a test.
- createTest(FrameworkMethod) - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
Returns a new fixture to run a particular test method against.
- createTest() - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
-
- createTestClass(Class<?>) - Method in class org.junit.runners.ParentRunner
-
- createTestDescription(String, String, Annotation...) - Static method in class org.junit.runner.Description
-
Create a Description of a single test named name in the 'class' named
className.
- 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.
- createTestDescription(String, String, Serializable) - 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.
- CustomMatcher<T> - Class in org.hamcrest
-
Utility class for writing one off matchers.
- CustomMatcher(String) - Constructor for class org.hamcrest.CustomMatcher
-
- CustomTypeSafeMatcher<T> - Class in org.hamcrest
-
Utility class for writing one off matchers.
- CustomTypeSafeMatcher(String) - Constructor for class org.hamcrest.CustomTypeSafeMatcher
-
- get(Object) - Method in class org.junit.runners.model.FrameworkField
-
Attempts to retrieve the value of this field on target
- getActual() - Method in error junit.framework.ComparisonFailure
-
Gets the actual string value
- getActual() - Method in error org.junit.ComparisonFailure
-
Returns the actual string value
- getAnnotatedFields() - Method in class org.junit.runners.model.TestClass
-
Returns, efficiently, all the non-overridden fields in this class and its
superclasses that are annotated.
- getAnnotatedFields(Class<? extends Annotation>) - Method in class org.junit.runners.model.TestClass
-
Returns, efficiently, all the non-overridden fields in this class and its
superclasses that are annotated with annotationClass.
- getAnnotatedFieldValues(Object, Class<? extends Annotation>, Class<T>) - Method in class org.junit.runners.model.TestClass
-
- getAnnotatedMethods() - Method in class org.junit.runners.model.TestClass
-
Returns, efficiently, all the non-overridden methods in this class and
its superclasses that are annotated}.
- getAnnotatedMethods(Class<? extends Annotation>) - Method in class org.junit.runners.model.TestClass
-
Returns, efficiently, all the non-overridden methods in this class and
its superclasses that are annotated with annotationClass.
- getAnnotatedMethodValues(Object, Class<? extends Annotation>, Class<T>) - Method in class org.junit.runners.model.TestClass
-
- getAnnotation(Class<T>) - Method in class org.junit.experimental.theories.ParameterSignature
-
- getAnnotation(Class<T>) - Method in class org.junit.runner.Description
-
- getAnnotation(Class<T>) - Method in interface org.junit.runners.model.Annotatable
-
Returns the annotation on the model element of the given type, or @code{null}
- getAnnotation(Class<T>) - Method in class org.junit.runners.model.FrameworkField
-
- getAnnotation(Class<T>) - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the annotation of type annotationType on this method, if
one exists.
- getAnnotation(Class<T>) - Method in class org.junit.runners.model.TestClass
-
- getAnnotations() - Method in class org.junit.experimental.theories.ParameterSignature
-
- getAnnotations() - Method in class org.junit.runner.Description
-
- getAnnotations() - Method in interface org.junit.runners.model.Annotatable
-
Returns the model elements' annotations.
- getAnnotations() - Method in class org.junit.runners.model.FrameworkField
-
- getAnnotations() - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the annotations on this method
- getAnnotations() - Method in class org.junit.runners.model.TestClass
-
Returns the annotations on this class
- getArgs() - Method in class org.junit.runner.FilterFactoryParams
-
- getAssumptionFailureCount() - Method in class org.junit.runner.Result
-
Returns the number of tests skipped because of an assumption failure
- getCauses() - Method in exception org.junit.runners.model.InitializationError
-
Returns one or more Throwables that led to this initialization error.
- getChildren() - Method in class org.junit.runner.Description
-
Gets the copy of the children of this Description.
- getChildren() - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
- getChildren() - Method in class org.junit.runners.ParentRunner
-
Returns a list of objects that define the children of this Runner.
- getChildren() - Method in class org.junit.runners.Suite
-
- getClassName() - Method in class org.junit.runner.Description
-
- getComparator() - Method in enum org.junit.runners.MethodSorters
-
- getDeclaringClass() - Method in class org.junit.runners.model.FrameworkField
-
- getDeclaringClass() - Method in class org.junit.runners.model.FrameworkMember
-
- getDeclaringClass() - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the class where the method is actually declared
- 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.experimental.theories.PotentialAssignment
-
- getDescription() - Method in interface org.junit.runner.Describable
-
- getDescription() - Method in class org.junit.runner.notification.Failure
-
- getDescription() - Method in class org.junit.runner.Runner
-
- getDescription() - Method in class org.junit.runners.ParentRunner
-
- 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
- getFailureCount() - Method in class org.junit.runner.Result
-
Returns the number of tests that failed during the run
- getFailures() - Method in class org.junit.runner.Result
-
Returns the
Failures describing tests that failed and the problems they encountered
- getFailures() - Method in exception org.junit.runners.model.MultipleFailureException
-
- getField() - Method in class org.junit.runners.model.FrameworkField
-
- 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.runners.model.TestClass
-
Returns the underlying Java class.
- getLookingForStuckThread() - Method in class org.junit.rules.Timeout.Builder
-
- getLookingForStuckThread() - Method in class org.junit.rules.Timeout
-
Gets whether this Timeout will look for a stuck thread
when the test times out.
- 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 error org.junit.ComparisonFailure
-
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
- getMessage() - Method in class org.junit.runner.notification.Failure
-
Convenience method
- getMessage() - Method in exception org.junit.runners.model.InvalidTestClassError
-
- getMessage() - Method in exception org.junit.runners.model.MultipleFailureException
-
- getMethod() - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the underlying Java method
- getMethodName() - Method in class org.junit.rules.TestName
-
- getMethodName() - Method in class org.junit.runner.Description
-
- getModifiers() - Method in class org.junit.runners.model.FrameworkField
-
- getModifiers() - Method in class org.junit.runners.model.FrameworkMember
-
- getModifiers() - Method in class org.junit.runners.model.FrameworkMethod
-
- 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.runners.model.FrameworkField
-
- getName() - Method in class org.junit.runners.model.FrameworkMember
-
- getName() - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the method's name
- getName() - Method in class org.junit.runners.model.TestClass
-
Returns the class's name.
- getName() - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
-
- getName() - Method in class org.junit.runners.parameterized.TestWithParameters
-
- getName() - Method in class org.junit.runners.ParentRunner
-
Returns a name used to describe this Runner
- getNotifier(TestResult, JUnit4TestAdapter) - Method in class junit.framework.JUnit4TestAdapterCache
-
- getOnlyConstructor() - Method in class org.junit.runners.model.TestClass
-
Returns the only public constructor in the class, or throws an AssertionError if there are more or less than one.
- getParameters() - Method in class org.junit.runners.parameterized.TestWithParameters
-
- 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
-
- getReturnType() - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the return type of the method
- getRoot() - Method in class org.junit.rules.TemporaryFolder
-
- getRunCount() - Method in class org.junit.runner.Result
-
Returns the number of tests run
- getRunner(RunnerBuilder, Class<?>) - Method in class org.junit.experimental.ParallelComputer
-
- getRunner(RunnerBuilder, Class<?>) - Method in class org.junit.runner.Computer
-
Create a single-class runner for testClass, using builder
- getRunner() - Method in class org.junit.runner.Request
-
Returns a
Runner for this Request
- getRunnerAnnotations() - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
-
- getRunnerAnnotations() - Method in class org.junit.runners.ParentRunner
-
- getRunTime() - Method in class org.junit.runner.Result
-
Returns the number of milliseconds it took to run the entire suite to run
- getSuite(RunnerBuilder, Class<?>[]) - Method in class org.junit.experimental.ParallelComputer
-
- getSuite(RunnerBuilder, Class<?>[]) - Method in class org.junit.runner.Computer
-
Create a suite for classes, building Runners with builder.
- getTarget() - Method in class org.junit.runner.manipulation.Ordering.Context
-
Gets the description for the top-level target being ordered.
- 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.runner.Description
-
- getTestClass() - Method in class org.junit.runners.parameterized.TestWithParameters
-
- getTestClass() - Method in class org.junit.runners.ParentRunner
-
Returns a
TestClass object wrapping the class to be executed.
- getTestConstructor(Class<?>) - 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
-
- getTestRules(Object) - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
- getTests() - Method in class junit.framework.JUnit4TestAdapter
-
- getTimeout() - Method in class org.junit.rules.Timeout.Builder
-
- getTimeout(TimeUnit) - Method in class org.junit.rules.Timeout
-
Gets the timeout configured for this rule, in the given units.
- getTimeout() - Method in exception org.junit.runners.model.TestTimedOutException
-
Gets the time passed before the test was interrupted
- getTimeUnit() - Method in class org.junit.rules.Timeout.Builder
-
- getTimeUnit() - Method in exception org.junit.runners.model.TestTimedOutException
-
Gets the time unit for the timeout value
- getTopLevelDescription() - Method in class org.junit.runner.FilterFactoryParams
-
- getTrace() - Method in class org.junit.runner.notification.Failure
-
Gets the printed form of the exception and its stack trace.
- getTrimmedTrace() - Method in class org.junit.runner.notification.Failure
-
Gets a the printed form of the exception, with a trimmed version of the stack trace.
- getType() - Method in class org.junit.experimental.theories.ParameterSignature
-
- getType() - Method in class org.junit.runners.model.FrameworkField
-
- getType() - Method in class org.junit.runners.model.FrameworkMember
-
- getType() - Method in class org.junit.runners.model.FrameworkMethod
-
Returns the return type of the method
- getValue() - Method in class org.junit.experimental.theories.PotentialAssignment
-
- getValueSources(ParameterSignature) - Method in class org.junit.experimental.theories.ParameterSupplier
-
- getValueSources(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
-
- relationship() - Method in class org.hamcrest.core.StringContains
-
- relationship() - Method in class org.hamcrest.core.StringEndsWith
-
- relationship() - Method in class org.hamcrest.core.StringStartsWith
-
- relationship() - Method in class org.hamcrest.core.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
-
- reportMissingExceptionWithMessage(String) - Method in class org.junit.rules.ExpectedException
-
Specifies the failure message for tests that are expected to throw
an exception but do not throw any.
- reportParameterizedError(Throwable, Object...) - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
-
- 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
-
Matchers on a PrintableResult, to enable JUnit self-tests.
- ResultMatchers() - Constructor for class org.junit.experimental.results.ResultMatchers
-
- ResultPrinter - Class in junit.textui
-
- ResultPrinter(PrintStream) - Constructor for class junit.textui.ResultPrinter
-
- Rule - Annotation Type in org.junit
-
Annotates fields that reference rules or methods that return a rule.
- RuleChain - Class in org.junit.rules
-
The RuleChain can be used for creating composite rules.
- rules(Object) - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
- 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(Class<?>) - Method in class org.junit.experimental.max.MaxCore
-
Run all the tests in class.
- run(Request) - Method in class org.junit.experimental.max.MaxCore
-
Run all the tests contained in request.
- run(Request, JUnitCore) - Method in class org.junit.experimental.max.MaxCore
-
Run all the tests contained in request.
- run() - Method in interface org.junit.function.ThrowingRunnable
-
- run(Class<?>...) - Method in class org.junit.runner.JUnitCore
-
Run all the tests in classes.
- run(Computer, 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.ParentRunner
-
- 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.
- runChild(FrameworkMethod, RunNotifier) - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
- runChild(T, RunNotifier) - Method in class org.junit.runners.ParentRunner
-
- runChild(Runner, RunNotifier) - Method in class org.junit.runners.Suite
-
- runClasses(Class<?>...) - Static method in class org.junit.runner.JUnitCore
-
Run the tests contained in classes.
- runClasses(Computer, 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
-
- runLeaf(Statement, Description, RunNotifier) - Method in class org.junit.runners.ParentRunner
-
Runs a
Statement that represents a leaf (aka atomic) test.
- RunListener - Class in org.junit.runner.notification
-
Register an instance of this class with
RunNotifier to be notified
of events that occur during a test run.
- RunListener() - Constructor for class org.junit.runner.notification.RunListener
-
- RunListener.ThreadSafe - Annotation Type in org.junit.runner.notification
-
Indicates a RunListener that can have its methods called
concurrently.
- runner(Runner) - Static method in class org.junit.runner.Request
-
- 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
-
- RunnerBuilder - Class in org.junit.runners.model
-
A RunnerBuilder is a strategy for constructing runners for classes.
- RunnerBuilder() - Constructor for class org.junit.runners.model.RunnerBuilder
-
- runnerForClass(Class<?>) - Method in class org.junit.runners.model.RunnerBuilder
-
Override to calculate the correct runner for a test class at runtime.
- runners(Class<?>, Class<?>[]) - Method in class org.junit.runners.model.RunnerBuilder
-
Constructs and returns a list of Runners, one for each child class in
children.
- runners(Class<?>, List<Class<?>>) - Method in class org.junit.runners.model.RunnerBuilder
-
- RunnerScheduler - Interface in org.junit.runners.model
-
Represents a strategy for scheduling when individual test methods
should be run (in serial or parallel)
WARNING: still experimental, may go away.
- 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.
- RunRules - Class in org.junit.rules
-
Runs a collection of rules on a statement.
- RunRules(Statement, Iterable<TestRule>, Description) - Constructor for class org.junit.rules.RunRules
-
- 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
-
- runtime(TimeUnit) - Method in class org.junit.rules.Stopwatch
-
Gets the runtime for the test.
- 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.
- runWithAssignment(Assignments) - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
-
- runWithCompleteAssignment(Assignments) - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
-
- runWithIncompleteAssignment(Assignments) - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
-
- safeRunnerForClass(Class<?>) - Method in class org.junit.runners.model.RunnerBuilder
-
Always returns a runner for the given test class.
- sameInstance(T) - Static method in class org.hamcrest.core.IsSame
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- sameInstance(T) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- savePreferences() - Static method in class junit.runner.BaseTestRunner
-
- scanAnnotatedMembers(Map<Class<? extends Annotation>, List<FrameworkMethod>>, Map<Class<? extends Annotation>, List<FrameworkField>>) - Method in class org.junit.runners.model.TestClass
-
- schedule(Runnable) - Method in interface org.junit.runners.model.RunnerScheduler
-
Schedule a child statement to run
- seconds(long) - Static method in class org.junit.rules.Timeout
-
Creates a
Timeout that will timeout a test after the
given duration, in seconds.
- SelfDescribing - Interface in org.hamcrest
-
The ability of an object to describe itself.
- serial() - Static method in class org.junit.runner.Computer
-
Returns a new default computer, which runs tests in serial order
- 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
-
- setScheduler(RunnerScheduler) - Method in class org.junit.runners.ParentRunner
-
Sets a scheduler that determines the order and parallelization
of children.
- 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.
- shouldRun(Description) - Method in class org.junit.experimental.categories.Categories.CategoryFilter
-
- shouldRun(Description) - Method in class org.junit.runner.manipulation.Filter
-
- shouldStop() - Method in class junit.framework.TestResult
-
Checks whether the test run should stop.
- showStackRaw() - Static method in class junit.runner.BaseTestRunner
-
- shuffledBy(Random) - Static method in class org.junit.runner.manipulation.Ordering
-
Creates an
Ordering that shuffles the items using the given
Random instance.
- signatures(Method) - Static method in class org.junit.experimental.theories.ParameterSignature
-
- signatures(Constructor<?>) - Static method in class org.junit.experimental.theories.ParameterSignature
-
- skipped(long, AssumptionViolatedException, Description) - Method in class org.junit.rules.Stopwatch
-
Invoked when a test is skipped due to a failed assumption.
- skipped(AssumptionViolatedException, Description) - Method in class org.junit.rules.TestWatcher
-
Invoked when a test is skipped due to a failed assumption.
- skipped(AssumptionViolatedException, Description) - Method in class org.junit.rules.TestWatcher
-
- sort(Sorter) - Method in class junit.framework.JUnit4TestAdapter
-
- sort(Sorter) - Method in interface org.junit.runner.manipulation.Sortable
-
Sorts the tests using sorter
- sort(Sorter) - Method in class org.junit.runners.ParentRunner
-
- Sortable - Interface in org.junit.runner.manipulation
-
Interface for runners that allow sorting of tests.
- sortedLeavesForTest(Request) - Method in class org.junit.experimental.max.MaxCore
-
- 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
- sortRequest(Request) - Method in class org.junit.experimental.max.MaxCore
-
- 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
- start(String[]) - Method in class junit.textui.TestRunner
-
Starts a test run.
- starting(Description) - Method in class org.junit.rules.TestName
-
- starting(Description) - Method in class org.junit.rules.TestWatcher
-
Invoked when a test is about to start
- starting(FrameworkMethod) - Method in class org.junit.rules.TestWatchman
-
Deprecated.
Invoked when a test method is about to start
- startsWith(String) - Static method in class org.hamcrest.core.StringStartsWith
-
Creates a matcher that matches if the examined
String starts with the specified
String.
- startsWith(String) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches if the examined
String starts with the specified
String.
- 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
-
- Statement - Class in org.junit.runners.model
-
Represents one or more actions to be taken at runtime in the course
of running a JUnit test suite.
- Statement() - Constructor for class org.junit.runners.model.Statement
-
- 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
-
- Stopwatch - Class in org.junit.rules
-
The Stopwatch Rule notifies one of its own protected methods of the time spent by a test.
- Stopwatch() - Constructor for class org.junit.rules.Stopwatch
-
- storedLocally(File) - Static method in class org.junit.experimental.max.MaxCore
-
Create a new MaxCore from a serialized file stored at storedResults
- StringContains - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a substring.
- StringContains(String) - Constructor for class org.hamcrest.core.StringContains
-
- StringDescription - Class in org.hamcrest
-
- StringDescription() - Constructor for class org.hamcrest.StringDescription
-
- StringDescription(Appendable) - Constructor for class org.hamcrest.StringDescription
-
- StringEndsWith - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a substring.
- StringEndsWith(String) - Constructor for class org.hamcrest.core.StringEndsWith
-
- StringStartsWith - Class in org.hamcrest.core
-
Tests if the argument is a string that contains a substring.
- StringStartsWith(String) - Constructor for class org.hamcrest.core.StringStartsWith
-
- substring - Variable in class org.hamcrest.core.SubstringMatcher
-
- SubstringMatcher - Class in org.hamcrest.core
-
- SubstringMatcher(String) - Constructor for class org.hamcrest.core.SubstringMatcher
-
- succeeded(long, Description) - Method in class org.junit.rules.Stopwatch
-
Invoked when a test succeeds
- succeeded(Description) - Method in class org.junit.rules.TestWatcher
-
Invoked when a test succeeds
- succeeded(FrameworkMethod) - Method in class org.junit.rules.TestWatchman
-
Deprecated.
Invoked when a test method succeeds
- 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<?>, RunnerBuilder) - Constructor for class org.junit.runners.Suite
-
Called reflectively on classes annotated with @RunWith(Suite.class)
- Suite(RunnerBuilder, Class<?>[]) - Constructor for class org.junit.runners.Suite
-
Call this when there is no single root class (for example, multiple class names
passed on the command line to
JUnitCore
- Suite(Class<?>, Class<?>[]) - Constructor for class org.junit.runners.Suite
-
Call this when the default builder is good enough.
- Suite(RunnerBuilder, Class<?>, Class<?>[]) - Constructor for class org.junit.runners.Suite
-
Called by this class and subclasses once the classes making up the suite have been determined
- Suite(Class<?>, List<Runner>) - Constructor for class org.junit.runners.Suite
-
Called by this class and subclasses once the runners making up the suite have been determined
- 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
-
- 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.
- TemporaryFolder - Class in org.junit.rules
-
The TemporaryFolder Rule allows creation of files and folders that should
be deleted when the test method finishes (whether it passes or
fails).
- TemporaryFolder() - Constructor for class org.junit.rules.TemporaryFolder
-
Create a temporary folder which uses system default temporary-file
directory to create temporary resources.
- TemporaryFolder(File) - Constructor for class org.junit.rules.TemporaryFolder
-
Create a temporary folder which uses the specified directory to create
temporary resources.
- TemporaryFolder(TemporaryFolder.Builder) - Constructor for class org.junit.rules.TemporaryFolder
-
- TemporaryFolder.Builder - Class in org.junit.rules
-
- 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
-
Describes a step in the test-running mechanism that goes so wrong no
other description can be used (for example, an exception thrown from a Runner's
constructor
- testAssumptionFailure(Failure) - Method in class org.junit.runner.notification.RunListener
-
Called when an atomic test flags that it assumes a condition that is
false
- 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.runners.model
-
Wraps a class to be run, providing method validation and annotation searching
- TestClass(Class<?>) - Constructor for class org.junit.runners.model.TestClass
-
Creates a TestClass wrapping clazz.
- TestClassValidator - Interface in org.junit.validator
-
Validates a single facet of a test class.
- testComparator() - Method in class org.junit.experimental.max.MaxHistory
-
- TestCouldNotBeSkippedException - Exception in org.junit
-
Indicates that a test that indicated that it should be skipped could not be skipped.
- TestCouldNotBeSkippedException(AssumptionViolatedException) - Constructor for exception org.junit.TestCouldNotBeSkippedException
-
Creates an instance using the given assumption failure.
- 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
-
Annotating a
Theory method int
parameter with @TestedOn causes it to be supplied with values from the
ints array given when run as a theory by the
Theories runner.
- 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.runner.notification.RunListener
-
Called when an atomic test fails, or when a listener throws an exception.
- testFinished(Description) - Method in class org.junit.runner.notification.RunListener
-
Called when an atomic test has finished, whether the test succeeds or fails.
- 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
- TestName - Class in org.junit.rules
-
The TestName Rule makes the current test name available inside test methods:
- TestName() - Constructor for class org.junit.rules.TestName
-
- testName(FrameworkMethod) - Method in class org.junit.runners.BlockJUnit4ClassRunner
-
Returns the name that describes
method for
Descriptions.
- testName(FrameworkMethod) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
-
- 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
-
The result of running JUnit on type
- testResult(Request) - Static method in class org.junit.experimental.results.PrintableResult
-
The result of running JUnit on Request request
- TestRule - Interface in org.junit.rules
-
A TestRule is an alteration in how a test method, or set of test methods,
is run and reported.
- testRunEnded(long) - Method in interface junit.runner.TestRunListener
-
- 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.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<?>) - 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.
- testSuiteFinished(Description) - Method in class org.junit.runner.notification.RunListener
-
Called when a test suite has finished, whether the test suite succeeds or fails.
- testSuiteStarted(Description) - Method in class org.junit.runner.notification.RunListener
-
Called when a test suite is about to be started.
- TestTimedOutException - Exception in org.junit.runners.model
-
Exception thrown when a test fails on timeout.
- TestTimedOutException(long, TimeUnit) - Constructor for exception org.junit.runners.model.TestTimedOutException
-
Creates exception with a standard message "test timed out after [timeout] [timeUnit]"
- TestWatcher - Class in org.junit.rules
-
TestWatcher is a base class for Rules that take note of the testing
action, without modifying it.
- TestWatcher() - Constructor for class org.junit.rules.TestWatcher
-
- TestWatchman - Class in org.junit.rules
-
- TestWatchman() - Constructor for class org.junit.rules.TestWatchman
-
Deprecated.
- TestWithParameters - Class in org.junit.runners.parameterized
-
A TestWithParameters keeps the data together that are needed for
creating a runner for a single data set of a parameterized test.
- TestWithParameters(String, TestClass, List<Object>) - Constructor for class org.junit.runners.parameterized.TestWithParameters
-
- theInstance(T) - Static method in class org.hamcrest.core.IsSame
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- theInstance(T) - Static method in class org.hamcrest.CoreMatchers
-
Creates a matcher that matches only when the examined object is the same instance as
the specified target object.
- then(Condition.Step<? super T, U>) - Method in class org.hamcrest.Condition
-
- Theories - Class in org.junit.experimental.theories
-
The Theories runner allows to test a certain functionality against a subset of an infinite set of data points.
- Theories(Class<?>) - Constructor for class org.junit.experimental.theories.Theories
-
- Theories(TestClass) - Constructor for class org.junit.experimental.theories.Theories
-
- Theories.TheoryAnchor - Class in org.junit.experimental.theories
-
- Theory - Annotation Type in org.junit.experimental.theories
-
Marks test methods that should be read as theories by the
Theories runner.
- TheoryAnchor(FrameworkMethod, TestClass) - Constructor for class org.junit.experimental.theories.Theories.TheoryAnchor
-
- ThrowingRunnable - Interface in org.junit.function
-
- thrownException() - Method in class junit.framework.TestFailure
-
Gets the thrown exception.
- Timeout - Class in org.junit.rules
-
The Timeout Rule applies the same timeout to all test methods in a class:
- Timeout(int) - Constructor for class org.junit.rules.Timeout
-
Deprecated.
- Timeout(long, TimeUnit) - Constructor for class org.junit.rules.Timeout
-
Create a Timeout instance with the timeout specified
at the timeUnit of granularity of the provided TimeUnit.
- Timeout(Timeout.Builder) - Constructor for class org.junit.rules.Timeout
-
Create a Timeout instance initialized with values from
a builder.
- Timeout.Builder - Class in org.junit.rules
-
- 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.hamcrest.BaseMatcher
-
- toString() - Method in class org.hamcrest.Description.NullDescription
-
- toString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
-
- toString() - Method in class org.hamcrest.StringDescription
-
Returns the description as a string.
- toString() - Method in class org.junit.experimental.categories.Categories.CategoryFilter
-
Returns string in the form "[included categories] - [excluded categories]", where both
sets have comma separated names of categories.
- toString() - Method in class org.junit.experimental.results.PrintableResult
-
- toString() - Method in class org.junit.runner.Description
-
- toString() - Method in class org.junit.runner.notification.Failure
-
- toString() - Method in class org.junit.runners.model.FrameworkField
-
- toString() - Method in class org.junit.runners.model.FrameworkMethod
-
- toString() - Method in class org.junit.runners.parameterized.TestWithParameters
-
- trace() - Method in class junit.framework.TestFailure
-
Returns a String containing the stack trace of the error
thrown by TestFailure.
- truncate(String) - Static method in class junit.runner.BaseTestRunner
-
Truncates a String to the maximum length.
- TypeSafeDiagnosingMatcher<T> - Class in org.hamcrest
-
Convenient base class for Matchers that require a non-null value of a specific type
and that will report why the received value has been rejected.
- TypeSafeDiagnosingMatcher(Class<?>) - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
-
Use this constructor if the subclass that implements matchesSafely
is not the class that binds <T> to a type.
- TypeSafeDiagnosingMatcher(ReflectiveTypeFinder) - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
-
Use this constructor if the subclass that implements matchesSafely
is not the class that binds <T> to a type.
- TypeSafeDiagnosingMatcher() - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
-
The default constructor for simple sub types
- TypeSafeMatcher<T> - Class in org.hamcrest
-
Convenient base class for Matchers that require a non-null value of a specific type.
- TypeSafeMatcher() - Constructor for class org.hamcrest.TypeSafeMatcher
-
The default constructor for simple sub types
- TypeSafeMatcher(Class<?>) - Constructor for class org.hamcrest.TypeSafeMatcher
-
Use this constructor if the subclass that implements matchesSafely
is not the class that binds <T> to a type.
- TypeSafeMatcher(ReflectiveTypeFinder) - Constructor for class org.hamcrest.TypeSafeMatcher
-
Use this constructor if the subclass that implements matchesSafely
is not the class that binds <T> to a type.