A B C D E F G H I J L M N O P R S T V W _ 
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- aClass(Class<?>) - Static method in class org.junit.runner.Request
- Create aRequestthat, when processed, will run all the tests in a class.
- addChild(Description) - Method in class org.junit.runner.Description
- AddDescriptionas a child of the receiver.
- addDimension(int) - Method in error org.junit.internal.ArrayComparisonFailure
- addError(Throwable) - Method in class org.junit.rules.ErrorCollector
- Adds a Throwable to the table.
- addFirstListener(RunListener) - Method in class org.junit.runner.notification.RunNotifier
- Internal use only.
- 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
- addToAnnotationLists(T, Map<Class<? extends Annotation>, List<T>>) - Static method in class org.junit.runners.model.TestClass
- after() - Method in class org.junit.rules.ExternalResource
- Override to tear down your specific external resource.
- after() - Method in class org.junit.rules.TemporaryFolder
- After - Annotation Type in org.junit
- If you allocate external resources in aBeforemethod you need to release them after the test runs.
- AfterClass - Annotation Type in org.junit
- If you allocate expensive external resources in aBeforeClassmethod 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 nullFilterthat passes all tests through.
- AllMembersSupplier - Class in org.junit.experimental.theories.internal
- Supplies Theory parameters based on all public members of the target class.
- AllMembersSupplier(TestClass) - Constructor for class org.junit.experimental.theories.internal.AllMembersSupplier
- Constructs a new supplier fortype
- 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(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.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.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.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.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.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.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.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.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.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.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.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.CoreMatchers
- Creates a matcher that matches if the examined object matches ALL of the specified matchers.
- 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
- AllTests - Class in org.junit.runners
- Runner for use with JUnit 3.8.x-style AllTests classes (those that only implement a staticsuite()method).
- AllTests(Class<?>) - Constructor for class org.junit.runners.AllTests
- Only called reflectively.
- allUnassigned(Method, TestClass) - Static method in class org.junit.experimental.theories.internal.Assignments
- Returns a new assignment list fortestMethod, with no params assigned.
- 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
- AnAnnotationsValidatorvalidates 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 specifiedtype, as determined by calling theClass.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 specifiedtype, as determined by calling theClass.isInstance(Object)method on that type, passing the the examined object.
- 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(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.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.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.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.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.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.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.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.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.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.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.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.CoreMatchers
- Creates a matcher that matches if the examined object matches ANY of the specified matchers.
- 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
- anything() - Static method in class org.hamcrest.core.IsAnything
- Creates a matcher that always matches, regardless of the examined object.
- 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.core.IsAnything
- Creates a matcher that always matches, regardless of the examined object, but describes itself with the specifiedString.
- 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 specifiedString.
- append(char) - Method in class org.hamcrest.BaseDescription
- Append the char c to the description.
- append(char) - Method in class org.hamcrest.StringDescription
- append(String) - Method in class org.hamcrest.BaseDescription
- Append the String str to the description.
- append(String) - 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 aSelfDescribingvalue 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
- Appends a list ofSelfDescribingobjects to the 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, Iterable<T>) - Method in class org.hamcrest.BaseDescription
- appendValueList(String, String, String, Iterable<T>) - Method in interface org.hamcrest.Description
- Appends a list of values to the description.
- appendValueList(String, String, String, Iterable<T>) - Method in class org.hamcrest.Description.NullDescription
- appendValueList(String, String, String, 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, T...) - Method in class org.hamcrest.Description.NullDescription
- apply(I, Description) - Method in interface org.hamcrest.Condition.Step
- apply(Object) - Method in class org.junit.runner.manipulation.Filter
- Invoke with aRunnerto cause all tests it intends to run to first be checked with the filter.
- apply(Object) - Method in class org.junit.runner.manipulation.Sorter
- Sorts the test inrunnerusingcomparator
- 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, Description) - Method in class org.junit.rules.RuleChain
- Modifies the method-runningStatementto 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-runningStatementto implement this test-running rule.
- apply(Statement, Description) - Method in class org.junit.rules.TestWatcher
- apply(Statement, Description) - Method in class org.junit.rules.Timeout
- apply(Statement, Description) - Method in class org.junit.rules.Verifier
- apply(Statement, FrameworkMethod, Object) - Method in interface org.junit.rules.MethodRule
- Modifies the method-runningStatementto implement an additional test-running rule.
- apply(Statement, FrameworkMethod, Object) - Method in class org.junit.rules.TestWatchman
- Deprecated.
- around(TestRule) - Method in class org.junit.rules.RuleChain
- Create a newRuleChain, which encloses thenextRulewith the rules of the currentRuleChain.
- ArrayComparisonFailure - Error in org.junit.internal
- Thrown when two array elements differ
- ArrayComparisonFailure(String, AssertionError, int) - Constructor for error org.junit.internal.ArrayComparisonFailure
- Construct a newArrayComparisonFailurewith an error text and the array's dimension that was not equal
- arrayEquals(String, Object, Object) - Method in class org.junit.internal.ComparisonCriteria
- Asserts that two arrays are equal, according to the criteria defined by the concrete subclass.
- ArrayIterator - Class in org.hamcrest.internal
- ArrayIterator(Object) - Constructor for class org.hamcrest.internal.ArrayIterator
- 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(boolean[], boolean[]) - Static method in class org.junit.Assert
- Asserts that two boolean arrays are equal.
- assertArrayEquals(byte[], byte[]) - Static method in class org.junit.Assert
- Asserts that two byte arrays are equal.
- assertArrayEquals(char[], char[]) - Static method in class org.junit.Assert
- Asserts that two char arrays are equal.
- assertArrayEquals(double[], double[], double) - Static method in class org.junit.Assert
- Asserts that two double arrays are equal.
- assertArrayEquals(float[], float[], float) - Static method in class org.junit.Assert
- Asserts that two float arrays are equal.
- assertArrayEquals(int[], int[]) - Static method in class org.junit.Assert
- Asserts that two int arrays are equal.
- assertArrayEquals(long[], long[]) - Static method in class org.junit.Assert
- Asserts that two long arrays are equal.
- assertArrayEquals(short[], short[]) - Static method in class org.junit.Assert
- Asserts that two short 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(String, 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(String, 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(String, 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(String, short[], short[]) - Static method in class org.junit.Assert
- Asserts that two short arrays are equal.
- assertArrayEquals(String, Object[], Object[]) - Static method in class org.junit.Assert
- Asserts that two object arrays are equal.
- assertElementsEqual(Object, Object) - Method in class org.junit.internal.ComparisonCriteria
- assertElementsEqual(Object, Object) - Method in class org.junit.internal.ExactComparisonCriteria
- assertElementsEqual(Object, Object) - Method in class org.junit.internal.InexactComparisonCriteria
- assertEmpty(List<Throwable>) - Static method in exception org.junit.runners.model.MultipleFailureException
- Asserts that a list of throwables is empty.
- assertEquals(double, double) - Static method in class org.junit.Assert
- Deprecated.UseassertEquals(double expected, double actual, double delta)instead
- 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(long, long) - Static method in class org.junit.Assert
- Asserts that two longs are equal.
- assertEquals(Object[], Object[]) - Static method in class org.junit.Assert
- Deprecated.use assertArrayEquals
- assertEquals(Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects are equal.
- assertEquals(String, double, double) - Static method in class org.junit.Assert
- Deprecated.UseassertEquals(String message, double expected, double actual, double delta)instead
- 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(String, long, long) - Static method in class org.junit.Assert
- Asserts that two longs are equal.
- assertEquals(String, Object[], Object[]) - Static method in class org.junit.Assert
- Deprecated.use assertArrayEquals
- assertEquals(String, Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects are equal.
- assertFalse(boolean) - Static method in class org.junit.Assert
- Asserts that a condition is false.
- assertFalse(String, boolean) - Static method in class org.junit.Assert
- Asserts that a condition is false.
- 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(long, long) - Static method in class org.junit.Assert
- Asserts that two longs are not equals.
- assertNotEquals(Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects 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(String, float, float, float) - Static method in class org.junit.Assert
- Asserts that two floats are not equal to within a positive delta.
- assertNotEquals(String, long, long) - Static method in class org.junit.Assert
- Asserts that two longs are not equals.
- assertNotEquals(String, Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects are not equals.
- assertNotNull(Object) - Static method in class org.junit.Assert
- Asserts that an object isn't null.
- assertNotNull(String, Object) - Static method in class org.junit.Assert
- Asserts that an object isn't null.
- assertNotSame(Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects do not refer to the same object.
- assertNotSame(String, Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects do not refer to the same object.
- assertNull(Object) - Static method in class org.junit.Assert
- Asserts that an object is null.
- assertNull(String, Object) - Static method in class org.junit.Assert
- Asserts that an object is null.
- assertSame(Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects refer to the same object.
- assertSame(String, Object, Object) - Static method in class org.junit.Assert
- Asserts that two objects refer to the same object.
- assertThat(String, boolean) - Static method in class org.hamcrest.MatcherAssert
- assertThat(String, T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
- assertThat(String, T, Matcher<? super T>) - Static method in class org.junit.Assert
- Asserts thatactualsatisfies the condition specified bymatcher.
- assertThat(T, Matcher<? super T>) - Static method in class org.hamcrest.MatcherAssert
- assertThat(T, Matcher<? super T>) - Static method in class org.junit.Assert
- Asserts thatactualsatisfies the condition specified bymatcher.
- assertTrue(boolean) - Static method in class org.junit.Assert
- Asserts that a condition is true.
- assertTrue(String, boolean) - Static method in class org.junit.Assert
- Asserts that a condition is true.
- Assignments - Class in org.junit.experimental.theories.internal
- A potentially incomplete list of value assignments for a method's formal parameters
- assignNext(PotentialAssignment) - Method in class org.junit.experimental.theories.internal.Assignments
- asString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
- Alias forStringDescription.toString(SelfDescribing).
- 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
- The inverse ofAssume.assumeTrue(boolean).
- assumeFalse(String, boolean) - Static method in class org.junit.Assume
- The inverse ofAssume.assumeTrue(String, boolean).
- assumeNoException(String, Throwable) - Static method in class org.junit.Assume
- Attempts to halt the test and ignore it if Throwableeis notnull.
- assumeNoException(Throwable) - Static method in class org.junit.Assume
- Use to assume that an operation completes normally.
- assumeNotNull(Object...) - Static method in class org.junit.Assume
- If called with one or more null elements inobjects, the test will halt and be ignored.
- assumeThat(String, T, Matcher<T>) - Static method in class org.junit.Assume
- Call to assume thatactualsatisfies the condition specified bymatcher.
- assumeThat(T, Matcher<T>) - Static method in class org.junit.Assume
- Call to assume thatactualsatisfies the condition specified bymatcher.
- assumeTrue(boolean) - Static method in class org.junit.Assume
- If called with an expression evaluating tofalse, the test will halt and be ignored.
- assumeTrue(String, boolean) - Static method in class org.junit.Assume
- If called with an expression evaluating tofalse, 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 - Exception in org.junit.internal
- An exception class used to implement assumptions (state in which a given test is meaningful and should or should not be executed).
- AssumptionViolatedException(Object, Matcher<?>) - Constructor for exception org.junit.internal.AssumptionViolatedException
- Deprecated.Please useAssumptionViolatedExceptioninstead.
- AssumptionViolatedException(String) - Constructor for exception org.junit.AssumptionViolatedException
- An assumption exception with the given message only.
- AssumptionViolatedException(String) - Constructor for exception org.junit.internal.AssumptionViolatedException
- Deprecated.Please useAssumptionViolatedExceptioninstead.
- AssumptionViolatedException(String, boolean, Object, Matcher<?>) - Constructor for exception org.junit.internal.AssumptionViolatedException
- Deprecated.Please useAssumptionViolatedExceptioninstead.
- AssumptionViolatedException(String, Object, Matcher<?>) - Constructor for exception org.junit.internal.AssumptionViolatedException
- Deprecated.Please useAssumptionViolatedExceptioninstead.
- AssumptionViolatedException(String, Throwable) - Constructor for exception org.junit.AssumptionViolatedException
- An assumption exception with the given message and a cause.
- AssumptionViolatedException(String, Throwable) - Constructor for exception org.junit.internal.AssumptionViolatedException
- Deprecated.Please useAssumptionViolatedExceptioninstead.
- 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(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.
B
- BaseDescription - Class in org.hamcrest
- ADescriptionthat is stored as a string.
- BaseDescription() - Constructor for class org.hamcrest.BaseDescription
- BaseMatcher<T> - Class in org.hamcrest
- BaseClass for all Matcher implementations.
- BaseMatcher() - Constructor for class org.hamcrest.BaseMatcher
- before() - Method in class org.junit.rules.ExternalResource
- Override to set up your specific external resource.
- before() - Method in class org.junit.rules.TemporaryFolder
- Before - Annotation Type in org.junit
- When writing tests, it is common to find that several tests need similar objects created before they can run.
- BeforeClass - Annotation Type in org.junit
- Sometimes several tests need to share computationally expensive setup (like logging into a database).
- BlockJUnit4ClassRunner - Class in org.junit.runners
- Implements the JUnit 4 standard test case class model, as defined by the annotations in the org.junit package.
- BlockJUnit4ClassRunner(Class<?>) - Constructor for class org.junit.runners.BlockJUnit4ClassRunner
- Creates a BlockJUnit4ClassRunner to runklass
- BlockJUnit4ClassRunnerWithParameters - Class in org.junit.runners.parameterized
- ABlockJUnit4ClassRunnerwith parameters support.
- BlockJUnit4ClassRunnerWithParameters(TestWithParameters) - Constructor for class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
- BlockJUnit4ClassRunnerWithParametersFactory - Class in org.junit.runners.parameterized
- AParametersRunnerFactorythat createsBlockJUnit4ClassRunnerWithParameters.
- BlockJUnit4ClassRunnerWithParametersFactory() - Constructor for class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory
- BooleanSupplier - Class in org.junit.experimental.theories.internal
- BooleanSupplier() - Constructor for class org.junit.experimental.theories.internal.BooleanSupplier
- both(Matcher<? super LHS>) - Static method in class org.hamcrest.core.CombinableMatcher
- Creates a matcher that matches when both of the specified matchers match the examined object.
- both(Matcher<? super LHS>) - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches when both of the specified matchers match the examined object.
- both(Matcher<? super T>) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.both(Matcher)instead.
- build() - Method in class org.junit.rules.Timeout.Builder
- Builds aTimeoutinstance using the values in this builder.,
- builder() - Static method in class org.junit.rules.Timeout
- Returns a new builder for building an instance.
- Builder() - Constructor for class org.junit.rules.Timeout.Builder
C
- canAcceptType(Class<?>) - Method in class org.junit.experimental.theories.ParameterSignature
- canAcceptValue(Object) - Method in class org.junit.experimental.theories.ParameterSignature
- canObtainExpectedTypeFrom(Method) - Method in class org.hamcrest.internal.ReflectiveTypeFinder
- 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(boolean, Set<Class<?>>, boolean, Set<Class<?>>) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- CategoryFilter(boolean, Set<Class<?>>, boolean, Set<Class<?>>) - Constructor for class org.junit.experimental.categories.Categories.CategoryFilter
- CategoryValidator - Class in org.junit.experimental.categories
- Validates that there are no errors in the use of theCategoryannotation.
- 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 fromcallable.
- checkThat(String, T, Matcher<T>) - Method in class org.junit.rules.ErrorCollector
- Adds a failure with the givenreasonto the table ifmatcherdoes not matchvalue.
- checkThat(T, Matcher<T>) - Method in class org.junit.rules.ErrorCollector
- Adds a failure to the table ifmatcherdoes not matchvalue.
- childlessCopy() - Method in class org.junit.runner.Description
- childrenInvoker(RunNotifier) - Method in class org.junit.runners.ParentRunner
- Returns aStatement: CallParentRunner.runChild(Object, RunNotifier)on each object returned byParentRunner.getChildren()(subject to any imposed filter and sort)
- classBlock(RunNotifier) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
- classBlock(RunNotifier) - Method in class org.junit.runners.ParentRunner
- Constructs aStatementto run all of the tests in the test class.
- classes() - Static method in class org.junit.experimental.ParallelComputer
- classes(Class<?>...) - Static method in class org.junit.runner.Request
- Create aRequestthat, when processed, will run all the tests in a set of classes with the defaultComputer.
- classes(Computer, Class<?>...) - Static method in class org.junit.runner.Request
- Create aRequestthat, when processed, will run all the tests in a set of classes.
- Classes - Class in org.junit.internal
- Miscellaneous functions dealing with classes.
- Classes() - Constructor for class org.junit.internal.Classes
- 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 aRequestthat, when processed, will run all the tests in a class.
- 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
- Adds toerrorsa throwable for each problem noted with the test class (available fromParentRunner.getTestClass()).
- 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
- compare(Description, Description) - Method in class org.junit.runner.manipulation.Sorter
- ComparisonCriteria - Class in org.junit.internal
- Defines criteria for finding two items "equal enough".
- ComparisonCriteria() - Constructor for class org.junit.internal.ComparisonCriteria
- ComparisonFailure - Error in org.junit
- Thrown when anassertEquals(String, String)fails.
- 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
- containsString(String) - Static method in class org.hamcrest.CoreMatchers
- containsString(String) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.containsString(String)instead.
- 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
- create() - Method in class org.junit.rules.TemporaryFolder
- for testing purposes only.
- createAnnotationValidator(ValidateWith) - Method in class org.junit.validator.AnnotationValidatorFactory
- Creates the AnnotationValidator specified by the value inValidateWith.
- createFailOnTimeoutStatement(Statement) - Method in class org.junit.rules.Timeout
- Creates aStatementthat will run the givenstatement, and timeout the operation based on the values configured in this rule.
- createFilter(List<Class<?>>) - Method in class org.junit.experimental.categories.ExcludeCategories
- Creates aFilterwhich 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 aFilterwhich is only passed by tests that are categorized with any of the specified categories.
- createFilter(FilterFactoryParams) - Method in interface org.junit.runner.FilterFactory
- Creates aFiltergiven aFilterFactoryParamsargument.
- createListener() - Method in class org.junit.runner.Result
- Internal use only.
- createRunnerForTestWithParameters(TestWithParameters) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParametersFactory
- createRunnerForTestWithParameters(TestWithParameters) - Method in interface org.junit.runners.parameterized.ParametersRunnerFactory
- Returns a runner for the specifiedTestWithParameters.
- createSuiteDescription(Class<?>) - Static method in class org.junit.runner.Description
- Create aDescriptionnamed aftertestClass
- createSuiteDescription(String, Serializable, Annotation...) - Static method in class org.junit.runner.Description
- Create aDescriptionnamedname.
- createSuiteDescription(String, Annotation...) - Static method in class org.junit.runner.Description
- Create aDescriptionnamedname.
- createTest() - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Returns a new fixture for running a test.
- createTest() - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
- createTestClass(Class<?>) - Method in class org.junit.runners.ParentRunner
- createTestDescription(Class<?>, String) - Static method in class org.junit.runner.Description
- Create aDescriptionof a single test namednamein the classclazz.
- createTestDescription(Class<?>, String, Annotation...) - Static method in class org.junit.runner.Description
- Create aDescriptionof a single test namednamein the classclazz.
- createTestDescription(String, String, Serializable) - Static method in class org.junit.runner.Description
- Create aDescriptionof a single test namednamein the classclazz.
- createTestDescription(String, String, Annotation...) - Static method in class org.junit.runner.Description
- Create aDescriptionof a single test namednamein the 'class' namedclassName.
- 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
D
- DataPoint - Annotation Type in org.junit.experimental.theories
- Annotating an field or method with @DataPoint will cause the field value or the value returned by the method to be used as a potential parameter for theories in that class, when run with theTheoriesrunner.
- DataPoints - Annotation Type in org.junit.experimental.theories
- Annotating an array or iterable-typed field or method with @DataPoints will cause the values in the array or iterable given to be used as potential parameters for theories in that class when run with theTheoriesrunner.
- DEFAULT - org.junit.runners.MethodSorters
- Sorts the test methods in a deterministic, but not predictable, order
- DEFAULT - Static variable in class org.junit.internal.MethodSorter
- DEFAULT sort order
- delete() - Method in class org.junit.rules.TemporaryFolder
- Delete all files and folders under the temporary folder.
- Describable - Interface in org.junit.runner
- Represents an object that can describe itself
- describe() - Method in class org.junit.experimental.categories.Categories.CategoryFilter
- describe() - Method in class org.junit.runner.manipulation.Filter
- Returns a textual description of this Filter
- describeChild(Runner) - Method in class org.junit.runners.Suite
- describeChild(FrameworkMethod) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- describeChild(T) - Method in class org.junit.runners.ParentRunner
- Returns aDescriptionforchild, which can be assumed to be an element of the list returned byParentRunner.getChildren()
- describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.core.DescribedAs
- Wraps an existing matcher, overriding its description with that specified.
- describedAs(String, Matcher<T>, Object...) - Static method in class org.hamcrest.CoreMatchers
- Wraps an existing matcher, overriding its description with that specified.
- DescribedAs<T> - Class in org.hamcrest.core
- Provides a custom description to another matcher.
- DescribedAs(String, Matcher<T>, Object[]) - Constructor for class org.hamcrest.core.DescribedAs
- describeMismatch(Object, Description) - Method in class org.hamcrest.BaseMatcher
- describeMismatch(Object, Description) - Method in class org.hamcrest.core.DescribedAs
- describeMismatch(Object, Description) - Method in class org.hamcrest.core.Is
- describeMismatch(Object, Description) - Method in class org.hamcrest.DiagnosingMatcher
- describeMismatch(Object, Description) - Method in interface org.hamcrest.Matcher
- Generate a description of why the matcher has not accepted the item.
- describeMismatch(Object, Description) - Method in class org.hamcrest.TypeSafeDiagnosingMatcher
- describeMismatch(Object, Description) - Method in class org.hamcrest.TypeSafeMatcher
- describeMismatchSafely(String, Description) - Method in class org.hamcrest.core.SubstringMatcher
- describeMismatchSafely(T, Description) - Method in class org.hamcrest.TypeSafeMatcher
- Subclasses should override this.
- describeTo(Description) - Method in class org.hamcrest.core.AllOf
- describeTo(Description) - Method in class org.hamcrest.core.AnyOf
- describeTo(Description) - Method in class org.hamcrest.core.CombinableMatcher
- describeTo(Description) - Method in class org.hamcrest.core.DescribedAs
- describeTo(Description) - Method in class org.hamcrest.core.Every
- describeTo(Description) - Method in class org.hamcrest.core.Is
- describeTo(Description) - Method in class org.hamcrest.core.IsAnything
- describeTo(Description) - Method in class org.hamcrest.core.IsCollectionContaining
- describeTo(Description) - Method in class org.hamcrest.core.IsEqual
- describeTo(Description) - Method in class org.hamcrest.core.IsInstanceOf
- describeTo(Description) - Method in class org.hamcrest.core.IsNot
- describeTo(Description) - Method in class org.hamcrest.core.IsNull
- describeTo(Description) - Method in class org.hamcrest.core.IsSame
- describeTo(Description) - Method in class org.hamcrest.core.SubstringMatcher
- describeTo(Description) - Method in class org.hamcrest.CustomMatcher
- describeTo(Description) - Method in class org.hamcrest.CustomTypeSafeMatcher
- describeTo(Description) - Method in class org.hamcrest.FeatureMatcher
- describeTo(Description) - Method in class org.hamcrest.internal.SelfDescribingValue
- describeTo(Description) - Method in interface org.hamcrest.SelfDescribing
- Generates a description of the object.
- describeTo(Description) - Method in exception org.junit.internal.AssumptionViolatedException
- Description - Class in org.junit.runner
- ADescriptiondescribes a test which is to be run or has been run.
- Description - Interface in org.hamcrest
- A description of a Matcher.
- Description.NullDescription - Class in org.hamcrest
- DiagnosingMatcher<T> - Class in org.hamcrest
- TODO(ngd): Document.
- DiagnosingMatcher() - Constructor for class org.hamcrest.DiagnosingMatcher
- DisableOnDebug - Class in org.junit.rules
- TheDisableOnDebugRule allows you to label certain rules to be disabled when debugging.
- DisableOnDebug(TestRule) - Constructor for class org.junit.rules.DisableOnDebug
- Create aDisableOnDebuginstance with the timeout specified in milliseconds.
E
- either(Matcher<? super LHS>) - Static method in class org.hamcrest.core.CombinableMatcher
- Creates a matcher that matches when either of the specified matchers match the examined object.
- either(Matcher<? super LHS>) - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches when either of the specified matchers match the examined object.
- either(Matcher<? super T>) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.either(Matcher)instead.
- elapsedTimeAsString(long) - Method in class org.junit.internal.TextListener
- Returns the formatted string of the elapsed time.
- EMPTY - Static variable in class org.junit.runner.Description
- Describes a Runner which runs no tests
- emptyRuleChain() - Static method in class org.junit.rules.RuleChain
- Returns aRuleChainwithout aTestRule.
- emptySuite() - Static method in class org.junit.runners.Suite
- Returns an empty suite.
- Enclosed - Class in org.junit.experimental.runners
- If you put tests in inner classes, Ant, for example, won't find them.
- Enclosed(Class<?>, RunnerBuilder) - Constructor for class org.junit.experimental.runners.Enclosed
- Only called reflectively.
- endsWith(String) - Static method in class org.hamcrest.core.StringEndsWith
- endsWith(String) - Static method in class org.hamcrest.CoreMatchers
- EnumSupplier - Class in org.junit.experimental.theories.internal
- EnumSupplier(Class<?>) - Constructor for class org.junit.experimental.theories.internal.EnumSupplier
- equals(Object) - Method in error org.junit.experimental.theories.internal.ParameterizedAssertionError
- equals(Object) - Method in class org.junit.runner.Description
- equals(Object) - Method in class org.junit.runners.model.FrameworkMethod
- equals(Object) - Method in class org.junit.runners.model.TestClass
- equals(Object) - Method in class org.junit.runners.parameterized.TestWithParameters
- equalTo(T) - Static method in class org.hamcrest.core.IsEqual
- Creates a matcher that matches when the examined object is logically equal to the specifiedoperand, as determined by calling theObject.equals(java.lang.Object)method on the examined object.
- equalTo(T) - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches when the examined object is logically equal to the specifiedoperand, as determined by calling theObject.equals(java.lang.Object)method on the examined object.
- ErrorCollector - Class in org.junit.rules
- The ErrorCollector rule allows execution of a test to continue after the first problem is found (for example, to collect _all_ the incorrect rows in a table, and report them all at once):
- ErrorCollector() - Constructor for class org.junit.rules.ErrorCollector
- errorReport(Class<?>, Throwable) - Static method in class org.junit.runner.Request
- Creates aRequestthat, when processed, will report an error for the given test class with the given cause.
- evalSubstringOf(String) - Method in class org.hamcrest.core.StringContains
- evalSubstringOf(String) - Method in class org.hamcrest.core.StringEndsWith
- evalSubstringOf(String) - Method in class org.hamcrest.core.StringStartsWith
- evalSubstringOf(String) - Method in class org.hamcrest.core.SubstringMatcher
- evaluate() - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
- evaluate() - Method in class org.junit.rules.RunRules
- evaluate() - Method in class org.junit.runners.model.Statement
- Run the action, throwing aThrowableif anything goes wrong.
- Every<T> - Class in org.hamcrest.core
- Every(Matcher<? super T>) - Constructor for class org.hamcrest.core.Every
- everyItem(Matcher<T>) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.everyItem(Matcher)instead.
- everyItem(Matcher<U>) - Static method in class org.hamcrest.core.Every
- everyItem(Matcher<U>) - Static method in class org.hamcrest.CoreMatchers
- ExactComparisonCriteria - Class in org.junit.internal
- ExactComparisonCriteria() - Constructor for class org.junit.internal.ExactComparisonCriteria
- exclude(boolean, Class<?>...) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- exclude(Class<?>) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- exclude(Class<?>...) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- ExcludeCategories - Class in org.junit.experimental.categories
- FilterFactoryto exclude categories.
- ExcludeCategories() - Constructor for class org.junit.experimental.categories.ExcludeCategories
- exit(int) - Method in interface org.junit.internal.JUnitSystem
- Deprecated.
- exit(int) - Method in class org.junit.internal.RealSystem
- Deprecated.
- expect(Class<? extends Throwable>) - Method in class org.junit.rules.ExpectedException
- Verify that your code throws an exception that is an instance of specifictype.
- expect(Matcher<?>) - Method in class org.junit.rules.ExpectedException
- Verify that your code throws an exception that is matched by a Hamcrest matcher.
- expectCause(Matcher<? extends Throwable>) - Method in class org.junit.rules.ExpectedException
- Verify that your code throws an exception whose cause is matched by a Hamcrest matcher.
- expected() - Method in annotation type org.junit.Test
- Optionally specifyexpected, a Throwable, to cause a test method to succeed if and only if an exception of the specified class is thrown by the method.
- ExpectedException - Class in org.junit.rules
- TheExpectedExceptionrule allows you to verify that your code throws a specific exception.
- expectedTypeFrom(Method) - Method in class org.hamcrest.internal.ReflectiveTypeFinder
- expectMessage(String) - Method in class org.junit.rules.ExpectedException
- Verify that your code throws an exception whose message contains a specific text.
- expectMessage(Matcher<String>) - Method in class org.junit.rules.ExpectedException
- Verify that your code throws an exception whose message is matched by a Hamcrest matcher.
- ExternalResource - Class in org.junit.rules
- A base class for Rules (like TemporaryFolder) that set up an external resource before a test (a file, socket, server, database connection, etc.), and guarantee to tear it down afterward:
- ExternalResource() - Constructor for class org.junit.rules.ExternalResource
F
- Factory - Annotation Type in org.hamcrest
- Marks a Hamcrest static factory method so tools recognise them.
- fail() - Static method in class org.junit.Assert
- Fails a test with no message.
- fail(String) - Static method in class org.junit.Assert
- Fails a test with the given message.
- failed(long, Throwable, Description) - Method in class org.junit.rules.Stopwatch
- Invoked when a test fails
- failed(Throwable, Description) - Method in class org.junit.rules.TestWatcher
- Invoked when a test fails
- failed(Throwable, FrameworkMethod) - Method in class org.junit.rules.TestWatchman
- Deprecated.Invoked when a test method fails
- Failure - Class in org.junit.runner.notification
- AFailureholds a description of the failed test and the exception that was thrown while running it.
- Failure(Description, Throwable) - Constructor for class org.junit.runner.notification.Failure
- Constructs aFailurewith the given description and exception.
- failureCount() - Method in class org.junit.experimental.results.PrintableResult
- Returns the number of failures in this result.
- failureCountIs(int) - Static method in class org.junit.experimental.results.ResultMatchers
- Matches if there arecountfailures
- fDelta - Variable in class org.junit.internal.InexactComparisonCriteria
- FeatureMatcher<T,U> - Class in org.hamcrest
- Supporting class for matching a feature of an object.
- FeatureMatcher(Matcher<? super U>, String, String) - Constructor for class org.hamcrest.FeatureMatcher
- Constructor
- featureValueOf(T) - Method in class org.hamcrest.FeatureMatcher
- Implement this to extract the interesting feature.
- filter(Filter) - Method in interface org.junit.runner.manipulation.Filterable
- Remove tests that don't pass the parameterfilter.
- filter(Filter) - Method in class org.junit.runners.ParentRunner
- Filter - Class in org.junit.runner.manipulation
- The canonical case of filtering is when you want to run a single test method in a class.
- Filter() - Constructor for class org.junit.runner.manipulation.Filter
- Filterable - Interface in org.junit.runner.manipulation
- Runners that allow filtering should implement this interface.
- FilterFactory - Interface in org.junit.runner
- Extend this class to create a factory that createsFilter.
- FilterFactory.FilterNotCreatedException - Exception in org.junit.runner
- Exception thrown if theFiltercannot be created.
- FilterFactoryParams - Class in org.junit.runner
- FilterFactoryParams(Description, String) - Constructor for class org.junit.runner.FilterFactoryParams
- FilterNotCreatedException(Exception) - Constructor for exception org.junit.runner.FilterFactory.FilterNotCreatedException
- filterWith(Description) - Method in class org.junit.runner.Request
- Returns a Request that only runs contains tests whoseDescriptionequalsdesiredDescription
- filterWith(Filter) - Method in class org.junit.runner.Request
- Returns a Request that only contains those tests that should run whenfilteris applied
- findDeepAnnotation(Class<T>) - Method in class org.junit.experimental.theories.ParameterSignature
- findExpectedType(Class<?>) - Method in class org.hamcrest.internal.ReflectiveTypeFinder
- finished() - Method in interface org.junit.runners.model.RunnerScheduler
- Override to implement any behavior that must occur after all children have been scheduled (for example, waiting for them all to finish)
- finished(long, Description) - Method in class org.junit.rules.Stopwatch
- Invoked when a test method finishes (whether passing or failing)
- finished(Description) - Method in class org.junit.rules.TestWatcher
- Invoked when a test method finishes (whether passing or failing)
- finished(FrameworkMethod) - Method in class org.junit.rules.TestWatchman
- Deprecated.Invoked when a test method finishes (whether passing or failing)
- fireTestAssumptionFailed(Failure) - Method in class org.junit.runner.notification.RunNotifier
- Invoke to tell listeners that an atomic test flagged that it assumed something false.
- fireTestFailure(Failure) - Method in class org.junit.runner.notification.RunNotifier
- Invoke to tell listeners that an atomic test failed.
- fireTestFinished(Description) - Method in class org.junit.runner.notification.RunNotifier
- Invoke to tell listeners that an atomic test finished.
- fireTestIgnored(Description) - Method in class org.junit.runner.notification.RunNotifier
- Invoke to tell listeners that an atomic test was ignored.
- fireTestRunFinished(Result) - Method in class org.junit.runner.notification.RunNotifier
- Do not invoke.
- fireTestRunStarted(Description) - Method in class org.junit.runner.notification.RunNotifier
- Do not invoke.
- fireTestStarted(Description) - Method in class org.junit.runner.notification.RunNotifier
- Invoke to tell listeners that an atomic test is about to start.
- FixMethodOrder - Annotation Type in org.junit
- This class allows the user to choose the order of execution of the methods within a test class.
- forFolder(File) - Static method in class org.junit.experimental.max.MaxHistory
- forFolder(String) - Static method in class org.junit.experimental.max.MaxCore
- Deprecated.use storedLocally()
- forValue(String, Object) - Static method in class org.junit.experimental.theories.PotentialAssignment
- FrameworkField - Class in org.junit.runners.model
- Represents a field on a test class (currently used only for Rules inBlockJUnit4ClassRunner, but custom runners can make other uses)
- FrameworkMember<T extends FrameworkMember<T>> - Class in org.junit.runners.model
- Parent class forFrameworkFieldandFrameworkMethod
- FrameworkMember() - Constructor for class org.junit.runners.model.FrameworkMember
- FrameworkMethod - Class in org.junit.runners.model
- Represents a method on a test class to be invoked at the appropriate point in test execution.
- FrameworkMethod(Method) - Constructor for class org.junit.runners.model.FrameworkMethod
- Returns a newFrameworkMethodformethod
- FromDataPoints - Annotation Type in org.junit.experimental.theories
- Annotating a parameter of a@Theorymethod with@FromDataPointswill limit the datapoints considered as potential values for that parameter to just theDataPointswith the given name.
G
- get(Object) - Method in class org.junit.runners.model.FrameworkField
- Attempts to retrieve the value of this field ontarget
- getActual() - Method in error org.junit.ComparisonFailure
- Returns the actual string value
- getActualValues(int, int) - Method in class org.junit.experimental.theories.internal.Assignments
- getAllArguments() - Method in class org.junit.experimental.theories.internal.Assignments
- 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 withannotationClass.
- 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 withannotationClass.
- 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 typeannotationTypeon 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
- getArgumentStrings(boolean) - Method in class org.junit.experimental.theories.internal.Assignments
- 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 thisDescription.
- getChildren() - Method in class org.junit.runners.BlockJUnit4ClassRunner
- getChildren() - Method in class org.junit.runners.Parameterized
- 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
- getClass(String) - Static method in class org.junit.internal.Classes
- Returns Class.forName forclassNameusing the current thread's class loader.
- getClassName() - Method in class org.junit.runner.Description
- getComparator() - Method in enum org.junit.runners.MethodSorters
- getConstructorArguments() - Method in class org.junit.experimental.theories.internal.Assignments
- getDataPointsFields(ParameterSignature) - Method in class org.junit.experimental.theories.internal.AllMembersSupplier
- getDataPointsFields(ParameterSignature) - Method in class org.junit.experimental.theories.internal.SpecificDataPointsSupplier
- getDataPointsMethods(ParameterSignature) - Method in class org.junit.experimental.theories.internal.AllMembersSupplier
- getDataPointsMethods(ParameterSignature) - Method in class org.junit.experimental.theories.internal.SpecificDataPointsSupplier
- getDeclaredMethods(Class<?>) - Static method in class org.junit.internal.MethodSorter
- Gets declared methods of a class in a predictable order, unless @FixMethodOrder(MethodSorters.JVM) is specified.
- 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
- 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 org.junit.ComparisonFailure
- Returns the expected string value
- getFailureCount() - Method in class org.junit.runner.Result
- getFailures() - Method in class org.junit.runner.Result
- getFailures() - Method in exception org.junit.runners.model.MultipleFailureException
- getField() - Method in class org.junit.runners.model.FrameworkField
- 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 thisTimeoutwill look for a stuck thread when the test times out.
- getMessage() - Method in error org.junit.ComparisonFailure
- Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.
- getMessage() - Method in error org.junit.internal.ArrayComparisonFailure
- getMessage() - Method in exception org.junit.internal.AssumptionViolatedException
- getMessage() - Method in class org.junit.runner.notification.Failure
- Convenience method
- getMessage() - Method in exception org.junit.runners.model.MultipleFailureException
- getMethod() - Method in class org.junit.runners.model.FrameworkMethod
- Returns the underlying Java method
- getMethodArguments() - Method in class org.junit.experimental.theories.internal.Assignments
- 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 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
- getOnlyConstructor() - Method in class org.junit.runners.model.TestClass
- Returns the only public constructor in the class, or throws anAssertionErrorif there are more or less than one.
- getParameters() - Method in class org.junit.runners.parameterized.TestWithParameters
- 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
- getRunner() - Method in class org.junit.runner.Request
- Returns aRunnerfor this Request
- 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 fortestClass, usingbuilder
- 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
- getSingleDataPointFields(ParameterSignature) - Method in class org.junit.experimental.theories.internal.AllMembersSupplier
- getSingleDataPointFields(ParameterSignature) - Method in class org.junit.experimental.theories.internal.SpecificDataPointsSupplier
- getSingleDataPointMethods(ParameterSignature) - Method in class org.junit.experimental.theories.internal.AllMembersSupplier
- getSingleDataPointMethods(ParameterSignature) - Method in class org.junit.experimental.theories.internal.SpecificDataPointsSupplier
- getSuite(RunnerBuilder, Class<?>[]) - Method in class org.junit.experimental.ParallelComputer
- getSuite(RunnerBuilder, Class<?>[]) - Method in class org.junit.runner.Computer
- Create a suite forclasses, building Runners withbuilder.
- 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 aTestClassobject wrapping the class to be executed.
- getTestHeader() - Method in class org.junit.runner.notification.Failure
- getTestRules(Object) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- getTimeout() - Method in class org.junit.rules.Timeout.Builder
- getTimeout() - Method in exception org.junit.runners.model.TestTimedOutException
- Gets the time passed before the test was interrupted
- getTimeout(TimeUnit) - Method in class org.junit.rules.Timeout
- Gets the timeout configured for this rule, in the given units.
- 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
- Convenience method
- 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.internal.AllMembersSupplier
- getValueSources(ParameterSignature) - Method in class org.junit.experimental.theories.internal.BooleanSupplier
- getValueSources(ParameterSignature) - Method in class org.junit.experimental.theories.internal.EnumSupplier
- 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
H
- handleAssertionErrors() - Method in class org.junit.rules.ExpectedException
- Deprecated.AssertionErrors are handled by default since JUnit 4.12. Just like in JUnit <= 4.10.
- handleAssumptionViolatedExceptions() - Method in class org.junit.rules.ExpectedException
- Deprecated.AssumptionViolatedExceptions are handled by default since JUnit 4.12. Just like in JUnit <= 4.10.
- handleAssumptionViolation(AssumptionViolatedException) - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
- handleDataPointSuccess() - Method in class org.junit.experimental.theories.Theories.TheoryAnchor
- hasAnnotation(Class<? extends Annotation>) - Method in class org.junit.experimental.theories.ParameterSignature
- hasFailureContaining(String) - Static method in class org.junit.experimental.results.ResultMatchers
- Matches if the result has one or more failures, and at least one of them containsstring
- hashCode() - Method in error org.junit.experimental.theories.internal.ParameterizedAssertionError
- hashCode() - Method in class org.junit.runner.Description
- hashCode() - Method in class org.junit.runners.model.FrameworkMethod
- hashCode() - Method in class org.junit.runners.model.TestClass
- hashCode() - Method in class org.junit.runners.parameterized.TestWithParameters
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.core.IsCollectionContaining
- hasItem(Matcher<? super T>) - Static method in class org.hamcrest.CoreMatchers
- hasItem(Matcher<? super T>) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.hasItem(Matcher)instead.
- hasItem(T) - Static method in class org.hamcrest.core.IsCollectionContaining
- hasItem(T) - Static method in class org.hamcrest.CoreMatchers
- hasItem(T) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.hasItem(Object)instead.
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.core.IsCollectionContaining
- hasItems(Matcher<? super T>...) - Static method in class org.hamcrest.CoreMatchers
- hasItems(Matcher<? super T>...) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.hasItems(Matcher...)instead.
- hasItems(T...) - Static method in class org.hamcrest.core.IsCollectionContaining
- hasItems(T...) - Static method in class org.hamcrest.CoreMatchers
- hasItems(T...) - Static method in class org.junit.matchers.JUnitMatchers
- Deprecated.Please useCoreMatchers.hasItems(Object...)instead.
- hasNext() - Method in class org.hamcrest.internal.ArrayIterator
- hasNext() - Method in class org.hamcrest.internal.SelfDescribingValueIterator
- hasSingleFailureContaining(String) - Static method in class org.junit.experimental.results.ResultMatchers
- Matches if the result has exactly one failure, and it containsstring
I
- Ignore - Annotation Type in org.junit
- Sometimes you want to temporarily disable a test or a group of tests.
- ignoredExceptions() - Method in annotation type org.junit.experimental.theories.DataPoint
- ignoredExceptions() - Method in annotation type org.junit.experimental.theories.DataPoints
- include(boolean, Class<?>...) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- include(Class<?>) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- include(Class<?>...) - Static method in class org.junit.experimental.categories.Categories.CategoryFilter
- IncludeCategories - Class in org.junit.experimental.categories
- FilterFactoryto include categories.
- IncludeCategories() - Constructor for class org.junit.experimental.categories.IncludeCategories
- InexactComparisonCriteria - Class in org.junit.internal
- InexactComparisonCriteria(double) - Constructor for class org.junit.internal.InexactComparisonCriteria
- InexactComparisonCriteria(float) - Constructor for class org.junit.internal.InexactComparisonCriteria
- InitializationError - Exception in org.junit.runners.model
- Represents one or more problems encountered while initializing a Runner
- InitializationError(String) - Constructor for exception org.junit.runners.model.InitializationError
- Construct a newInitializationErrorwith one cause with messagestring
- InitializationError(Throwable) - Constructor for exception org.junit.runners.model.InitializationError
- InitializationError(List<Throwable>) - Constructor for exception org.junit.runners.model.InitializationError
- Construct a newInitializationErrorwith one or more errorserrorsas causes
- instanceOf(Class<?>) - Static method in class org.hamcrest.core.IsInstanceOf
- Creates a matcher that matches when the examined object is an instance of the specifiedtype, as determined by calling theClass.isInstance(Object)method on that type, passing the the examined object.
- instanceOf(Class<?>) - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches when the examined object is an instance of the specifiedtype, as determined by calling theClass.isInstance(Object)method on that type, passing the the examined object.
- intersect(Filter) - Method in class org.junit.runner.manipulation.Filter
- Returns a new Filter that accepts the intersection of the tests accepted by this Filter andsecond
- ints() - Method in annotation type org.junit.experimental.theories.suppliers.TestedOn
- invokeExplosively(Object, Object...) - Method in class org.junit.runners.model.FrameworkMethod
- Returns the result of invoking this method ontargetwith parametersparams.
- is(Class<T>) - Static method in class org.hamcrest.core.Is
- Deprecated.use isA(Classtype) instead. 
- is(Class<T>) - Static method in class org.hamcrest.CoreMatchers
- Deprecated.use isA(Classtype) instead. 
- is(Matcher<T>) - Static method in class org.hamcrest.core.Is
- Decorates another Matcher, retaining its behaviour, but allowing tests to be slightly more expressive.
- is(Matcher<T>) - Static method in class org.hamcrest.CoreMatchers
- Decorates another Matcher, retaining its behaviour, but allowing tests to be slightly more expressive.
- is(T) - Static method in class org.hamcrest.core.Is
- A shortcut to the frequently usedis(equalTo(x)).
- is(T) - Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently usedis(equalTo(x)).
- Is<T> - Class in org.hamcrest.core
- Decorates another Matcher, retaining the behaviour but allowing tests to be slightly more expressive.
- Is(Matcher<T>) - Constructor for class org.hamcrest.core.Is
- isA(Class<T>) - Static method in class org.hamcrest.core.Is
- A shortcut to the frequently usedis(instanceOf(SomeClass.class)).
- isA(Class<T>) - Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently usedis(instanceOf(SomeClass.class)).
- isANonStaticInnerClass() - Method in class org.junit.runners.model.TestClass
- IsAnything<T> - Class in org.hamcrest.core
- A matcher that always returnstrue.
- IsAnything() - Constructor for class org.hamcrest.core.IsAnything
- IsAnything(String) - Constructor for class org.hamcrest.core.IsAnything
- IsCollectionContaining<T> - Class in org.hamcrest.core
- IsCollectionContaining(Matcher<? super T>) - Constructor for class org.hamcrest.core.IsCollectionContaining
- isComplete() - Method in class org.junit.experimental.theories.internal.Assignments
- isDebugging() - Method in class org.junit.rules.DisableOnDebug
- Returnstrueif the JVM is in debug mode.
- isEmpty() - Method in class org.junit.runner.Description
- IsEqual<T> - Class in org.hamcrest.core
- Is the value equal to another value, as tested by theObject.equals(java.lang.Object)invokedMethod?
- IsEqual(T) - Constructor for class org.hamcrest.core.IsEqual
- isException(Matcher<T>) - Static method in class org.junit.matchers.JUnitMatchers
- isIgnored(FrameworkMethod) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Evaluates whetherFrameworkMethods are ignored based on theIgnoreannotation.
- isIgnored(T) - Method in class org.junit.runners.ParentRunner
- Evaluates whether a child is ignored.
- IsInstanceOf - Class in org.hamcrest.core
- Tests whether the value is an instance of a class.
- IsInstanceOf(Class<?>) - Constructor for class org.hamcrest.core.IsInstanceOf
- Creates a new instance of IsInstanceOf
- IsNot<T> - Class in org.hamcrest.core
- Calculates the logical negation of a matcher.
- IsNot(Matcher<T>) - Constructor for class org.hamcrest.core.IsNot
- IsNull<T> - Class in org.hamcrest.core
- Is the value null?
- IsNull() - Constructor for class org.hamcrest.core.IsNull
- isPublic() - Method in class org.junit.runners.model.FrameworkMember
- Returns true if this member is public, false if not.
- isPublic() - Method in class org.junit.runners.model.TestClass
- IsSame<T> - Class in org.hamcrest.core
- Is the value the same object as another value?
- IsSame(T) - Constructor for class org.hamcrest.core.IsSame
- isShadowedBy(FrameworkField) - Method in class org.junit.runners.model.FrameworkField
- isShadowedBy(FrameworkMethod) - Method in class org.junit.runners.model.FrameworkMethod
- isStatic() - Method in class org.junit.runners.model.FrameworkMember
- Returns true if this member is static, false if not.
- isSuccessful() - Static method in class org.junit.experimental.results.ResultMatchers
- Matches if the tests are all successful
- isSuite() - Method in class org.junit.runner.Description
- isTest() - Method in class org.junit.runner.Description
- isThrowable(Matcher<T>) - Static method in class org.junit.matchers.JUnitMatchers
J
- join(String, Object...) - Static method in error org.junit.experimental.theories.internal.ParameterizedAssertionError
- join(String, Collection<Object>) - Static method in error org.junit.experimental.theories.internal.ParameterizedAssertionError
- JUnit4 - Class in org.junit.runners
- Aliases the current default JUnit 4 class runner, for future-proofing.
- JUnit4(Class<?>) - Constructor for class org.junit.runners.JUnit4
- Constructs a new instance of the default runner
- JUnitCore - Class in org.junit.runner
- JUnitCoreis a facade for running tests.
- JUnitCore() - Constructor for class org.junit.runner.JUnitCore
- JUnitMatchers - Class in org.junit.matchers
- Convenience import class: these are useful matchers for use with the assertThat method, but they are not currently included in the basic CoreMatchers class from hamcrest.
- JUnitMatchers() - Constructor for class org.junit.matchers.JUnitMatchers
- JUnitSystem - Interface in org.junit.internal
- JVM - org.junit.runners.MethodSorters
- Leaves the test methods in the order returned by the JVM.
L
- listener() - Method in class org.junit.experimental.max.MaxHistory
M
- main(String...) - Static method in class org.junit.runner.JUnitCore
- Run the tests contained in the classes named in theargs.
- matchAny() - Method in annotation type org.junit.experimental.categories.Categories.ExcludeCategory
- If true, the tests annotated with any of the categories inCategories.ExcludeCategory.value()do not run.
- matchAny() - Method in annotation type org.junit.experimental.categories.Categories.IncludeCategory
- If true, runs tests annotated with any of the categories inCategories.IncludeCategory.value().
- matched(T, Description) - Static method in class org.hamcrest.Condition
- Matcher<T> - Interface in org.hamcrest
- A matcher over acceptable values.
- MatcherAssert - Class in org.hamcrest
- MatcherAssert() - Constructor for class org.hamcrest.MatcherAssert
- matches(Object) - Method in class org.hamcrest.core.AnyOf
- matches(Object) - Method in class org.hamcrest.core.DescribedAs
- matches(Object) - Method in class org.hamcrest.core.Is
- matches(Object) - Method in class org.hamcrest.core.IsAnything
- matches(Object) - Method in class org.hamcrest.core.IsEqual
- matches(Object) - Method in class org.hamcrest.core.IsNot
- matches(Object) - Method in class org.hamcrest.core.IsNull
- matches(Object) - Method in class org.hamcrest.core.IsSame
- matches(Object) - Method in class org.hamcrest.DiagnosingMatcher
- matches(Object) - Method in interface org.hamcrest.Matcher
- Evaluates the matcher for argument item.
- matches(Object) - Method in class org.hamcrest.TypeSafeDiagnosingMatcher
- matches(Object) - Method in class org.hamcrest.TypeSafeMatcher
- Methods made final to prevent accidental override.
- matches(Object, Description) - Method in class org.hamcrest.core.AllOf
- matches(Object, Description) - Method in class org.hamcrest.core.IsInstanceOf
- matches(Object, Description) - Method in class org.hamcrest.DiagnosingMatcher
- matchesSafely(Iterable<? super T>, Description) - Method in class org.hamcrest.core.IsCollectionContaining
- matchesSafely(Iterable<T>, Description) - Method in class org.hamcrest.core.Every
- matchesSafely(String) - Method in class org.hamcrest.core.SubstringMatcher
- matchesSafely(T) - Method in class org.hamcrest.TypeSafeMatcher
- Subclasses should implement this.
- matchesSafely(T, Description) - Method in class org.hamcrest.core.CombinableMatcher
- matchesSafely(T, Description) - Method in class org.hamcrest.FeatureMatcher
- matchesSafely(T, Description) - Method in class org.hamcrest.TypeSafeDiagnosingMatcher
- Subclasses should implement this.
- matching(Matcher<T>) - Method in class org.hamcrest.Condition
- matching(Matcher<T>, String) - Method in class org.hamcrest.Condition
- matchMethodDescription(Description) - Static method in class org.junit.runner.manipulation.Filter
- Returns aFilterthat only runs the single method described bydesiredDescription
- MaxCore - Class in org.junit.experimental.max
- A replacement for JUnitCore, which keeps track of runtime and failure history, and reorders tests to maximize the chances that a failing test occurs early in the test run.
- MaxHistory - Class in org.junit.experimental.max
- Stores a subset of the history of each test: Last failure timestamp Duration of last execution
- method(Class<?>, String) - Static method in class org.junit.runner.Request
- Create aRequestthat, when processed, will run a single test.
- methodBlock(FrameworkMethod) - Method in class org.junit.experimental.theories.Theories
- methodBlock(FrameworkMethod) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Returns a Statement that, when executed, either returns normally ifmethodpasses, or throws an exception ifmethodfails.
- methodInvoker(FrameworkMethod, Object) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- MethodRule - Interface in org.junit.rules
- A MethodRule is an alteration in how a test method is run and reported.
- methods() - Static method in class org.junit.experimental.ParallelComputer
- MethodSorter - Class in org.junit.internal
- MethodSorters - Enum in org.junit.runners
- Sort the methods into a specified execution order.
- millis(long) - Static method in class org.junit.rules.Timeout
- Creates aTimeoutthat will timeout a test after the given duration, in milliseconds.
- MultipleFailureException - Exception in org.junit.runners.model
- Collects multipleThrowables into one exception.
- MultipleFailureException(List<Throwable>) - Constructor for exception org.junit.runners.model.MultipleFailureException
N
- name() - Method in annotation type org.junit.runners.Parameterized.Parameters
- Optional pattern to derive the test's name from the parameters.
- NAME_ASCENDING - org.junit.runners.MethodSorters
- Sorts the test methods by the method name, in lexicographic order, withMethod.toString()used as a tiebreaker
- NAME_ASCENDING - Static variable in class org.junit.internal.MethodSorter
- Method name ascending lexicographic sort order, withMethod.toString()as a tiebreaker
- newFile() - Method in class org.junit.rules.TemporaryFolder
- Returns a new fresh file with a random name under the temporary folder.
- newFile(String) - Method in class org.junit.rules.TemporaryFolder
- Returns a new fresh file with the given name under the temporary folder.
- newFolder() - Method in class org.junit.rules.TemporaryFolder
- Returns a new fresh folder with a random name under the temporary folder.
- newFolder(String) - Method in class org.junit.rules.TemporaryFolder
- Returns a new fresh folder with the given name under the temporary folder.
- newFolder(String...) - Method in class org.junit.rules.TemporaryFolder
- Returns a new fresh folder with the given name(s) under the temporary folder.
- next() - Method in class org.hamcrest.internal.ArrayIterator
- next() - Method in class org.hamcrest.internal.SelfDescribingValueIterator
- nextUnassigned() - Method in class org.junit.experimental.theories.internal.Assignments
- none() - Static method in class org.junit.rules.ExpectedException
- Returns a rule that expects no exception to be thrown (identical to behavior without this rule).
- NONE - Static variable in interface org.hamcrest.Description
- A description that consumes input but does nothing.
- not(Matcher<T>) - Static method in class org.hamcrest.core.IsNot
- Creates a matcher that wraps an existing matcher, but inverts the logic by which it will match.
- not(Matcher<T>) - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that wraps an existing matcher, but inverts the logic by which it will match.
- not(T) - Static method in class org.hamcrest.core.IsNot
- A shortcut to the frequently usednot(equalTo(x)).
- not(T) - Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently usednot(equalTo(x)).
- NOT_MATCHED - Static variable in class org.hamcrest.Condition
- NoTestsRemainException - Exception in org.junit.runner.manipulation
- Thrown when a filter removes all tests from a runner.
- NoTestsRemainException() - Constructor for exception org.junit.runner.manipulation.NoTestsRemainException
- notMatched() - Static method in class org.hamcrest.Condition
- notNullValue() - Static method in class org.hamcrest.core.IsNull
- A shortcut to the frequently usednot(nullValue()).
- notNullValue() - Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently usednot(nullValue()).
- notNullValue(Class<T>) - Static method in class org.hamcrest.core.IsNull
- A shortcut to the frequently usednot(nullValue(X.class)).
- notNullValue(Class<T>) - Static method in class org.hamcrest.CoreMatchers
- A shortcut to the frequently usednot(nullValue(X.class)).
- NULL - Static variable in class org.junit.runner.manipulation.Sorter
- NULL is aSorterthat leaves elements in an undefined order
- NullDescription() - Constructor for class org.hamcrest.Description.NullDescription
- nullsAccepted() - Method in annotation type org.junit.experimental.theories.Theory
- nullValue() - Static method in class org.hamcrest.core.IsNull
- Creates a matcher that matches if examined object isnull.
- nullValue() - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches if examined object isnull.
- nullValue(Class<T>) - Static method in class org.hamcrest.core.IsNull
- Creates a matcher that matches if examined object isnull.
- nullValue(Class<T>) - Static method in class org.hamcrest.CoreMatchers
- Creates a matcher that matches if examined object isnull.
O
- or(Matcher<? super T>) - Method in class org.hamcrest.core.CombinableMatcher
- or(Matcher<? super X>) - Method in class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher
- org.hamcrest - package org.hamcrest
- The stable API defining Matcher and its associated interfaces and classes.
- org.hamcrest.core - package org.hamcrest.core
- Fundamental matchers of objects and values, and composite matchers.
- org.hamcrest.internal - package org.hamcrest.internal
- org.junit - package org.junit
- Provides JUnit core classes and annotations.
- org.junit.experimental - package org.junit.experimental
- org.junit.experimental.categories - package org.junit.experimental.categories
- org.junit.experimental.max - package org.junit.experimental.max
- org.junit.experimental.results - package org.junit.experimental.results
- org.junit.experimental.runners - package org.junit.experimental.runners
- org.junit.experimental.theories - package org.junit.experimental.theories
- org.junit.experimental.theories.internal - package org.junit.experimental.theories.internal
- org.junit.experimental.theories.suppliers - package org.junit.experimental.theories.suppliers
- org.junit.internal - package org.junit.internal
- org.junit.matchers - package org.junit.matchers
- Provides useful additionalMatchers for use with theAssert.assertThat(Object, org.hamcrest.Matcher)statement
- org.junit.rules - package org.junit.rules
- org.junit.runner - package org.junit.runner
- Provides classes used to describe, collect, run and analyze multiple tests.
- org.junit.runner.manipulation - package org.junit.runner.manipulation
- org.junit.runner.notification - package org.junit.runner.notification
- Provides information about a test run.
- org.junit.runners - package org.junit.runners
- Provides standardRunnerimplementations.
- org.junit.runners.model - package org.junit.runners.model
- org.junit.runners.parameterized - package org.junit.runners.parameterized
- org.junit.validator - package org.junit.validator
- out() - Method in interface org.junit.internal.JUnitSystem
- out() - Method in class org.junit.internal.RealSystem
- outerRule(TestRule) - Static method in class org.junit.rules.RuleChain
- Returns aRuleChainwith a singleTestRule.
P
- ParallelComputer - Class in org.junit.experimental
- ParallelComputer(boolean, boolean) - Constructor for class org.junit.experimental.ParallelComputer
- Parameterized - Class in org.junit.runners
- The custom runnerParameterizedimplements parameterized tests.
- Parameterized(Class<?>) - Constructor for class org.junit.runners.Parameterized
- Only called reflectively.
- Parameterized.Parameter - Annotation Type in org.junit.runners
- Annotation for fields of the test class which will be initialized by the method annotated byParameters.
- Parameterized.Parameters - Annotation Type in org.junit.runners
- Annotation for a method which provides parameters to be injected into the test class constructor byParameterized.
- Parameterized.UseParametersRunnerFactory - Annotation Type in org.junit.runners
- Add this annotation to your test class if you want to generate a special runner.
- ParameterizedAssertionError - Error in org.junit.experimental.theories.internal
- ParameterizedAssertionError(Throwable, String, Object...) - Constructor for error org.junit.experimental.theories.internal.ParameterizedAssertionError
- ParameterSignature - Class in org.junit.experimental.theories
- ParametersRunnerFactory - Interface in org.junit.runners.parameterized
- AParameterizedRunnerFactorycreates a runner for a singleTestWithParameters.
- ParametersSuppliedBy - Annotation Type in org.junit.experimental.theories
- Annotating aTheorymethod parameter with @ParametersSuppliedBy causes it to be supplied with values from the namedParameterSupplierwhen run as a theory by theTheoriesrunner.
- ParameterSupplier - Class in org.junit.experimental.theories
- Abstract parent class for suppliers of input data points for theories.
- ParameterSupplier() - Constructor for class org.junit.experimental.theories.ParameterSupplier
- ParentRunner<T> - Class in org.junit.runners
- Provides most of the functionality specific to a Runner that implements a "parent node" in the test tree, with children defined by objects of some data typeT.
- ParentRunner(Class<?>) - Constructor for class org.junit.runners.ParentRunner
- Constructs a newParentRunnerthat will run@TestClass
- pleaseStop() - Method in class org.junit.runner.notification.RunNotifier
- Ask that the tests run stop before starting the next test.
- possiblyExpectingExceptions(FrameworkMethod, Object, Statement) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Returns aStatement: ifmethod's@Testannotation has theexpectingattribute, return normally only ifnextthrows an exception of the correct type, and throw an exception otherwise.
- PotentialAssignment - Class in org.junit.experimental.theories
- PotentialAssignment() - Constructor for class org.junit.experimental.theories.PotentialAssignment
- PotentialAssignment.CouldNotGenerateValueException - Exception in org.junit.experimental.theories
- potentialsForNextUnassigned() - Method in class org.junit.experimental.theories.internal.Assignments
- PrintableResult - Class in org.junit.experimental.results
- A test result that prints nicely in error messages.
- PrintableResult(List<Failure>) - Constructor for class org.junit.experimental.results.PrintableResult
- A result that includes the givenfailures
- printFailure(Failure, String) - Method in class org.junit.internal.TextListener
- printFailures(Result) - Method in class org.junit.internal.TextListener
- printFooter(Result) - Method in class org.junit.internal.TextListener
- printHeader(long) - Method in class org.junit.internal.TextListener
- producesType(Type) - Method in class org.junit.runners.model.FrameworkMethod
- Deprecated.This is used only by the Theories runner, and does not use all the generic type info that it ought to. It will be replaced with a forthcoming ParameterSignature#canAcceptResultOf(FrameworkMethod) once Theories moves to junit-contrib.
- PublicClassValidator - Class in org.junit.validator
- Validates that aTestClassis public.
- PublicClassValidator() - Constructor for class org.junit.validator.PublicClassValidator
R
- RealSystem - Class in org.junit.internal
- RealSystem() - Constructor for class org.junit.internal.RealSystem
- ReflectiveTypeFinder - Class in org.hamcrest.internal
- ReflectiveTypeFinder(String, int, int) - Constructor for class org.hamcrest.internal.ReflectiveTypeFinder
- 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
- remove() - Method in class org.hamcrest.internal.ArrayIterator
- remove() - Method in class org.hamcrest.internal.SelfDescribingValueIterator
- 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
- 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
- ARequestis an abstract description of tests to be run.
- Request() - Constructor for class org.junit.runner.Request
- Result - Class in org.junit.runner
- AResultcollects 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
- rethrowAsException(Throwable) - Static method in class org.junit.internal.Throwables
- Rethrows the givenThrowable, allowing the caller to declare that it throwsException.
- 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 rule allows ordering of TestRules.
- rules(Object) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- run(Class<?>) - Method in class org.junit.experimental.max.MaxCore
- Run all the tests inclass.
- run(Class<?>...) - Method in class org.junit.runner.JUnitCore
- Run all the tests inclasses.
- run(Test) - Method in class org.junit.runner.JUnitCore
- Run all the tests contained in JUnit 3.8.xtest.
- run(Computer, Class<?>...) - Method in class org.junit.runner.JUnitCore
- Run all the tests inclasses.
- run(RunNotifier) - Method in class org.junit.runner.Runner
- Run the tests for this runner.
- run(RunNotifier) - Method in class org.junit.runners.ParentRunner
- run(Request) - Method in class org.junit.experimental.max.MaxCore
- Run all the tests contained inrequest.
- run(Request) - Method in class org.junit.runner.JUnitCore
- Run all the tests contained inrequest.
- run(Request, JUnitCore) - Method in class org.junit.experimental.max.MaxCore
- Run all the tests contained inrequest.
- run(Runner) - Method in class org.junit.runner.JUnitCore
- Do not use.
- runChild(Runner, RunNotifier) - Method in class org.junit.runners.Suite
- runChild(FrameworkMethod, RunNotifier) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- runChild(T, RunNotifier) - Method in class org.junit.runners.ParentRunner
- Runs the test corresponding tochild, which can be assumed to be an element of the list returned byParentRunner.getChildren().
- runClasses(Class<?>...) - Static method in class org.junit.runner.JUnitCore
- Run the tests contained inclasses.
- runClasses(Computer, Class<?>...) - Static method in class org.junit.runner.JUnitCore
- Run the tests contained inclasses.
- runLeaf(Statement, Description, RunNotifier) - Method in class org.junit.runners.ParentRunner
- Runs aStatementthat represents a leaf (aka atomic) test.
- RunListener - Class in org.junit.runner.notification
- Register an instance of this class withRunNotifierto 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 aRunListenerthat can have its methods called concurrently.
- runner(Runner) - Static method in class org.junit.runner.Request
- Runner - Class in org.junit.runner
- ARunnerruns tests and notifies aRunNotifierof 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 inchildren.
- 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
- 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
- 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@RunWithor 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
S
- safeRunnerForClass(Class<?>) - Method in class org.junit.runners.model.RunnerBuilder
- Always returns a runner, even if it is just one that prints an error instead of running tests.
- 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.
- 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 aTimeoutthat will timeout a test after the given duration, in seconds.
- SelfDescribing - Interface in org.hamcrest
- The ability of an object to describe itself.
- SelfDescribingValue<T> - Class in org.hamcrest.internal
- SelfDescribingValue(T) - Constructor for class org.hamcrest.internal.SelfDescribingValue
- SelfDescribingValueIterator<T> - Class in org.hamcrest.internal
- SelfDescribingValueIterator(Iterator<T>) - Constructor for class org.hamcrest.internal.SelfDescribingValueIterator
- serial() - Static method in class org.junit.runner.Computer
- Returns a new default computer, which runs tests in serial order
- setScheduler(RunnerScheduler) - Method in class org.junit.runners.ParentRunner
- Sets a scheduler that determines the order and parallelization of children.
- shouldRun(Description) - Method in class org.junit.experimental.categories.Categories.CategoryFilter
- shouldRun(Description) - Method in class org.junit.runner.manipulation.Filter
- signatures(Constructor<?>) - Static method in class org.junit.experimental.theories.ParameterSignature
- signatures(Method) - 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 interface org.junit.runner.manipulation.Sortable
- Sorts the tests usingsorter
- 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
- ASorterorders tests.
- Sorter(Comparator<Description>) - Constructor for class org.junit.runner.manipulation.Sorter
- Creates aSorterthat usescomparatorto 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 bycomparator
- SpecificDataPointsSupplier - Class in org.junit.experimental.theories.internal
- SpecificDataPointsSupplier(TestClass) - Constructor for class org.junit.experimental.theories.internal.SpecificDataPointsSupplier
- 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
- startsWith(String) - Static method in class org.hamcrest.CoreMatchers
- 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
- 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
- ADescriptionthat is stored as a string.
- 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
- Suite - Class in org.junit.runners
- UsingSuiteas a runner allows you to manually build a suite containing tests from many classes.
- Suite(Class<?>, Class<?>[]) - Constructor for class org.junit.runners.Suite
- Call this when the default builder is good enough.
- 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(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 toJUnitCore
- 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.SuiteClasses - Annotation Type in org.junit.runners
- TheSuiteClassesannotation specifies the classes to be run when a class annotated with@RunWith(Suite.class)is run.
T
- 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
- TemporaryFolder(File) - Constructor for class org.junit.rules.TemporaryFolder
- Test - Annotation Type in org.junit
- TheTestannotation tells JUnit that thepublic voidmethod to which it is attached can be run as a test case.
- 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
- Test.None - Class in org.junit
- Default empty exception
- testAssumptionFailure(Failure) - Method in class org.junit.runner.notification.RunListener
- Called when an atomic test flags that it assumes a condition that is false
- 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 aTestClasswrappingclazz.
- TestClassValidator - Interface in org.junit.validator
- Validates a single facet of a test class.
- testComparator() - Method in class org.junit.experimental.max.MaxHistory
- testCount() - Method in class org.junit.runner.Description
- testCount() - Method in class org.junit.runner.Runner
- TestedOn - Annotation Type in org.junit.experimental.theories.suppliers
- TestedOnSupplier - Class in org.junit.experimental.theories.suppliers
- TestedOnSupplier() - Constructor for class org.junit.experimental.theories.suppliers.TestedOnSupplier
- testFailure(Failure) - Method in class org.junit.internal.TextListener
- testFailure(Failure) - Method in class org.junit.runner.notification.RunListener
- Called when an atomic test fails, 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.internal.TextListener
- testIgnored(Description) - Method in class org.junit.runner.notification.RunListener
- Called when a test will not be run, generally because a test method is annotated withIgnore.
- testName(FrameworkMethod) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Returns the name that describesmethodforDescriptions.
- testName(FrameworkMethod) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
- 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
- testResult(Class<?>) - Static method in class org.junit.experimental.results.PrintableResult
- The result of running JUnit ontype
- testResult(Request) - Static method in class org.junit.experimental.results.PrintableResult
- The result of running JUnit on Requestrequest
- 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.
- testRunFinished(Result) - Method in class org.junit.internal.TextListener
- testRunFinished(Result) - Method in class org.junit.runner.notification.RunListener
- Called when all tests have finished.
- testRunStarted(Description) - Method in class org.junit.runner.notification.RunListener
- Called before any tests have been run.
- testStarted(Description) - Method in class org.junit.internal.TextListener
- testStarted(Description) - Method in class org.junit.runner.notification.RunListener
- Called when an atomic test is about to be started.
- 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
- Deprecated.UseTestWatcher(which implementsTestRule) instead.
- TestWatchman() - Constructor for class org.junit.rules.TestWatchman
- Deprecated.
- TestWithParameters - Class in org.junit.runners.parameterized
- ATestWithParameterskeeps 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
- TextListener - Class in org.junit.internal
- TextListener(PrintStream) - Constructor for class org.junit.internal.TextListener
- TextListener(JUnitSystem) - Constructor for class org.junit.internal.TextListener
- 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.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 theTheoriesrunner.
- TheoryAnchor(FrameworkMethod, TestClass) - Constructor for class org.junit.experimental.theories.Theories.TheoryAnchor
- Throwables - Class in org.junit.internal
- Miscellaneous functions dealing withThrowable.
- timeout() - Method in annotation type org.junit.Test
- Optionally specifytimeoutin milliseconds to cause a test method to fail if it takes longer than that number of milliseconds.
- 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 aTimeoutinstance with the timeout specified at the timeUnit of granularity of the providedTimeUnit.
- Timeout(Timeout.Builder) - Constructor for class org.junit.rules.Timeout
- Create aTimeoutinstance initialized with values form a builder.
- Timeout.Builder - Class in org.junit.rules
- Builder forTimeout.
- toString() - Method in class org.hamcrest.BaseMatcher
- toString() - Method in class org.hamcrest.Description.NullDescription
- 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 error org.junit.internal.ArrayComparisonFailure
- 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
- toString(SelfDescribing) - Static method in class org.hamcrest.StringDescription
- Return the description of aSelfDescribingobject as a String.
- 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() - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
- The default constructor for simple sub types
- TypeSafeDiagnosingMatcher(Class<?>) - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
- Use this constructor if the subclass that implementsmatchesSafelyis not the class that binds <T> to a type.
- TypeSafeDiagnosingMatcher(ReflectiveTypeFinder) - Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher
- Use this constructor if the subclass that implementsmatchesSafelyis not the class that binds <T> to a type.
- 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 implementsmatchesSafelyis not the class that binds <T> to a type.
- TypeSafeMatcher(ReflectiveTypeFinder) - Constructor for class org.hamcrest.TypeSafeMatcher
- Use this constructor if the subclass that implementsmatchesSafelyis not the class that binds <T> to a type.
V
- validateAnnotatedClass(TestClass) - Method in class org.junit.validator.AnnotationValidator
- Validates annotation on the given class.
- validateAnnotatedField(FrameworkField) - Method in class org.junit.validator.AnnotationValidator
- Validates annotation on the given field.
- validateAnnotatedMethod(FrameworkMethod) - Method in class org.junit.experimental.categories.CategoryValidator
- Adds toerrorsa throwable for each problem detected.
- validateAnnotatedMethod(FrameworkMethod) - Method in class org.junit.validator.AnnotationValidator
- Validates annotation on the given method.
- validateConstructor(List<Throwable>) - Method in class org.junit.experimental.theories.Theories
- validateConstructor(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Adds toerrorsif the test class has more than one constructor, or if the constructor takes parameters.
- validateConstructor(List<Throwable>) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
- validateFields(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- validateFields(List<Throwable>) - Method in class org.junit.runners.parameterized.BlockJUnit4ClassRunnerWithParameters
- validateInstanceMethods(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Deprecated.
- validateNoNonStaticInnerClass(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- validateNoTypeParametersOnArgs(List<Throwable>) - Method in class org.junit.runners.model.FrameworkMethod
- validateOnlyOneConstructor(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Adds toerrorsif the test class has more than one constructor (do not override)
- validatePublicVoid(boolean, List<Throwable>) - Method in class org.junit.runners.model.FrameworkMethod
- Adds toerrorsif this method: is not public, or returns something other than void, or is static (givenisStatic is false), or is not static (givenisStatic is true).
- validatePublicVoidNoArg(boolean, List<Throwable>) - Method in class org.junit.runners.model.FrameworkMethod
- Adds toerrorsif this method: is not public, or takes parameters, or returns something other than void, or is static (givenisStatic is false), or is not static (givenisStatic is true).
- validatePublicVoidNoArgMethods(Class<? extends Annotation>, boolean, List<Throwable>) - Method in class org.junit.runners.ParentRunner
- Adds toerrorsif any method in this class is annotated withannotation, but: is not public, or takes parameters, or returns something other than void, or is static (givenisStatic is false), or is not static (givenisStatic is true).
- validateTestClass(TestClass) - Method in class org.junit.validator.AnnotationsValidator
- Validate all annotations of the specified test class that are be annotated withValidateWith.
- validateTestClass(TestClass) - Method in class org.junit.validator.PublicClassValidator
- Validate that the specifiedTestClassis public.
- validateTestClass(TestClass) - Method in interface org.junit.validator.TestClassValidator
- Validate a single facet of a test class.
- validateTestMethods(List<Throwable>) - Method in class org.junit.experimental.theories.Theories
- validateTestMethods(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Adds toerrorsfor each method annotated with@Testthat is not a public, void instance method with no arguments.
- ValidateWith - Annotation Type in org.junit.validator
- Allows for anAnnotationValidatorto be attached to an annotation.
- validateZeroArgConstructor(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Adds toerrorsif the test class's single constructor takes parameters (do not override)
- value() - Method in annotation type org.junit.experimental.categories.Categories.ExcludeCategory
- Determines the tests which do not run if they are annotated with categories specified in the value of this annotation or their subtypes regardless of being included inCategories.IncludeCategory.value().
- value() - Method in annotation type org.junit.experimental.categories.Categories.IncludeCategory
- Determines the tests to run that are annotated with categories specified in the value of this annotation or their subtypes unless excluded withCategories.ExcludeCategory.
- value() - Method in annotation type org.junit.experimental.categories.Category
- value() - Method in annotation type org.junit.experimental.theories.DataPoint
- value() - Method in annotation type org.junit.experimental.theories.DataPoints
- value() - Method in annotation type org.junit.experimental.theories.FromDataPoints
- value() - Method in annotation type org.junit.experimental.theories.ParametersSuppliedBy
- value() - Method in annotation type org.junit.FixMethodOrder
- Optionally specifyvalueto have the methods executed in a particular order
- value() - Method in annotation type org.junit.Ignore
- The optional reason why the test is ignored.
- value() - Method in annotation type org.junit.runner.RunWith
- value() - Method in annotation type org.junit.runners.Parameterized.Parameter
- Method that returns the index of the parameter in the array returned by the method annotated byParameters.
- value() - Method in annotation type org.junit.runners.Parameterized.UseParametersRunnerFactory
- value() - Method in annotation type org.junit.runners.Suite.SuiteClasses
- value() - Method in annotation type org.junit.validator.ValidateWith
- valueOf(String) - Static method in enum org.junit.runners.MethodSorters
- Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.junit.runners.MethodSorters
- Returns an array containing the constants of this enum type, in the order they are declared.
- Verifier - Class in org.junit.rules
- Verifier is a base class for Rules like ErrorCollector, which can turn otherwise passing test methods into failing tests if a verification check is failed
- Verifier() - Constructor for class org.junit.rules.Verifier
- verify() - Method in class org.junit.rules.ErrorCollector
- verify() - Method in class org.junit.rules.Verifier
- Override this to add verification logic.
W
- wasSuccessful() - Method in class org.junit.runner.Result
- withAfterClasses(Statement) - Method in class org.junit.runners.ParentRunner
- Returns aStatement: run all non-overridden@AfterClassmethods on this class and superclasses before executingstatement; all AfterClass methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from AfterClass methods into aMultipleFailureException.
- withAfters(FrameworkMethod, Object, Statement) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Returns aStatement: run all non-overridden@Aftermethods on this class and superclasses before runningnext; all After methods are always executed: exceptions thrown by previous steps are combined, if necessary, with exceptions from After methods into aMultipleFailureException.
- withBeforeClasses(Statement) - Method in class org.junit.runners.ParentRunner
- Returns aStatement: run all non-overridden@BeforeClassmethods on this class and superclasses before executingstatement; if any throws an Exception, stop execution and pass the exception on.
- withBefores(FrameworkMethod, Object, Statement) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Returns aStatement: run all non-overridden@Beforemethods on this class and superclasses before runningnext; if any throws an Exception, stop execution and pass the exception on.
- withLookingForStuckThread(boolean) - Method in class org.junit.rules.Timeout.Builder
- Specifies whether to look for a stuck thread.
- withPotentialTimeout(FrameworkMethod, Object, Statement) - Method in class org.junit.runners.BlockJUnit4ClassRunner
- Deprecated.
- withTimeout(long, TimeUnit) - Method in class org.junit.rules.Timeout.Builder
- Specifies the time to wait before timing out the test.
_
- _dont_implement_Matcher___instead_extend_BaseMatcher_() - Method in class org.hamcrest.BaseMatcher
- Deprecated.
- _dont_implement_Matcher___instead_extend_BaseMatcher_() - Method in interface org.hamcrest.Matcher
- Deprecated.to make
All Classes All Packages