From 364d8b5a0bf898ee7b41cef8c53ecea75c236c40 Mon Sep 17 00:00:00 2001 From: David Saff Date: Thu, 29 Sep 2011 15:36:23 -0400 Subject: [PATCH] Updated to 4.10 --- javadoc/4.10/allclasses-frame.html | 237 +++ javadoc/4.10/allclasses-noframe.html | 237 +++ javadoc/4.10/constant-values.html | 144 ++ javadoc/4.10/deprecated-list.html | 259 +++ javadoc/4.10/help-doc.html | 217 ++ javadoc/4.10/index-all.html | 1875 +++++++++++++++++ javadoc/4.10/index.html | 39 + .../4.10/org/hamcrest/BaseDescription.html | 475 +++++ javadoc/4.10/org/hamcrest/BaseMatcher.html | 311 +++ javadoc/4.10/org/hamcrest/CoreMatchers.html | 798 +++++++ javadoc/4.10/org/hamcrest/Description.html | 355 ++++ javadoc/4.10/org/hamcrest/Factory.html | 172 ++ javadoc/4.10/org/hamcrest/Matcher.html | 274 +++ javadoc/4.10/org/hamcrest/SelfDescribing.html | 218 ++ .../4.10/org/hamcrest/StringDescription.html | 381 ++++ javadoc/4.10/org/hamcrest/core/AllOf.html | 358 ++++ javadoc/4.10/org/hamcrest/core/AnyOf.html | 358 ++++ .../4.10/org/hamcrest/core/DescribedAs.html | 336 +++ javadoc/4.10/org/hamcrest/core/Is.html | 392 ++++ .../4.10/org/hamcrest/core/IsAnything.html | 398 ++++ javadoc/4.10/org/hamcrest/core/IsEqual.html | 331 +++ .../4.10/org/hamcrest/core/IsInstanceOf.html | 326 +++ javadoc/4.10/org/hamcrest/core/IsNot.html | 359 ++++ javadoc/4.10/org/hamcrest/core/IsNull.html | 412 ++++ javadoc/4.10/org/hamcrest/core/IsSame.html | 329 +++ .../4.10/org/hamcrest/core/package-frame.html | 50 + .../org/hamcrest/core/package-summary.html | 208 ++ .../4.10/org/hamcrest/core/package-tree.html | 154 ++ .../org/hamcrest/internal/ArrayIterator.html | 300 +++ .../internal/SelfDescribingValue.html | 261 +++ .../internal/SelfDescribingValueIterator.html | 300 +++ .../org/hamcrest/internal/package-frame.html | 36 + .../hamcrest/internal/package-summary.html | 163 ++ .../org/hamcrest/internal/package-tree.html | 154 ++ javadoc/4.10/org/hamcrest/package-frame.html | 64 + .../4.10/org/hamcrest/package-summary.html | 220 ++ javadoc/4.10/org/hamcrest/package-tree.html | 168 ++ javadoc/4.10/org/junit/After.html | 195 ++ javadoc/4.10/org/junit/AfterClass.html | 198 ++ javadoc/4.10/org/junit/Assert.html | 1418 +++++++++++++ javadoc/4.10/org/junit/Assume.html | 370 ++++ javadoc/4.10/org/junit/Before.html | 195 ++ javadoc/4.10/org/junit/BeforeClass.html | 193 ++ javadoc/4.10/org/junit/ClassRule.html | 217 ++ javadoc/4.10/org/junit/ComparisonFailure.html | 334 +++ javadoc/4.10/org/junit/Ignore.html | 225 ++ javadoc/4.10/org/junit/Rule.html | 203 ++ javadoc/4.10/org/junit/Test.None.html | 211 ++ javadoc/4.10/org/junit/Test.html | 269 +++ .../junit/experimental/ParallelComputer.html | 342 +++ .../categories/Categories.CategoryFilter.html | 332 +++ .../Categories.ExcludeCategory.html | 206 ++ .../Categories.IncludeCategory.html | 206 ++ .../experimental/categories/Categories.html | 351 +++ .../experimental/categories/Category.html | 241 +++ .../categories/package-frame.html | 49 + .../categories/package-summary.html | 183 ++ .../experimental/categories/package-tree.html | 169 ++ .../max/CouldNotReadCoreException.html | 244 +++ .../org/junit/experimental/max/MaxCore.html | 368 ++++ .../junit/experimental/max/MaxHistory.html | 285 +++ .../junit/experimental/max/package-frame.html | 45 + .../experimental/max/package-summary.html | 178 ++ .../junit/experimental/max/package-tree.html | 157 ++ .../org/junit/experimental/package-frame.html | 32 + .../junit/experimental/package-summary.html | 155 ++ .../org/junit/experimental/package-tree.html | 153 ++ .../experimental/results/PrintableResult.html | 328 +++ .../experimental/results/ResultMatchers.html | 326 +++ .../experimental/results/package-frame.html | 34 + .../experimental/results/package-summary.html | 159 ++ .../experimental/results/package-tree.html | 151 ++ .../junit/experimental/runners/Enclosed.html | 301 +++ .../experimental/runners/package-frame.html | 32 + .../experimental/runners/package-summary.html | 155 ++ .../experimental/runners/package-tree.html | 159 ++ .../experimental/theories/DataPoint.html | 166 ++ .../experimental/theories/DataPoints.html | 166 ++ .../theories/ParameterSignature.html | 387 ++++ .../theories/ParameterSupplier.html | 253 +++ .../theories/ParametersSuppliedBy.html | 206 ++ ...gnment.CouldNotGenerateValueException.html | 241 +++ .../theories/PotentialAssignment.html | 313 +++ .../theories/Theories.TheoryAnchor.html | 405 ++++ .../junit/experimental/theories/Theories.html | 449 ++++ .../junit/experimental/theories/Theory.html | 198 ++ .../experimental/theories/package-frame.html | 68 + .../theories/package-summary.html | 211 ++ .../experimental/theories/package-tree.html | 175 ++ .../theories/suppliers/TestedOn.html | 206 ++ .../theories/suppliers/TestedOnSupplier.html | 254 +++ .../theories/suppliers/package-frame.html | 43 + .../theories/suppliers/package-summary.html | 169 ++ .../theories/suppliers/package-tree.html | 159 ++ .../org/junit/matchers/JUnitMatchers.html | 455 ++++ .../org/junit/matchers/package-frame.html | 32 + .../org/junit/matchers/package-summary.html | 177 ++ .../4.10/org/junit/matchers/package-tree.html | 151 ++ javadoc/4.10/org/junit/package-frame.html | 72 + javadoc/4.10/org/junit/package-summary.html | 243 +++ javadoc/4.10/org/junit/package-tree.html | 171 ++ .../4.10/org/junit/rules/ErrorCollector.html | 404 ++++ .../org/junit/rules/ExpectedException.html | 390 ++++ .../org/junit/rules/ExternalResource.html | 350 +++ javadoc/4.10/org/junit/rules/MethodRule.html | 241 +++ javadoc/4.10/org/junit/rules/RuleChain.html | 342 +++ javadoc/4.10/org/junit/rules/RunRules.html | 268 +++ .../4.10/org/junit/rules/TemporaryFolder.html | 479 +++++ javadoc/4.10/org/junit/rules/TestName.html | 310 +++ javadoc/4.10/org/junit/rules/TestRule.html | 253 +++ javadoc/4.10/org/junit/rules/TestWatcher.html | 400 ++++ .../4.10/org/junit/rules/TestWatchman.html | 404 ++++ javadoc/4.10/org/junit/rules/Timeout.html | 294 +++ javadoc/4.10/org/junit/rules/Verifier.html | 319 +++ .../4.10/org/junit/rules/package-frame.html | 65 + .../4.10/org/junit/rules/package-summary.html | 224 ++ .../4.10/org/junit/rules/package-tree.html | 171 ++ javadoc/4.10/org/junit/runner/Computer.html | 314 +++ .../4.10/org/junit/runner/Describable.html | 212 ++ .../4.10/org/junit/runner/Description.html | 774 +++++++ javadoc/4.10/org/junit/runner/JUnitCore.html | 539 +++++ javadoc/4.10/org/junit/runner/Request.html | 526 +++++ javadoc/4.10/org/junit/runner/Result.html | 404 ++++ javadoc/4.10/org/junit/runner/RunWith.html | 227 ++ javadoc/4.10/org/junit/runner/Runner.html | 325 +++ .../org/junit/runner/manipulation/Filter.html | 396 ++++ .../junit/runner/manipulation/Filterable.html | 217 ++ .../manipulation/NoTestsRemainException.html | 242 +++ .../junit/runner/manipulation/Sortable.html | 216 ++ .../org/junit/runner/manipulation/Sorter.html | 340 +++ .../runner/manipulation/package-frame.html | 58 + .../runner/manipulation/package-summary.html | 208 ++ .../runner/manipulation/package-tree.html | 162 ++ .../junit/runner/notification/Failure.html | 391 ++++ .../runner/notification/RunListener.html | 431 ++++ .../runner/notification/RunNotifier.html | 481 +++++ .../notification/StoppedByUserException.html | 245 +++ .../runner/notification/package-frame.html | 47 + .../runner/notification/package-summary.html | 196 ++ .../runner/notification/package-tree.html | 159 ++ .../4.10/org/junit/runner/package-frame.html | 64 + .../org/junit/runner/package-summary.html | 224 ++ .../4.10/org/junit/runner/package-tree.html | 165 ++ javadoc/4.10/org/junit/runners/AllTests.html | 276 +++ .../junit/runners/BlockJUnit4ClassRunner.html | 846 ++++++++ javadoc/4.10/org/junit/runners/JUnit4.html | 273 +++ .../runners/Parameterized.Parameters.html | 172 ++ .../4.10/org/junit/runners/Parameterized.html | 366 ++++ .../4.10/org/junit/runners/ParentRunner.html | 794 +++++++ .../org/junit/runners/Suite.SuiteClasses.html | 214 ++ javadoc/4.10/org/junit/runners/Suite.html | 502 +++++ .../junit/runners/model/FrameworkField.html | 372 ++++ .../junit/runners/model/FrameworkMethod.html | 551 +++++ .../runners/model/InitializationError.html | 308 +++ .../model/MultipleFailureException.html | 319 +++ .../junit/runners/model/RunnerBuilder.html | 360 ++++ .../junit/runners/model/RunnerScheduler.html | 238 +++ .../org/junit/runners/model/Statement.html | 263 +++ .../org/junit/runners/model/TestClass.html | 419 ++++ .../junit/runners/model/package-frame.html | 64 + .../junit/runners/model/package-summary.html | 209 ++ .../org/junit/runners/model/package-tree.html | 161 ++ .../4.10/org/junit/runners/package-frame.html | 55 + .../org/junit/runners/package-summary.html | 220 ++ .../4.10/org/junit/runners/package-tree.html | 173 ++ javadoc/4.10/overview-frame.html | 76 + javadoc/4.10/overview-summary.html | 219 ++ javadoc/4.10/overview-tree.html | 243 +++ javadoc/4.10/package-list | 18 + javadoc/4.10/resources/inherit.gif | Bin 0 -> 57 bytes javadoc/4.10/serialized-form.html | 568 +++++ javadoc/4.10/stylesheet.css | 1 + javadoc/latest/allclasses-frame.html | 6 +- javadoc/latest/allclasses-noframe.html | 6 +- javadoc/latest/constant-values.html | 4 +- javadoc/latest/deprecated-list.html | 12 +- javadoc/latest/help-doc.html | 4 +- javadoc/latest/index-all.html | 55 +- javadoc/latest/index.html | 2 +- .../latest/org/hamcrest/BaseDescription.html | 4 +- javadoc/latest/org/hamcrest/BaseMatcher.html | 4 +- javadoc/latest/org/hamcrest/CoreMatchers.html | 4 +- javadoc/latest/org/hamcrest/Description.html | 4 +- javadoc/latest/org/hamcrest/Factory.html | 4 +- javadoc/latest/org/hamcrest/Matcher.html | 4 +- .../latest/org/hamcrest/SelfDescribing.html | 4 +- .../org/hamcrest/StringDescription.html | 4 +- javadoc/latest/org/hamcrest/core/AllOf.html | 4 +- javadoc/latest/org/hamcrest/core/AnyOf.html | 4 +- .../latest/org/hamcrest/core/DescribedAs.html | 4 +- javadoc/latest/org/hamcrest/core/Is.html | 4 +- .../latest/org/hamcrest/core/IsAnything.html | 4 +- javadoc/latest/org/hamcrest/core/IsEqual.html | 4 +- .../org/hamcrest/core/IsInstanceOf.html | 4 +- javadoc/latest/org/hamcrest/core/IsNot.html | 4 +- javadoc/latest/org/hamcrest/core/IsNull.html | 4 +- javadoc/latest/org/hamcrest/core/IsSame.html | 4 +- .../org/hamcrest/core/package-frame.html | 4 +- .../org/hamcrest/core/package-summary.html | 4 +- .../org/hamcrest/core/package-tree.html | 4 +- .../org/hamcrest/internal/ArrayIterator.html | 4 +- .../internal/SelfDescribingValue.html | 4 +- .../internal/SelfDescribingValueIterator.html | 4 +- .../org/hamcrest/internal/package-frame.html | 4 +- .../hamcrest/internal/package-summary.html | 4 +- .../org/hamcrest/internal/package-tree.html | 4 +- .../latest/org/hamcrest/package-frame.html | 4 +- .../latest/org/hamcrest/package-summary.html | 4 +- javadoc/latest/org/hamcrest/package-tree.html | 4 +- javadoc/latest/org/junit/After.html | 4 +- javadoc/latest/org/junit/AfterClass.html | 4 +- javadoc/latest/org/junit/Assert.html | 4 +- javadoc/latest/org/junit/Assume.html | 4 +- javadoc/latest/org/junit/Before.html | 4 +- javadoc/latest/org/junit/BeforeClass.html | 4 +- javadoc/latest/org/junit/ClassRule.html | 4 +- .../latest/org/junit/ComparisonFailure.html | 4 +- javadoc/latest/org/junit/Ignore.html | 4 +- javadoc/latest/org/junit/Rule.html | 4 +- javadoc/latest/org/junit/Test.None.html | 4 +- javadoc/latest/org/junit/Test.html | 4 +- .../junit/experimental/ParallelComputer.html | 4 +- .../categories/Categories.CategoryFilter.html | 4 +- .../Categories.ExcludeCategory.html | 4 +- .../Categories.IncludeCategory.html | 4 +- .../experimental/categories/Categories.html | 6 +- .../experimental/categories/Category.html | 4 +- .../categories/package-frame.html | 4 +- .../categories/package-summary.html | 4 +- .../experimental/categories/package-tree.html | 4 +- .../max/CouldNotReadCoreException.html | 4 +- .../org/junit/experimental/max/MaxCore.html | 4 +- .../junit/experimental/max/MaxHistory.html | 4 +- .../junit/experimental/max/package-frame.html | 4 +- .../experimental/max/package-summary.html | 4 +- .../junit/experimental/max/package-tree.html | 4 +- .../org/junit/experimental/package-frame.html | 4 +- .../junit/experimental/package-summary.html | 4 +- .../org/junit/experimental/package-tree.html | 4 +- .../experimental/results/PrintableResult.html | 4 +- .../experimental/results/ResultMatchers.html | 4 +- .../experimental/results/package-frame.html | 4 +- .../experimental/results/package-summary.html | 4 +- .../experimental/results/package-tree.html | 4 +- .../junit/experimental/runners/Enclosed.html | 6 +- .../experimental/runners/package-frame.html | 4 +- .../experimental/runners/package-summary.html | 4 +- .../experimental/runners/package-tree.html | 4 +- .../experimental/theories/DataPoint.html | 4 +- .../experimental/theories/DataPoints.html | 4 +- .../theories/ParameterSignature.html | 4 +- .../theories/ParameterSupplier.html | 4 +- .../theories/ParametersSuppliedBy.html | 4 +- ...gnment.CouldNotGenerateValueException.html | 4 +- .../theories/PotentialAssignment.html | 4 +- .../theories/Theories.TheoryAnchor.html | 4 +- .../junit/experimental/theories/Theories.html | 8 +- .../junit/experimental/theories/Theory.html | 4 +- .../experimental/theories/package-frame.html | 4 +- .../theories/package-summary.html | 4 +- .../experimental/theories/package-tree.html | 4 +- .../theories/suppliers/TestedOn.html | 4 +- .../theories/suppliers/TestedOnSupplier.html | 4 +- .../theories/suppliers/package-frame.html | 4 +- .../theories/suppliers/package-summary.html | 4 +- .../theories/suppliers/package-tree.html | 4 +- .../org/junit/matchers/JUnitMatchers.html | 4 +- .../org/junit/matchers/package-frame.html | 4 +- .../org/junit/matchers/package-summary.html | 4 +- .../org/junit/matchers/package-tree.html | 4 +- javadoc/latest/org/junit/package-frame.html | 4 +- javadoc/latest/org/junit/package-summary.html | 4 +- javadoc/latest/org/junit/package-tree.html | 4 +- .../org/junit/rules/ErrorCollector.html | 45 +- .../org/junit/rules/ExpectedException.html | 4 +- .../org/junit/rules/ExternalResource.html | 4 +- .../latest/org/junit/rules/MethodRule.html | 8 +- javadoc/latest/org/junit/rules/RuleChain.html | 342 +++ javadoc/latest/org/junit/rules/RunRules.html | 8 +- .../org/junit/rules/TemporaryFolder.html | 62 +- javadoc/latest/org/junit/rules/TestName.html | 4 +- javadoc/latest/org/junit/rules/TestRule.html | 6 +- .../latest/org/junit/rules/TestWatcher.html | 4 +- .../latest/org/junit/rules/TestWatchman.html | 4 +- javadoc/latest/org/junit/rules/Timeout.html | 4 +- javadoc/latest/org/junit/rules/Verifier.html | 4 +- .../latest/org/junit/rules/package-frame.html | 6 +- .../org/junit/rules/package-summary.html | 8 +- .../latest/org/junit/rules/package-tree.html | 5 +- javadoc/latest/org/junit/runner/Computer.html | 4 +- .../latest/org/junit/runner/Describable.html | 4 +- .../latest/org/junit/runner/Description.html | 63 +- .../latest/org/junit/runner/JUnitCore.html | 4 +- javadoc/latest/org/junit/runner/Request.html | 4 +- javadoc/latest/org/junit/runner/Result.html | 32 +- javadoc/latest/org/junit/runner/RunWith.html | 4 +- javadoc/latest/org/junit/runner/Runner.html | 4 +- .../org/junit/runner/manipulation/Filter.html | 4 +- .../junit/runner/manipulation/Filterable.html | 4 +- .../manipulation/NoTestsRemainException.html | 4 +- .../junit/runner/manipulation/Sortable.html | 4 +- .../org/junit/runner/manipulation/Sorter.html | 4 +- .../runner/manipulation/package-frame.html | 4 +- .../runner/manipulation/package-summary.html | 4 +- .../runner/manipulation/package-tree.html | 4 +- .../junit/runner/notification/Failure.html | 26 +- .../runner/notification/RunListener.html | 4 +- .../runner/notification/RunNotifier.html | 4 +- .../notification/StoppedByUserException.html | 4 +- .../runner/notification/package-frame.html | 4 +- .../runner/notification/package-summary.html | 4 +- .../runner/notification/package-tree.html | 7 +- .../org/junit/runner/package-frame.html | 4 +- .../org/junit/runner/package-summary.html | 4 +- .../latest/org/junit/runner/package-tree.html | 8 +- .../latest/org/junit/runners/AllTests.html | 4 +- .../junit/runners/BlockJUnit4ClassRunner.html | 25 +- javadoc/latest/org/junit/runners/JUnit4.html | 8 +- .../runners/Parameterized.Parameters.html | 4 +- .../org/junit/runners/Parameterized.html | 10 +- .../org/junit/runners/ParentRunner.html | 28 +- .../org/junit/runners/Suite.SuiteClasses.html | 4 +- javadoc/latest/org/junit/runners/Suite.html | 6 +- .../junit/runners/model/FrameworkField.html | 4 +- .../junit/runners/model/FrameworkMethod.html | 41 +- .../runners/model/InitializationError.html | 4 +- .../model/MultipleFailureException.html | 4 +- .../junit/runners/model/RunnerBuilder.html | 4 +- .../junit/runners/model/RunnerScheduler.html | 4 +- .../org/junit/runners/model/Statement.html | 4 +- .../org/junit/runners/model/TestClass.html | 23 +- .../junit/runners/model/package-frame.html | 4 +- .../junit/runners/model/package-summary.html | 4 +- .../org/junit/runners/model/package-tree.html | 4 +- .../org/junit/runners/package-frame.html | 4 +- .../org/junit/runners/package-summary.html | 4 +- .../org/junit/runners/package-tree.html | 4 +- javadoc/latest/overview-frame.html | 4 +- javadoc/latest/overview-summary.html | 4 +- javadoc/latest/overview-tree.html | 14 +- javadoc/latest/serialized-form.html | 165 +- 341 files changed, 48386 insertions(+), 378 deletions(-) create mode 100644 javadoc/4.10/allclasses-frame.html create mode 100644 javadoc/4.10/allclasses-noframe.html create mode 100644 javadoc/4.10/constant-values.html create mode 100644 javadoc/4.10/deprecated-list.html create mode 100644 javadoc/4.10/help-doc.html create mode 100644 javadoc/4.10/index-all.html create mode 100644 javadoc/4.10/index.html create mode 100644 javadoc/4.10/org/hamcrest/BaseDescription.html create mode 100644 javadoc/4.10/org/hamcrest/BaseMatcher.html create mode 100644 javadoc/4.10/org/hamcrest/CoreMatchers.html create mode 100644 javadoc/4.10/org/hamcrest/Description.html create mode 100644 javadoc/4.10/org/hamcrest/Factory.html create mode 100644 javadoc/4.10/org/hamcrest/Matcher.html create mode 100644 javadoc/4.10/org/hamcrest/SelfDescribing.html create mode 100644 javadoc/4.10/org/hamcrest/StringDescription.html create mode 100644 javadoc/4.10/org/hamcrest/core/AllOf.html create mode 100644 javadoc/4.10/org/hamcrest/core/AnyOf.html create mode 100644 javadoc/4.10/org/hamcrest/core/DescribedAs.html create mode 100644 javadoc/4.10/org/hamcrest/core/Is.html create mode 100644 javadoc/4.10/org/hamcrest/core/IsAnything.html create mode 100644 javadoc/4.10/org/hamcrest/core/IsEqual.html create mode 100644 javadoc/4.10/org/hamcrest/core/IsInstanceOf.html create mode 100644 javadoc/4.10/org/hamcrest/core/IsNot.html create mode 100644 javadoc/4.10/org/hamcrest/core/IsNull.html create mode 100644 javadoc/4.10/org/hamcrest/core/IsSame.html create mode 100644 javadoc/4.10/org/hamcrest/core/package-frame.html create mode 100644 javadoc/4.10/org/hamcrest/core/package-summary.html create mode 100644 javadoc/4.10/org/hamcrest/core/package-tree.html create mode 100644 javadoc/4.10/org/hamcrest/internal/ArrayIterator.html create mode 100644 javadoc/4.10/org/hamcrest/internal/SelfDescribingValue.html create mode 100644 javadoc/4.10/org/hamcrest/internal/SelfDescribingValueIterator.html create mode 100644 javadoc/4.10/org/hamcrest/internal/package-frame.html create mode 100644 javadoc/4.10/org/hamcrest/internal/package-summary.html create mode 100644 javadoc/4.10/org/hamcrest/internal/package-tree.html create mode 100644 javadoc/4.10/org/hamcrest/package-frame.html create mode 100644 javadoc/4.10/org/hamcrest/package-summary.html create mode 100644 javadoc/4.10/org/hamcrest/package-tree.html create mode 100644 javadoc/4.10/org/junit/After.html create mode 100644 javadoc/4.10/org/junit/AfterClass.html create mode 100644 javadoc/4.10/org/junit/Assert.html create mode 100644 javadoc/4.10/org/junit/Assume.html create mode 100644 javadoc/4.10/org/junit/Before.html create mode 100644 javadoc/4.10/org/junit/BeforeClass.html create mode 100644 javadoc/4.10/org/junit/ClassRule.html create mode 100644 javadoc/4.10/org/junit/ComparisonFailure.html create mode 100644 javadoc/4.10/org/junit/Ignore.html create mode 100644 javadoc/4.10/org/junit/Rule.html create mode 100644 javadoc/4.10/org/junit/Test.None.html create mode 100644 javadoc/4.10/org/junit/Test.html create mode 100644 javadoc/4.10/org/junit/experimental/ParallelComputer.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/Categories.CategoryFilter.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/Categories.ExcludeCategory.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/Categories.IncludeCategory.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/Categories.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/Category.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/categories/package-tree.html create mode 100644 javadoc/4.10/org/junit/experimental/max/CouldNotReadCoreException.html create mode 100644 javadoc/4.10/org/junit/experimental/max/MaxCore.html create mode 100644 javadoc/4.10/org/junit/experimental/max/MaxHistory.html create mode 100644 javadoc/4.10/org/junit/experimental/max/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/max/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/max/package-tree.html create mode 100644 javadoc/4.10/org/junit/experimental/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/package-tree.html create mode 100644 javadoc/4.10/org/junit/experimental/results/PrintableResult.html create mode 100644 javadoc/4.10/org/junit/experimental/results/ResultMatchers.html create mode 100644 javadoc/4.10/org/junit/experimental/results/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/results/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/results/package-tree.html create mode 100644 javadoc/4.10/org/junit/experimental/runners/Enclosed.html create mode 100644 javadoc/4.10/org/junit/experimental/runners/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/runners/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/runners/package-tree.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/DataPoint.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/DataPoints.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/ParameterSignature.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/ParameterSupplier.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/ParametersSuppliedBy.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/Theories.TheoryAnchor.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/Theories.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/Theory.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/package-tree.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOn.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOnSupplier.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/suppliers/package-frame.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/suppliers/package-summary.html create mode 100644 javadoc/4.10/org/junit/experimental/theories/suppliers/package-tree.html create mode 100644 javadoc/4.10/org/junit/matchers/JUnitMatchers.html create mode 100644 javadoc/4.10/org/junit/matchers/package-frame.html create mode 100644 javadoc/4.10/org/junit/matchers/package-summary.html create mode 100644 javadoc/4.10/org/junit/matchers/package-tree.html create mode 100644 javadoc/4.10/org/junit/package-frame.html create mode 100644 javadoc/4.10/org/junit/package-summary.html create mode 100644 javadoc/4.10/org/junit/package-tree.html create mode 100644 javadoc/4.10/org/junit/rules/ErrorCollector.html create mode 100644 javadoc/4.10/org/junit/rules/ExpectedException.html create mode 100644 javadoc/4.10/org/junit/rules/ExternalResource.html create mode 100644 javadoc/4.10/org/junit/rules/MethodRule.html create mode 100644 javadoc/4.10/org/junit/rules/RuleChain.html create mode 100644 javadoc/4.10/org/junit/rules/RunRules.html create mode 100644 javadoc/4.10/org/junit/rules/TemporaryFolder.html create mode 100644 javadoc/4.10/org/junit/rules/TestName.html create mode 100644 javadoc/4.10/org/junit/rules/TestRule.html create mode 100644 javadoc/4.10/org/junit/rules/TestWatcher.html create mode 100644 javadoc/4.10/org/junit/rules/TestWatchman.html create mode 100644 javadoc/4.10/org/junit/rules/Timeout.html create mode 100644 javadoc/4.10/org/junit/rules/Verifier.html create mode 100644 javadoc/4.10/org/junit/rules/package-frame.html create mode 100644 javadoc/4.10/org/junit/rules/package-summary.html create mode 100644 javadoc/4.10/org/junit/rules/package-tree.html create mode 100644 javadoc/4.10/org/junit/runner/Computer.html create mode 100644 javadoc/4.10/org/junit/runner/Describable.html create mode 100644 javadoc/4.10/org/junit/runner/Description.html create mode 100644 javadoc/4.10/org/junit/runner/JUnitCore.html create mode 100644 javadoc/4.10/org/junit/runner/Request.html create mode 100644 javadoc/4.10/org/junit/runner/Result.html create mode 100644 javadoc/4.10/org/junit/runner/RunWith.html create mode 100644 javadoc/4.10/org/junit/runner/Runner.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/Filter.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/Filterable.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/NoTestsRemainException.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/Sortable.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/Sorter.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/package-frame.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/package-summary.html create mode 100644 javadoc/4.10/org/junit/runner/manipulation/package-tree.html create mode 100644 javadoc/4.10/org/junit/runner/notification/Failure.html create mode 100644 javadoc/4.10/org/junit/runner/notification/RunListener.html create mode 100644 javadoc/4.10/org/junit/runner/notification/RunNotifier.html create mode 100644 javadoc/4.10/org/junit/runner/notification/StoppedByUserException.html create mode 100644 javadoc/4.10/org/junit/runner/notification/package-frame.html create mode 100644 javadoc/4.10/org/junit/runner/notification/package-summary.html create mode 100644 javadoc/4.10/org/junit/runner/notification/package-tree.html create mode 100644 javadoc/4.10/org/junit/runner/package-frame.html create mode 100644 javadoc/4.10/org/junit/runner/package-summary.html create mode 100644 javadoc/4.10/org/junit/runner/package-tree.html create mode 100644 javadoc/4.10/org/junit/runners/AllTests.html create mode 100644 javadoc/4.10/org/junit/runners/BlockJUnit4ClassRunner.html create mode 100644 javadoc/4.10/org/junit/runners/JUnit4.html create mode 100644 javadoc/4.10/org/junit/runners/Parameterized.Parameters.html create mode 100644 javadoc/4.10/org/junit/runners/Parameterized.html create mode 100644 javadoc/4.10/org/junit/runners/ParentRunner.html create mode 100644 javadoc/4.10/org/junit/runners/Suite.SuiteClasses.html create mode 100644 javadoc/4.10/org/junit/runners/Suite.html create mode 100644 javadoc/4.10/org/junit/runners/model/FrameworkField.html create mode 100644 javadoc/4.10/org/junit/runners/model/FrameworkMethod.html create mode 100644 javadoc/4.10/org/junit/runners/model/InitializationError.html create mode 100644 javadoc/4.10/org/junit/runners/model/MultipleFailureException.html create mode 100644 javadoc/4.10/org/junit/runners/model/RunnerBuilder.html create mode 100644 javadoc/4.10/org/junit/runners/model/RunnerScheduler.html create mode 100644 javadoc/4.10/org/junit/runners/model/Statement.html create mode 100644 javadoc/4.10/org/junit/runners/model/TestClass.html create mode 100644 javadoc/4.10/org/junit/runners/model/package-frame.html create mode 100644 javadoc/4.10/org/junit/runners/model/package-summary.html create mode 100644 javadoc/4.10/org/junit/runners/model/package-tree.html create mode 100644 javadoc/4.10/org/junit/runners/package-frame.html create mode 100644 javadoc/4.10/org/junit/runners/package-summary.html create mode 100644 javadoc/4.10/org/junit/runners/package-tree.html create mode 100644 javadoc/4.10/overview-frame.html create mode 100644 javadoc/4.10/overview-summary.html create mode 100644 javadoc/4.10/overview-tree.html create mode 100644 javadoc/4.10/package-list create mode 100644 javadoc/4.10/resources/inherit.gif create mode 100644 javadoc/4.10/serialized-form.html create mode 100644 javadoc/4.10/stylesheet.css create mode 100644 javadoc/latest/org/junit/rules/RuleChain.html diff --git a/javadoc/4.10/allclasses-frame.html b/javadoc/4.10/allclasses-frame.html new file mode 100644 index 000000000000..66b24f0d8d19 --- /dev/null +++ b/javadoc/4.10/allclasses-frame.html @@ -0,0 +1,237 @@ + + + + + + +All Classes (JUnit API) + + + + + + + + + + + +All Classes +
+ + + + + +
After +
+AfterClass +
+AllOf +
+AllTests +
+AnyOf +
+ArrayIterator +
+Assert +
+Assume +
+BaseDescription +
+BaseMatcher +
+Before +
+BeforeClass +
+BlockJUnit4ClassRunner +
+Categories +
+Categories.CategoryFilter +
+Categories.ExcludeCategory +
+Categories.IncludeCategory +
+Category +
+ClassRule +
+ComparisonFailure +
+Computer +
+CoreMatchers +
+CouldNotReadCoreException +
+DataPoint +
+DataPoints +
+Describable +
+DescribedAs +
+Description +
+Description +
+Enclosed +
+ErrorCollector +
+ExpectedException +
+ExternalResource +
+Factory +
+Failure +
+Filter +
+Filterable +
+FrameworkField +
+FrameworkMethod +
+Ignore +
+InitializationError +
+Is +
+IsAnything +
+IsEqual +
+IsInstanceOf +
+IsNot +
+IsNull +
+IsSame +
+JUnit4 +
+JUnitCore +
+JUnitMatchers +
+Matcher +
+MaxCore +
+MaxHistory +
+MethodRule +
+MultipleFailureException +
+NoTestsRemainException +
+ParallelComputer +
+Parameterized +
+Parameterized.Parameters +
+ParameterSignature +
+ParametersSuppliedBy +
+ParameterSupplier +
+ParentRunner +
+PotentialAssignment +
+PotentialAssignment.CouldNotGenerateValueException +
+PrintableResult +
+Request +
+Result +
+ResultMatchers +
+Rule +
+RuleChain +
+RunListener +
+Runner +
+RunnerBuilder +
+RunnerScheduler +
+RunNotifier +
+RunRules +
+RunWith +
+SelfDescribing +
+SelfDescribingValue +
+SelfDescribingValueIterator +
+Sortable +
+Sorter +
+Statement +
+StoppedByUserException +
+StringDescription +
+Suite +
+Suite.SuiteClasses +
+TemporaryFolder +
+Test +
+Test.None +
+TestClass +
+TestedOn +
+TestedOnSupplier +
+TestName +
+TestRule +
+TestWatcher +
+TestWatchman +
+Theories +
+Theories.TheoryAnchor +
+Theory +
+Timeout +
+Verifier +
+
+ + + diff --git a/javadoc/4.10/allclasses-noframe.html b/javadoc/4.10/allclasses-noframe.html new file mode 100644 index 000000000000..794486c950ea --- /dev/null +++ b/javadoc/4.10/allclasses-noframe.html @@ -0,0 +1,237 @@ + + + + + + +All Classes (JUnit API) + + + + + + + + + + + +All Classes +
+ + + + + +
After +
+AfterClass +
+AllOf +
+AllTests +
+AnyOf +
+ArrayIterator +
+Assert +
+Assume +
+BaseDescription +
+BaseMatcher +
+Before +
+BeforeClass +
+BlockJUnit4ClassRunner +
+Categories +
+Categories.CategoryFilter +
+Categories.ExcludeCategory +
+Categories.IncludeCategory +
+Category +
+ClassRule +
+ComparisonFailure +
+Computer +
+CoreMatchers +
+CouldNotReadCoreException +
+DataPoint +
+DataPoints +
+Describable +
+DescribedAs +
+Description +
+Description +
+Enclosed +
+ErrorCollector +
+ExpectedException +
+ExternalResource +
+Factory +
+Failure +
+Filter +
+Filterable +
+FrameworkField +
+FrameworkMethod +
+Ignore +
+InitializationError +
+Is +
+IsAnything +
+IsEqual +
+IsInstanceOf +
+IsNot +
+IsNull +
+IsSame +
+JUnit4 +
+JUnitCore +
+JUnitMatchers +
+Matcher +
+MaxCore +
+MaxHistory +
+MethodRule +
+MultipleFailureException +
+NoTestsRemainException +
+ParallelComputer +
+Parameterized +
+Parameterized.Parameters +
+ParameterSignature +
+ParametersSuppliedBy +
+ParameterSupplier +
+ParentRunner +
+PotentialAssignment +
+PotentialAssignment.CouldNotGenerateValueException +
+PrintableResult +
+Request +
+Result +
+ResultMatchers +
+Rule +
+RuleChain +
+RunListener +
+Runner +
+RunnerBuilder +
+RunnerScheduler +
+RunNotifier +
+RunRules +
+RunWith +
+SelfDescribing +
+SelfDescribingValue +
+SelfDescribingValueIterator +
+Sortable +
+Sorter +
+Statement +
+StoppedByUserException +
+StringDescription +
+Suite +
+Suite.SuiteClasses +
+TemporaryFolder +
+Test +
+Test.None +
+TestClass +
+TestedOn +
+TestedOnSupplier +
+TestName +
+TestRule +
+TestWatcher +
+TestWatchman +
+Theories +
+Theories.TheoryAnchor +
+Theory +
+Timeout +
+Verifier +
+
+ + + diff --git a/javadoc/4.10/constant-values.html b/javadoc/4.10/constant-values.html new file mode 100644 index 000000000000..d8f63bf17fff --- /dev/null +++ b/javadoc/4.10/constant-values.html @@ -0,0 +1,144 @@ + + + + + + +Constant Field Values (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/deprecated-list.html b/javadoc/4.10/deprecated-list.html new file mode 100644 index 000000000000..79c3e5c18061 --- /dev/null +++ b/javadoc/4.10/deprecated-list.html @@ -0,0 +1,259 @@ + + + + + + +Deprecated List (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + + + + + + + + + +
+Deprecated Interfaces
org.junit.rules.MethodRule +
+           
+  +

+ + + + + + + + +
+Deprecated Classes
org.junit.rules.TestWatchman +
+          MethodRule is deprecated. + Use TestWatcher implements TestRule instead. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Deprecated Methods
org.junit.Assert.assertEquals(double, double) +
+          Use + assertEquals(double expected, double actual, double delta) + instead 
org.junit.Assert.assertEquals(Object[], Object[]) +
+          use assertArrayEquals 
org.junit.Assert.assertEquals(String, double, double) +
+          Use + assertEquals(String message, double expected, double actual, double delta) + instead 
org.junit.Assert.assertEquals(String, Object[], Object[]) +
+          use assertArrayEquals 
org.junit.runner.Request.errorReport(Class, Throwable) +
+           
org.junit.experimental.max.MaxCore.forFolder(String) +
+          use storedLocally() 
org.junit.runners.BlockJUnit4ClassRunner.possiblyExpectingExceptions(FrameworkMethod, Object, Statement) +
+          Will be private soon: use Rules instead 
org.junit.runners.model.FrameworkMethod.producesType(Type) +
+          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. 
org.junit.runners.BlockJUnit4ClassRunner.rules(Object) +
+          MethodRule is a deprecated interface. Port to + TestRule and + BlockJUnit4ClassRunner.getTestRules(Object) 
org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(List) +
+          unused API, will go away in future version 
org.junit.runners.BlockJUnit4ClassRunner.withAfters(FrameworkMethod, Object, Statement) +
+          Will be private soon: use Rules instead 
org.junit.runners.BlockJUnit4ClassRunner.withBefores(FrameworkMethod, Object, Statement) +
+          Will be private soon: use Rules instead 
org.junit.runners.BlockJUnit4ClassRunner.withPotentialTimeout(FrameworkMethod, Object, Statement) +
+          Will be private soon: use Rules instead 
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/help-doc.html b/javadoc/4.10/help-doc.html new file mode 100644 index 000000000000..93903d7fa8b1 --- /dev/null +++ b/javadoc/4.10/help-doc.html @@ -0,0 +1,217 @@ + + + + + + +API Help (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+

+Package

+
+ +

+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:

+
+

+Class/Interface

+
+ +

+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+ +

+Annotation Type

+
+ +

+Each annotation type has its own separate page with the following sections:

+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

+
+

+Tree (Class Hierarchy)

+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object. +
+

+Deprecated API

+
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/index-all.html b/javadoc/4.10/index-all.html new file mode 100644 index 000000000000..dd0fbd8cd3e8 --- /dev/null +++ b/javadoc/4.10/index-all.html @@ -0,0 +1,1875 @@ + + + + + + +Index (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I J L M N O P R S T V W _
+

+A

+
+
aClass(Class<?>) - +Static method in class org.junit.runner.Request +
Create a Request that, when processed, will run all the tests + in a class. +
addChild(Description) - +Method in class org.junit.runner.Description +
Add Description as a child of the receiver. +
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 +
After - Annotation Type in org.junit
If you allocate external resources in a Before method you need to release them + after the test runs.
after() - +Method in class org.junit.rules.ExternalResource +
Override to tear down your specific external resource. +
after() - +Method in class org.junit.rules.TemporaryFolder +
  +
AfterClass - Annotation Type in org.junit
If you allocate expensive external resources in a BeforeClass method you need to release them + after all the tests in the class have run.
ALL - +Static variable in class org.junit.runner.manipulation.Filter +
A null Filter that passes all tests through. +
AllOf<T> - Class in org.hamcrest.core
Calculates the logical conjunction of two matchers.
AllOf(Iterable<Matcher<? extends T>>) - +Constructor for class org.hamcrest.core.AllOf +
  +
allOf(Matcher<? extends T>...) - +Static method in class org.hamcrest.core.AllOf +
Evaluates to true only if ALL of the passed in matchers evaluate to true. +
allOf(Iterable<Matcher<? extends T>>) - +Static method in class org.hamcrest.core.AllOf +
Evaluates to true only if ALL of the passed in matchers evaluate to true. +
allOf(Matcher<? extends T>...) - +Static method in class org.hamcrest.CoreMatchers +
Evaluates to true only if ALL of the passed in matchers evaluate to true. +
allOf(Iterable<Matcher<? extends T>>) - +Static method in class org.hamcrest.CoreMatchers +
Evaluates to true only if ALL of the passed in matchers evaluate to true. +
AllTests - Class in org.junit.runners
Runner for use with JUnit 3.8.x-style AllTests classes + (those that only implement a static suite() + method).
AllTests(Class<?>) - +Constructor for class org.junit.runners.AllTests +
Only called reflectively. +
any(Class<T>) - +Static method in class org.hamcrest.core.IsAnything +
This matcher always evaluates to true. +
any(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
This matcher always evaluates to true. +
AnyOf<T> - Class in org.hamcrest.core
Calculates the logical disjunction of two matchers.
AnyOf(Iterable<Matcher<? extends T>>) - +Constructor for class org.hamcrest.core.AnyOf +
  +
anyOf(Matcher<? extends T>...) - +Static method in class org.hamcrest.core.AnyOf +
Evaluates to true if ANY of the passed in matchers evaluate to true. +
anyOf(Iterable<Matcher<? extends T>>) - +Static method in class org.hamcrest.core.AnyOf +
Evaluates to true if ANY of the passed in matchers evaluate to true. +
anyOf(Matcher<? extends T>...) - +Static method in class org.hamcrest.CoreMatchers +
Evaluates to true if ANY of the passed in matchers evaluate to true. +
anyOf(Iterable<Matcher<? extends T>>) - +Static method in class org.hamcrest.CoreMatchers +
Evaluates to true if ANY of the passed in matchers evaluate to true. +
anything() - +Static method in class org.hamcrest.core.IsAnything +
This matcher always evaluates to true. +
anything(String) - +Static method in class org.hamcrest.core.IsAnything +
This matcher always evaluates to true. +
anything() - +Static method in class org.hamcrest.CoreMatchers +
This matcher always evaluates to true. +
anything(String) - +Static method in class org.hamcrest.CoreMatchers +
This matcher always evaluates to true. +
append(String) - +Method in class org.hamcrest.BaseDescription +
Append the String str to the description. +
append(char) - +Method in class org.hamcrest.BaseDescription +
Append the char c to the description. +
append(String) - +Method in class org.hamcrest.StringDescription +
  +
append(char) - +Method in class org.hamcrest.StringDescription +
  +
appendDescriptionOf(SelfDescribing) - +Method in class org.hamcrest.BaseDescription +
  +
appendDescriptionOf(SelfDescribing) - +Method in interface org.hamcrest.Description +
Appends the description of a SelfDescribing value to this description. +
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 of SelfDescribing objects + to the description. +
appendText(String) - +Method in class org.hamcrest.BaseDescription +
  +
appendText(String) - +Method in interface org.hamcrest.Description +
Appends some plain text to the description. +
appendValue(Object) - +Method in class org.hamcrest.BaseDescription +
  +
appendValue(Object) - +Method in interface org.hamcrest.Description +
Appends an arbitary value to the description. +
appendValueList(String, String, String, T...) - +Method in class org.hamcrest.BaseDescription +
  +
appendValueList(String, String, String, Iterable<T>) - +Method in class org.hamcrest.BaseDescription +
  +
appendValueList(String, String, String, T...) - +Method in interface org.hamcrest.Description +
Appends a list of values to the description. +
appendValueList(String, String, String, Iterable<T>) - +Method in interface org.hamcrest.Description +
Appends a list of values to the description. +
apply(Statement, Description) - +Method in class org.junit.rules.ExpectedException +
  +
apply(Statement, Description) - +Method in class org.junit.rules.ExternalResource +
  +
apply(Statement, FrameworkMethod, Object) - +Method in interface org.junit.rules.MethodRule +
Deprecated. Modifies the method-running Statement to implement an additional + test-running rule. +
apply(Statement, Description) - +Method in class org.junit.rules.RuleChain +
Modifies the method-running Statement to implement this + test-running rule. +
apply(Statement, Description) - +Method in interface org.junit.rules.TestRule +
Modifies the method-running Statement to implement this + test-running rule. +
apply(Statement, Description) - +Method in class org.junit.rules.TestWatcher +
  +
apply(Statement, FrameworkMethod, Object) - +Method in class org.junit.rules.TestWatchman +
Deprecated.   +
apply(Statement, Description) - +Method in class org.junit.rules.Timeout +
  +
apply(Statement, Description) - +Method in class org.junit.rules.Verifier +
  +
apply(Object) - +Method in class org.junit.runner.manipulation.Filter +
Invoke with a Runner to cause all tests it intends to run + to first be checked with the filter. +
apply(Object) - +Method in class org.junit.runner.manipulation.Sorter +
Sorts the test in runner using comparator +
around(TestRule) - +Method in class org.junit.rules.RuleChain +
Create a new RuleChain, which encloses the nextRule with + the rules of the current RuleChain. +
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(String, Object[], Object[]) - +Static method in class org.junit.Assert +
Asserts that two object arrays are equal. +
assertArrayEquals(Object[], Object[]) - +Static method in class org.junit.Assert +
Asserts that two object arrays are equal. +
assertArrayEquals(String, byte[], byte[]) - +Static method in class org.junit.Assert +
Asserts that two byte arrays are equal. +
assertArrayEquals(byte[], byte[]) - +Static method in class org.junit.Assert +
Asserts that two byte arrays are equal. +
assertArrayEquals(String, char[], char[]) - +Static method in class org.junit.Assert +
Asserts that two char arrays are equal. +
assertArrayEquals(char[], char[]) - +Static method in class org.junit.Assert +
Asserts that two char arrays are equal. +
assertArrayEquals(String, short[], short[]) - +Static method in class org.junit.Assert +
Asserts that two short arrays are equal. +
assertArrayEquals(short[], short[]) - +Static method in class org.junit.Assert +
Asserts that two short arrays are equal. +
assertArrayEquals(String, int[], int[]) - +Static method in class org.junit.Assert +
Asserts that two int arrays are equal. +
assertArrayEquals(int[], int[]) - +Static method in class org.junit.Assert +
Asserts that two int arrays are equal. +
assertArrayEquals(String, long[], long[]) - +Static method in class org.junit.Assert +
Asserts that two long arrays are equal. +
assertArrayEquals(long[], long[]) - +Static method in class org.junit.Assert +
Asserts that two long arrays are equal. +
assertArrayEquals(String, double[], double[], double) - +Static method in class org.junit.Assert +
Asserts that two double arrays are equal. +
assertArrayEquals(double[], double[], double) - +Static method in class org.junit.Assert +
Asserts that two double arrays are equal. +
assertArrayEquals(String, float[], float[], float) - +Static method in class org.junit.Assert +
Asserts that two float arrays are equal. +
assertArrayEquals(float[], float[], float) - +Static method in class org.junit.Assert +
Asserts that two float arrays are equal. +
assertEmpty(List<Throwable>) - +Static method in exception org.junit.runners.model.MultipleFailureException +
Asserts that a list of throwables is empty. +
assertEquals(String, Object, Object) - +Static method in class org.junit.Assert +
Asserts that two objects are equal. +
assertEquals(Object, Object) - +Static method in class org.junit.Assert +
Asserts that two objects are equal. +
assertEquals(String, double, double, double) - +Static method in class org.junit.Assert +
Asserts that two doubles or floats are equal to within a positive delta. +
assertEquals(long, long) - +Static method in class org.junit.Assert +
Asserts that two longs are equal. +
assertEquals(String, long, long) - +Static method in class org.junit.Assert +
Asserts that two longs are equal. +
assertEquals(double, double) - +Static method in class org.junit.Assert +
Deprecated. Use + assertEquals(double expected, double actual, double delta) + instead +
assertEquals(String, double, double) - +Static method in class org.junit.Assert +
Deprecated. Use + assertEquals(String message, double expected, double actual, double delta) + instead +
assertEquals(double, double, double) - +Static method in class org.junit.Assert +
Asserts that two doubles or floats are equal to within a positive delta. +
assertEquals(String, Object[], Object[]) - +Static method in class org.junit.Assert +
Deprecated. use assertArrayEquals +
assertEquals(Object[], Object[]) - +Static method in class org.junit.Assert +
Deprecated. use assertArrayEquals +
assertFalse(String, boolean) - +Static method in class org.junit.Assert +
Asserts that a condition is false. +
assertFalse(boolean) - +Static method in class org.junit.Assert +
Asserts that a condition is false. +
assertNotNull(String, Object) - +Static method in class org.junit.Assert +
Asserts that an object isn't null. +
assertNotNull(Object) - +Static method in class org.junit.Assert +
Asserts that an object isn't null. +
assertNotSame(String, Object, Object) - +Static method in class org.junit.Assert +
Asserts that two objects do not refer to the same object. +
assertNotSame(Object, Object) - +Static method in class org.junit.Assert +
Asserts that two objects do not refer to the same object. +
assertNull(String, Object) - +Static method in class org.junit.Assert +
Asserts that an object is null. +
assertNull(Object) - +Static method in class org.junit.Assert +
Asserts that an object is null. +
assertSame(String, Object, Object) - +Static method in class org.junit.Assert +
Asserts that two objects refer to the same object. +
assertSame(Object, Object) - +Static method in class org.junit.Assert +
Asserts that two objects refer to the same object. +
assertThat(T, Matcher<T>) - +Static method in class org.junit.Assert +
Asserts that actual satisfies the condition specified by + matcher. +
assertThat(String, T, Matcher<T>) - +Static method in class org.junit.Assert +
Asserts that actual satisfies the condition specified by + matcher. +
assertTrue(String, boolean) - +Static method in class org.junit.Assert +
Asserts that a condition is true. +
assertTrue(boolean) - +Static method in class org.junit.Assert +
Asserts that a condition is true. +
asString(SelfDescribing) - +Static method in class org.hamcrest.StringDescription +
Alias for StringDescription.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 +
  +
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 in objects, the test will halt and be ignored. +
assumeThat(T, Matcher<T>) - +Static method in class org.junit.Assume +
Call to assume that actual satisfies the condition specified by matcher. +
assumeTrue(boolean) - +Static method in class org.junit.Assume +
If called with an expression evaluating to false, the test will halt and be ignored. +
+
+

+B

+
+
BaseDescription - Class in org.hamcrest
A Description that 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 - Annotation Type in org.junit
When writing tests, it is common to find that several tests need similar + objects created before they can run.
before() - +Method in class org.junit.rules.ExternalResource +
Override to set up your specific external resource. +
before() - +Method in class org.junit.rules.TemporaryFolder +
  +
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 run klass +
both(Matcher<T>) - +Static method in class org.junit.matchers.JUnitMatchers +
This is useful for fluently combining matchers that must both pass. +
+
+

+C

+
+
canAcceptArrayType(Class<?>) - +Method in class org.junit.experimental.theories.ParameterSignature +
  +
canAcceptType(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.CategoryFilter(Class<?>, Class<?>) - +Constructor for class org.junit.experimental.categories.Categories.CategoryFilter +
  +
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.
checkSucceeds(Callable<Object>) - +Method in class org.junit.rules.ErrorCollector +
Adds to the table the exception, if any, thrown from callable. +
checkThat(T, Matcher<T>) - +Method in class org.junit.rules.ErrorCollector +
Adds a failure to the table if matcher does not match value. +
checkThat(String, T, Matcher<T>) - +Method in class org.junit.rules.ErrorCollector +
Adds a failure with the given reason + to the table if matcher does not match value. +
childlessCopy() - +Method in class org.junit.runner.Description +
  +
childrenInvoker(RunNotifier) - +Method in class org.junit.runners.ParentRunner +
Returns a Statement: Call ParentRunner.runChild(Object, RunNotifier) + on each object returned by ParentRunner.getChildren() (subject to any imposed + filter and sort) +
classBlock(RunNotifier) - +Method in class org.junit.runners.ParentRunner +
Constructs a Statement to run all of the tests in the test class. +
classes() - +Static method in class org.junit.experimental.ParallelComputer +
  +
classes(Computer, Class<?>...) - +Static method in class org.junit.runner.Request +
Create a Request that, when processed, will run all the tests + in a set of classes. +
classes(Class<?>...) - +Static method in class org.junit.runner.Request +
Create a Request that, when processed, will run all the tests + in a set of classes with the default Computer. +
ClassRule - Annotation Type in org.junit
Annotates static fields that contain rules.
classRules() - +Method in class org.junit.runners.ParentRunner +
  +
classWithoutSuiteMethod(Class<?>) - +Static method in class org.junit.runner.Request +
Create a Request that, when processed, will run all the tests + in a class. +
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 to errors a throwable for each problem noted with the test class (available from ParentRunner.getTestClass()). +
compare(Description, Description) - +Method in class org.junit.runner.manipulation.Sorter +
  +
ComparisonFailure - Error in org.junit
Thrown when an assertEquals(String, String) fails.
ComparisonFailure(String, String, String) - +Constructor for error org.junit.ComparisonFailure +
Constructs a comparison failure. +
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. +
containsString(String) - +Static method in class org.junit.matchers.JUnitMatchers +
  +
CoreMatchers - Class in org.hamcrest
 
CoreMatchers() - +Constructor for class org.hamcrest.CoreMatchers +
  +
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. +
createListener() - +Method in class org.junit.runner.Result +
Internal use only. +
createSuiteDescription(String, Annotation...) - +Static method in class org.junit.runner.Description +
Create a Description named name. +
createSuiteDescription(Class<?>) - +Static method in class org.junit.runner.Description +
Create a Description named after testClass +
createTest() - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Returns a new fixture for running a test. +
createTestDescription(Class<?>, String, Annotation...) - +Static method in class org.junit.runner.Description +
Create a Description of a single test named name in the class clazz. +
createTestDescription(Class<?>, String) - +Static method in class org.junit.runner.Description +
Create a Description of a single test named name in the class clazz. +
+
+

+D

+
+
DataPoint - Annotation Type in org.junit.experimental.theories
 
DataPoints - Annotation Type in org.junit.experimental.theories
 
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(FrameworkMethod) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
  +
describeChild(T) - +Method in class org.junit.runners.ParentRunner +
Returns a Description for child, which can be assumed to + be an element of the list returned by ParentRunner.getChildren() +
describeChild(Runner) - +Method in class org.junit.runners.Suite +
  +
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 +
  +
describedAs(String, Matcher<T>, Object...) - +Static method in class org.hamcrest.core.DescribedAs +
Wraps an existing matcher and overrides the description when it fails. +
describedAs(String, Matcher<T>, Object...) - +Static method in class org.hamcrest.CoreMatchers +
Wraps an existing matcher and overrides the description when it fails. +
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.DescribedAs +
  +
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.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.internal.SelfDescribingValue +
  +
describeTo(Description) - +Method in interface org.hamcrest.SelfDescribing +
Generates a description of the object. +
Description - Interface in org.hamcrest
A description of a Matcher.
Description - Class in org.junit.runner
A Description describes a test which is to be run or has been run.
+
+

+E

+
+
either(Matcher<T>) - +Static method in class org.junit.matchers.JUnitMatchers +
This is useful for fluently combining matchers where either may pass, for example: +
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 a RuleChain without a TestRule. +
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. +
equals(Object) - +Method in class org.junit.runner.Description +
  +
equals(Object) - +Method in class org.junit.runners.model.FrameworkMethod +
  +
equalTo(T) - +Static method in class org.hamcrest.core.IsEqual +
Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod? +
equalTo(T) - +Static method in class org.hamcrest.CoreMatchers +
Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod? +
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 +
Deprecated.  +
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 a Throwable if anything goes wrong. +
everyItem(Matcher<T>) - +Static method in class org.junit.matchers.JUnitMatchers +
  +
expect(Matcher<?>) - +Method in class org.junit.rules.ExpectedException +
Adds matcher to the list of requirements for any thrown exception. +
expect(Class<? extends Throwable>) - +Method in class org.junit.rules.ExpectedException +
Adds to the list of requirements for any thrown exception that it + should be an instance of type +
ExpectedException - Class in org.junit.rules
The ExpectedException Rule allows in-test specification of expected exception + types and messages:
expectMessage(String) - +Method in class org.junit.rules.ExpectedException +
Adds to the list of requirements for any thrown exception that it + should contain string substring +
expectMessage(Matcher<String>) - +Method in class org.junit.rules.ExpectedException +
Adds matcher to the list of requirements for the message + returned from any thrown exception. +
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(String) - +Static method in class org.junit.Assert +
Fails a test with the given message. +
fail() - +Static method in class org.junit.Assert +
Fails a test with no message. +
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
A Failure holds a description of the failed test and the + exception that was thrown while running it.
Failure(Description, Throwable) - +Constructor for class org.junit.runner.notification.Failure +
Constructs a Failure with the given description and exception. +
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 are count failures +
Filter - Class in org.junit.runner.manipulation
The canonical case of filtering is when you want to run a single test method in a class.
Filter() - +Constructor for class org.junit.runner.manipulation.Filter +
  +
filter(Filter) - +Method in interface org.junit.runner.manipulation.Filterable +
Remove tests that don't pass the parameter filter. +
filter(Filter) - +Method in class org.junit.runners.ParentRunner +
  +
Filterable - Interface in org.junit.runner.manipulation
Runners that allow filtering should implement this interface.
filterWith(Filter) - +Method in class org.junit.runner.Request +
Returns a Request that only contains those tests that should run when + filter is applied +
filterWith(Description) - +Method in class org.junit.runner.Request +
Returns a Request that only runs contains tests whose Description + equals desiredDescription +
findDeepAnnotation(Class<T>) - +Method in class org.junit.experimental.theories.ParameterSignature +
  +
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) +
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) +
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. +
forFolder(String) - +Static method in class org.junit.experimental.max.MaxCore +
Deprecated. use storedLocally() +
forFolder(File) - +Static method in class org.junit.experimental.max.MaxHistory +
Loads a MaxHistory from file, or generates a new one that + will be saved to file. +
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 in + BlockJUnit4ClassRunner, but custom runners can make other uses)
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 new FrameworkMethod for method +
+
+

+G

+
+
get(Object) - +Method in class org.junit.runners.model.FrameworkField +
Attempts to retrieve the value of this field on target +
getActual() - +Method in error org.junit.ComparisonFailure +
Returns the actual string value +
getAnnotatedFields(Class<? extends Annotation>) - +Method in class org.junit.runners.model.TestClass +
Returns, efficiently, all the non-overridden fields in this class and its + superclasses that are annotated with annotationClass. +
getAnnotatedFieldValues(Object, Class<? extends Annotation>, Class<T>) - +Method in class org.junit.runners.model.TestClass +
  +
getAnnotatedMethods(Class<? extends Annotation>) - +Method in class org.junit.runners.model.TestClass +
Returns, efficiently, all the non-overridden methods in this class and + its superclasses that are annotated with annotationClass. +
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 class org.junit.runners.model.FrameworkMethod +
Returns the annotation of type annotationType on this method, if + one exists. +
getAnnotations() - +Method in class org.junit.experimental.theories.ParameterSignature +
  +
getAnnotations() - +Method in class org.junit.runner.Description +
  +
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 +
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 +
  +
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 +
  +
getClassName() - +Method in class org.junit.runner.Description +
  +
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. +
getMessage() - +Method in error org.junit.ComparisonFailure +
Returns "..." in place of common prefix and "..." in + place of common suffix between expected and actual. +
getMessage() - +Method in class org.junit.runner.notification.Failure +
Convenience method +
getMessage() - +Method in exception org.junit.runners.model.MultipleFailureException +
  +
getMethod() - +Method in class org.junit.runners.model.FrameworkMethod +
Returns the underlying Java method +
getMethodName() - +Method in class org.junit.rules.TestName +
  +
getMethodName() - +Method in class org.junit.runner.Description +
  +
getName() - +Method in class org.junit.runners.model.FrameworkField +
  +
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.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 an AssertionError if there are more or less than one. +
getRoot() - +Method in class org.junit.rules.TemporaryFolder +
  +
getRunCount() - +Method in class org.junit.runner.Result +
  +
getRunner(RunnerBuilder, Class<?>) - +Method in class org.junit.experimental.ParallelComputer +
  +
getRunner(RunnerBuilder, Class<?>) - +Method in class org.junit.runner.Computer +
Create a single-class runner for testClass, using builder +
getRunner() - +Method in class org.junit.runner.Request +
Returns a Runner for this Request +
getRunnerAnnotations() - +Method in class org.junit.runners.ParentRunner +
  +
getRunTime() - +Method in class org.junit.runner.Result +
  +
getSuite(RunnerBuilder, Class<?>[]) - +Method in class org.junit.experimental.ParallelComputer +
  +
getSuite(RunnerBuilder, Class<?>[]) - +Method in class org.junit.runner.Computer +
Create a suite for classes, building Runners with builder. +
getTestClass() - +Method in class org.junit.runner.Description +
  +
getTestClass() - +Method in class org.junit.runners.ParentRunner +
Returns a TestClass object wrapping the class to be executed. +
getTestHeader() - +Method in class org.junit.runner.notification.Failure +
  +
getTestRules(Object) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
  +
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 +
  +
getValue() - +Method in class org.junit.experimental.theories.PotentialAssignment +
  +
getValueSources(ParameterSignature) - +Method in class org.junit.experimental.theories.ParameterSupplier +
  +
getValueSources(ParameterSignature) - +Method in class org.junit.experimental.theories.suppliers.TestedOnSupplier +
  +
getVersion() - +Method in class org.junit.runner.JUnitCore +
  +
+
+

+H

+
+
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 + contains string +
hashCode() - +Method in class org.junit.runner.Description +
  +
hashCode() - +Method in class org.junit.runners.model.FrameworkMethod +
  +
hasItem(T) - +Static method in class org.junit.matchers.JUnitMatchers +
  +
hasItem(Matcher<? extends T>) - +Static method in class org.junit.matchers.JUnitMatchers +
  +
hasItems(T...) - +Static method in class org.junit.matchers.JUnitMatchers +
  +
hasItems(Matcher<? extends T>...) - +Static method in class org.junit.matchers.JUnitMatchers +
  +
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 contains string +
+
+

+I

+
+
Ignore - Annotation Type in org.junit
Sometimes you want to temporarily disable a test or a group of tests.
include(Class<?>) - +Static method in class org.junit.experimental.categories.Categories.CategoryFilter +
  +
InitializationError - Exception in org.junit.runners.model
Represents one or more problems encountered while initializing a Runner
InitializationError(List<Throwable>) - +Constructor for exception org.junit.runners.model.InitializationError +
Construct a new InitializationError with one or more + errors errors as causes +
InitializationError(Throwable) - +Constructor for exception org.junit.runners.model.InitializationError +
  +
InitializationError(String) - +Constructor for exception org.junit.runners.model.InitializationError +
Construct a new InitializationError with one cause + with message string +
instanceOf(Class<?>) - +Static method in class org.hamcrest.core.IsInstanceOf +
Is the value an instance of a particular type? +
instanceOf(Class<?>) - +Static method in class org.hamcrest.CoreMatchers +
Is the value an instance of a particular type? +
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 and second +
invokeExplosively(Object, Object...) - +Method in class org.junit.runners.model.FrameworkMethod +
Returns the result of invoking this method on target with + parameters params. +
Is<T> - Class in org.hamcrest.core
Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive.
Is(Matcher<T>) - +Constructor for class org.hamcrest.core.Is +
  +
is(Matcher<T>) - +Static method in class org.hamcrest.core.Is +
Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive. +
is(T) - +Static method in class org.hamcrest.core.Is +
This is a shortcut to the frequently used is(equalTo(x)). +
is(Class<?>) - +Static method in class org.hamcrest.core.Is +
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). +
is(Matcher<T>) - +Static method in class org.hamcrest.CoreMatchers +
Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive. +
is(T) - +Static method in class org.hamcrest.CoreMatchers +
This is a shortcut to the frequently used is(equalTo(x)). +
is(Class<?>) - +Static method in class org.hamcrest.CoreMatchers +
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). +
isANonStaticInnerClass() - +Method in class org.junit.runners.model.TestClass +
  +
IsAnything<T> - Class in org.hamcrest.core
A matcher that always returns true.
IsAnything() - +Constructor for class org.hamcrest.core.IsAnything +
  +
IsAnything(String) - +Constructor for class org.hamcrest.core.IsAnything +
  +
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 the + Object.equals(java.lang.Object) invokedMethod?
IsEqual(T) - +Constructor for class org.hamcrest.core.IsEqual +
  +
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.FrameworkField +
  +
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.FrameworkField +
  +
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 +
  +
+
+

+J

+
+
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
JUnitCore is a facade for running tests.
JUnitCore() - +Constructor for class org.junit.runner.JUnitCore +
Create a new JUnitCore to run tests. +
JUnitMatchers - Class in org.junit.matchers
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 +
  +
+
+

+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 the args. +
Matcher<T> - Interface in org.hamcrest
A matcher over acceptable values.
matches(Object) - +Method in class org.hamcrest.core.AllOf +
  +
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.IsInstanceOf +
  +
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 interface org.hamcrest.Matcher +
Evaluates the matcher for argument item. +
matchMethodDescription(Description) - +Static method in class org.junit.runner.manipulation.Filter +
Returns a Filter that only runs the single method described by + desiredDescription +
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 a Request that, 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 if + method passes, or throws an exception if method fails. +
methodInvoker(FrameworkMethod, Object) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Returns a Statement that invokes method on test +
MethodRule - Interface in org.junit.rules
Deprecated. 
methods() - +Static method in class org.junit.experimental.ParallelComputer +
  +
MultipleFailureException - Exception in org.junit.runners.model
Collects multiple Throwables into one exception.
MultipleFailureException(List<Throwable>) - +Constructor for exception org.junit.runners.model.MultipleFailureException +
  +
+
+

+N

+
+
newFile(String) - +Method in class org.junit.rules.TemporaryFolder +
Returns a new fresh file with the given name under the temporary folder. +
newFile() - +Method in class org.junit.rules.TemporaryFolder +
Returns a new fresh file 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() - +Method in class org.junit.rules.TemporaryFolder +
Returns a new fresh folder with a random name under the temporary + folder. +
next() - +Method in class org.hamcrest.internal.ArrayIterator +
  +
next() - +Method in class org.hamcrest.internal.SelfDescribingValueIterator +
  +
none() - +Static method in class org.junit.rules.ExpectedException +
  +
not(Matcher<T>) - +Static method in class org.hamcrest.core.IsNot +
Inverts the rule. +
not(T) - +Static method in class org.hamcrest.core.IsNot +
This is a shortcut to the frequently used not(equalTo(x)). +
not(Matcher<T>) - +Static method in class org.hamcrest.CoreMatchers +
Inverts the rule. +
not(T) - +Static method in class org.hamcrest.CoreMatchers +
This is a shortcut to the frequently used not(equalTo(x)). +
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 +
  +
notNullValue() - +Static method in class org.hamcrest.core.IsNull +
Matches if value is not null. +
notNullValue(Class<T>) - +Static method in class org.hamcrest.core.IsNull +
Matches if value is not null. +
notNullValue() - +Static method in class org.hamcrest.CoreMatchers +
Matches if value is not null. +
notNullValue(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
Matches if value is not null. +
NULL - +Static variable in class org.junit.runner.manipulation.Sorter +
NULL is a Sorter that leaves elements in an undefined order +
nullValue() - +Static method in class org.hamcrest.core.IsNull +
Matches if value is null. +
nullValue(Class<T>) - +Static method in class org.hamcrest.core.IsNull +
Matches if value is null. +
nullValue() - +Static method in class org.hamcrest.CoreMatchers +
Matches if value is null. +
nullValue(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
Matches if value is null. +
+
+

+O

+
+
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.suppliers - package org.junit.experimental.theories.suppliers
 
org.junit.matchers - package org.junit.matchers
Provides useful additional Matchers for use with + the Assert.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
Provides classes to filter or sort tests.
org.junit.runner.notification - package org.junit.runner.notification
Provides information about a test run.
org.junit.runners - package org.junit.runners
Provides standard Runner implementations.
org.junit.runners.model - package org.junit.runners.model
 
outerRule(TestRule) - +Static method in class org.junit.rules.RuleChain +
Returns a RuleChain with a single TestRule. +
+
+

+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 runner Parameterized implements parameterized tests.
Parameterized(Class<?>) - +Constructor for class org.junit.runners.Parameterized +
Only called reflectively. +
Parameterized.Parameters - Annotation Type in org.junit.runners
Annotation for a method which provides parameters to be injected into the + test class constructor by Parameterized
ParameterSignature - Class in org.junit.experimental.theories
 
ParametersSuppliedBy - Annotation Type in org.junit.experimental.theories
 
ParameterSupplier - Class in org.junit.experimental.theories
 
ParameterSupplier() - +Constructor for class org.junit.experimental.theories.ParameterSupplier +
  +
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 + type T.
ParentRunner(Class<?>) - +Constructor for class org.junit.runners.ParentRunner +
Constructs a new ParentRunner that 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 +
Deprecated. Will be private soon: use Rules instead +
PotentialAssignment - Class in org.junit.experimental.theories
 
PotentialAssignment() - +Constructor for class org.junit.experimental.theories.PotentialAssignment +
  +
PotentialAssignment.CouldNotGenerateValueException - Exception in org.junit.experimental.theories
 
PotentialAssignment.CouldNotGenerateValueException() - +Constructor for exception org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException +
  +
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 given failures +
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. +
+
+

+R

+
+
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 +
reportParameterizedError(Throwable, Object...) - +Method in class org.junit.experimental.theories.Theories.TheoryAnchor +
  +
Request - Class in org.junit.runner
A Request is an abstract description of tests to be run.
Request() - +Constructor for class org.junit.runner.Request +
  +
Result - Class in org.junit.runner
A Result collects and summarizes information from running multiple + tests.
Result() - +Constructor for class org.junit.runner.Result +
  +
ResultMatchers - Class in org.junit.experimental.results
Matchers on a PrintableResult, to enable JUnit self-tests.
ResultMatchers() - +Constructor for class org.junit.experimental.results.ResultMatchers +
  +
Rule - Annotation Type in org.junit
Annotates fields that contain rules.
RuleChain - Class in org.junit.rules
The RuleChain rule allows ordering of TestRules.
rules(Object) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Deprecated. MethodRule is a deprecated interface. Port to + TestRule and + BlockJUnit4ClassRunner.getTestRules(Object) +
run(Class<?>) - +Method in class org.junit.experimental.max.MaxCore +
Run all the tests in class. +
run(Request) - +Method in class org.junit.experimental.max.MaxCore +
Run all the tests contained in request. +
run(Request, JUnitCore) - +Method in class org.junit.experimental.max.MaxCore +
Run all the tests contained in request. +
run(Class<?>...) - +Method in class org.junit.runner.JUnitCore +
Run all the tests in classes. +
run(Computer, Class<?>...) - +Method in class org.junit.runner.JUnitCore +
Run all the tests in classes. +
run(Request) - +Method in class org.junit.runner.JUnitCore +
Run all the tests contained in request. +
run(Test) - +Method in class org.junit.runner.JUnitCore +
Run all the tests contained in JUnit 3.8.x test. +
run(Runner) - +Method in class org.junit.runner.JUnitCore +
Do not use. +
run(RunNotifier) - +Method in class org.junit.runner.Runner +
Run the tests for this runner. +
run(RunNotifier) - +Method in class org.junit.runners.ParentRunner +
  +
runChild(FrameworkMethod, RunNotifier) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
  +
runChild(T, RunNotifier) - +Method in class org.junit.runners.ParentRunner +
Runs the test corresponding to child, which can be assumed to be + an element of the list returned by ParentRunner.getChildren(). +
runChild(Runner, RunNotifier) - +Method in class org.junit.runners.Suite +
  +
runClasses(Computer, Class<?>...) - +Static method in class org.junit.runner.JUnitCore +
Run the tests contained in classes. +
runClasses(Class<?>...) - +Static method in class org.junit.runner.JUnitCore +
Run the tests contained in classes. +
runLeaf(Statement, Description, RunNotifier) - +Method in class org.junit.runners.ParentRunner +
Runs a Statement that represents a leaf (aka atomic) test. +
RunListener - Class in org.junit.runner.notification
If you need to respond to the events during a test run, extend RunListener + and override the appropriate methods.
RunListener() - +Constructor for class org.junit.runner.notification.RunListener +
  +
runMain(JUnitSystem, String...) - +Method in class org.junit.runner.JUnitCore +
Do not use. +
runMainAndExit(JUnitSystem, String...) - +Static method in class org.junit.runner.JUnitCore +
Do not use. +
runner(Runner) - +Static method in class org.junit.runner.Request +
  +
Runner - Class in org.junit.runner
A Runner runs tests and notifies a RunNotifier + of significant events as it does so.
Runner() - +Constructor for class org.junit.runner.Runner +
  +
RunnerBuilder - Class in org.junit.runners.model
A RunnerBuilder is a strategy for constructing runners for classes.
RunnerBuilder() - +Constructor for class org.junit.runners.model.RunnerBuilder +
  +
runnerForClass(Class<?>) - +Method in class org.junit.runners.model.RunnerBuilder +
Override to calculate the correct runner for a test class at runtime. +
runners(Class<?>, Class<?>[]) - +Method in class org.junit.runners.model.RunnerBuilder +
Constructs and returns a list of Runners, one for each child class in + children. +
runners(Class<?>, List<Class<?>>) - +Method in class org.junit.runners.model.RunnerBuilder +
  +
RunnerScheduler - Interface in org.junit.runners.model
Represents a strategy for scheduling when individual test methods + should be run (in serial or parallel) + + WARNING: still experimental, may go away.
RunNotifier - Class in org.junit.runner.notification
If you write custom runners, you may need to notify JUnit of your progress running tests.
RunNotifier() - +Constructor for class org.junit.runner.notification.RunNotifier +
  +
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 +
  +
RunWith - Annotation Type in org.junit.runner
When a class is annotated with @RunWith or extends a class annotated + with @RunWith, JUnit will invoke the class it references to run the + tests in that class instead of the runner built into JUnit.
runWithAssignment(Assignments) - +Method in class org.junit.experimental.theories.Theories.TheoryAnchor +
  +
runWithCompleteAssignment(Assignments) - +Method in class org.junit.experimental.theories.Theories.TheoryAnchor +
  +
runWithIncompleteAssignment(Assignments) - +Method in class org.junit.experimental.theories.Theories.TheoryAnchor +
  +
+
+

+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 new instance of IsSame +
sameInstance(T) - +Static method in class org.hamcrest.CoreMatchers +
Creates a new instance of IsSame +
schedule(Runnable) - +Method in interface org.junit.runners.model.RunnerScheduler +
Schedule a child statement to run +
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(Method) - +Static method in class org.junit.experimental.theories.ParameterSignature +
  +
signatures(Constructor<?>) - +Static method in class org.junit.experimental.theories.ParameterSignature +
  +
sort(Sorter) - +Method in interface org.junit.runner.manipulation.Sortable +
Sorts the tests using sorter +
sort(Sorter) - +Method in class org.junit.runners.ParentRunner +
  +
Sortable - Interface in org.junit.runner.manipulation
Interface for runners that allow sorting of tests.
sortedLeavesForTest(Request) - +Method in class org.junit.experimental.max.MaxCore +
  +
Sorter - Class in org.junit.runner.manipulation
A Sorter orders tests.
Sorter(Comparator<Description>) - +Constructor for class org.junit.runner.manipulation.Sorter +
Creates a Sorter that uses comparator + to sort tests +
sortRequest(Request) - +Method in class org.junit.experimental.max.MaxCore +
  +
sortWith(Comparator<Description>) - +Method in class org.junit.runner.Request +
Returns a Request whose Tests can be run in a certain order, defined by + comparator + + For example, here is code to run a test suite in alphabetical order: +
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 +
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 +
  +
storedLocally(File) - +Static method in class org.junit.experimental.max.MaxCore +
Create a new MaxCore from a serialized file stored at storedResults +
StringDescription - Class in org.hamcrest
A Description that is stored as a string.
StringDescription() - +Constructor for class org.hamcrest.StringDescription +
  +
StringDescription(Appendable) - +Constructor for class org.hamcrest.StringDescription +
  +
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
Using Suite as a runner allows you to manually + build a suite containing tests from many classes.
Suite(Class<?>, RunnerBuilder) - +Constructor for class org.junit.runners.Suite +
Called reflectively on classes annotated with @RunWith(Suite.class) +
Suite(RunnerBuilder, Class<?>[]) - +Constructor for class org.junit.runners.Suite +
Call this when there is no single root class (for example, multiple class names + passed on the command line to JUnitCore +
Suite(Class<?>, Class<?>[]) - +Constructor for class org.junit.runners.Suite +
Call this when the default builder is good enough. +
Suite(RunnerBuilder, Class<?>, Class<?>[]) - +Constructor for class org.junit.runners.Suite +
Called by this class and subclasses once the classes making up the suite have been determined +
Suite(Class<?>, List<Runner>) - +Constructor for class org.junit.runners.Suite +
Called by this class and subclasses once the runners making up the suite have been determined +
Suite.SuiteClasses - Annotation Type in org.junit.runners
The SuiteClasses annotation specifies the classes to be run when a class + annotated with @RunWith(Suite.class) is run.
+
+

+T

+
+
TemporaryFolder - Class in org.junit.rules
The TemporaryFolder Rule allows creation of files and folders that are + guaranteed to be deleted when the test method finishes (whether it passes or + fails):
TemporaryFolder() - +Constructor for class org.junit.rules.TemporaryFolder +
  +
Test - Annotation Type in org.junit
The Test annotation tells JUnit that the public void method + to which it is attached can be run as a test case.
Test.None - Class in org.junit
Default empty exception
TEST_MECHANISM - +Static variable in class org.junit.runner.Description +
Describes a step in the test-running mechanism that goes so wrong no + other description can be used (for example, an exception thrown from a Runner's + constructor +
testAssumptionFailure(Failure) - +Method in class org.junit.runner.notification.RunListener +
Called when an atomic test flags that it assumes a condition that is + false +
TestClass - Class in org.junit.runners.model
Wraps a class to be run, providing method validation and annotation searching
TestClass(Class<?>) - +Constructor for class org.junit.runners.model.TestClass +
Creates a TestClass wrapping klass. +
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.runner.notification.RunListener +
Called when an atomic test fails. +
testFinished(Description) - +Method in class org.junit.runner.notification.RunListener +
Called when an atomic test has finished, whether the test succeeds or fails. +
testIgnored(Description) - +Method in class org.junit.runner.notification.RunListener +
Called when a test will not be run, generally because a test method is annotated + with Ignore. +
TestName - Class in org.junit.rules
The TestName Rule makes the current test name available inside test methods:
TestName() - +Constructor for class org.junit.rules.TestName +
  +
testName(FrameworkMethod) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Returns the name that describes method for Descriptions. +
testResult(Class<?>) - +Static method in class org.junit.experimental.results.PrintableResult +
The result of running JUnit on type +
testResult(Request) - +Static method in class org.junit.experimental.results.PrintableResult +
The result of running JUnit on Request request +
TestRule - Interface in org.junit.rules
A TestRule is an alteration in how a test method, or set of test methods, + is run and reported.
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.runner.notification.RunListener +
Called when an atomic test is about to be started. +
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. MethodRule is deprecated. + Use TestWatcher implements TestRule instead.
TestWatchman() - +Constructor for class org.junit.rules.TestWatchman +
Deprecated.   +
Theories - Class in org.junit.experimental.theories
 
Theories(Class<?>) - +Constructor for class org.junit.experimental.theories.Theories +
  +
Theories.TheoryAnchor - Class in org.junit.experimental.theories
 
Theories.TheoryAnchor(FrameworkMethod, TestClass) - +Constructor for class org.junit.experimental.theories.Theories.TheoryAnchor +
  +
Theory - Annotation Type in org.junit.experimental.theories
 
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 +
  +
toString() - +Method in class org.hamcrest.BaseMatcher +
  +
toString(SelfDescribing) - +Static method in class org.hamcrest.StringDescription +
Return the description of a SelfDescribing object as a String. +
toString() - +Method in class org.hamcrest.StringDescription +
Returns the description as a string. +
toString() - +Method in class org.junit.experimental.results.PrintableResult +
  +
toString() - +Method in class org.junit.runner.Description +
  +
toString() - +Method in class org.junit.runner.notification.Failure +
  +
+
+

+V

+
+
validateConstructor(List<Throwable>) - +Method in class org.junit.experimental.theories.Theories +
  +
validateConstructor(List<Throwable>) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Adds to errors if the test class has more than one constructor, + or if the constructor takes parameters. +
validateInstanceMethods(List<Throwable>) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Deprecated. unused API, will go away in future version +
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 to errors if the test class has more than one constructor + (do not override) +
validatePublicVoid(boolean, List<Throwable>) - +Method in class org.junit.runners.model.FrameworkMethod +
Adds to errors if this method: + + is not public, or + returns something other than void, or + is static (given isStatic is false), or + is not static (given isStatic is true). +
validatePublicVoidNoArg(boolean, List<Throwable>) - +Method in class org.junit.runners.model.FrameworkMethod +
Adds to errors if this method: + + is not public, or + takes parameters, or + returns something other than void, or + is static (given isStatic is false), or + is not static (given isStatic is true). +
validatePublicVoidNoArgMethods(Class<? extends Annotation>, boolean, List<Throwable>) - +Method in class org.junit.runners.ParentRunner +
Adds to errors if any method in this class is annotated with + annotation, but: + + is not public, or + takes parameters, or + returns something other than void, or + is static (given isStatic is false), or + is not static (given isStatic is true). +
validateTestMethods(List<Throwable>) - +Method in class org.junit.experimental.theories.Theories +
  +
validateTestMethods(List<Throwable>) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Adds to errors for each method annotated with @Testthat + is not a public, void instance method with no arguments. +
validateZeroArgConstructor(List<Throwable>) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Adds to errors if the test class's single constructor takes + parameters (do not override) +
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 a Statement: run all non-overridden @AfterClass methods on this class + and superclasses before executing statement; all AfterClass methods are + always executed: exceptions thrown by previous steps are combined, if + necessary, with exceptions from AfterClass methods into a + MultipleFailureException. +
withAfters(FrameworkMethod, Object, Statement) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Deprecated. Will be private soon: use Rules instead +
withBeforeClasses(Statement) - +Method in class org.junit.runners.ParentRunner +
Returns a Statement: run all non-overridden @BeforeClass methods on this class + and superclasses before executing statement; if any throws an + Exception, stop execution and pass the exception on. +
withBefores(FrameworkMethod, Object, Statement) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Deprecated. Will be private soon: use Rules instead +
withPotentialTimeout(FrameworkMethod, Object, Statement) - +Method in class org.junit.runners.BlockJUnit4ClassRunner +
Deprecated. Will be private soon: use Rules instead +
+
+

+_

+
+
_dont_implement_Matcher___instead_extend_BaseMatcher_() - +Method in class org.hamcrest.BaseMatcher +
  +
_dont_implement_Matcher___instead_extend_BaseMatcher_() - +Method in interface org.hamcrest.Matcher +
This method simply acts a friendly reminder not to implement Matcher directly and + instead extend BaseMatcher. +
+
+A B C D E F G H I J L M N O P R S T V W _ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/index.html b/javadoc/4.10/index.html new file mode 100644 index 000000000000..a0186112c0c7 --- /dev/null +++ b/javadoc/4.10/index.html @@ -0,0 +1,39 @@ + + + + + + +JUnit API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/javadoc/4.10/org/hamcrest/BaseDescription.html b/javadoc/4.10/org/hamcrest/BaseDescription.html new file mode 100644 index 000000000000..12391a8751ad --- /dev/null +++ b/javadoc/4.10/org/hamcrest/BaseDescription.html @@ -0,0 +1,475 @@ + + + + + + +BaseDescription (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class BaseDescription

+
+java.lang.Object
+  extended by org.hamcrest.BaseDescription
+
+
+
All Implemented Interfaces:
Description
+
+
+
Direct Known Subclasses:
StringDescription
+
+
+
+
public abstract class BaseDescription
extends Object
implements Description
+ + +

+A Description that is stored as a string. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
BaseDescription() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  voidappend(char c) + +
+          Append the char c to the description.
+protected  voidappend(String str) + +
+          Append the String str to the description.
+ DescriptionappendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionappendList(String start, + String separator, + String end, + Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionappendText(String text) + +
+          Appends some plain text to the description.
+ DescriptionappendValue(Object value) + +
+          Appends an arbitary value to the description.
+ + + + + +
+<T> Description
+
appendValueList(String start, + String separator, + String end, + Iterable<T> values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
appendValueList(String start, + String separator, + String end, + T... values) + +
+          Appends a list of values to the description.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BaseDescription

+
+public BaseDescription()
+
+
+ + + + + + + + +
+Method Detail
+ +

+appendText

+
+public Description appendText(String text)
+
+
Description copied from interface: Description
+
Appends some plain text to the description. +

+

+
Specified by:
appendText in interface Description
+
+
+
+
+
+
+ +

+appendDescriptionOf

+
+public Description appendDescriptionOf(SelfDescribing value)
+
+
Description copied from interface: Description
+
Appends the description of a SelfDescribing value to this description. +

+

+
Specified by:
appendDescriptionOf in interface Description
+
+
+
+
+
+
+ +

+appendValue

+
+public Description appendValue(Object value)
+
+
Description copied from interface: Description
+
Appends an arbitary value to the description. +

+

+
Specified by:
appendValue in interface Description
+
+
+
+
+
+
+ +

+appendValueList

+
+public <T> Description appendValueList(String start,
+                                       String separator,
+                                       String end,
+                                       T... values)
+
+
Description copied from interface: Description
+
Appends a list of values to the description. +

+

+
Specified by:
appendValueList in interface Description
+
+
+
+
+
+
+ +

+appendValueList

+
+public <T> Description appendValueList(String start,
+                                       String separator,
+                                       String end,
+                                       Iterable<T> values)
+
+
Description copied from interface: Description
+
Appends a list of values to the description. +

+

+
Specified by:
appendValueList in interface Description
+
+
+
+
+
+
+ +

+appendList

+
+public Description appendList(String start,
+                              String separator,
+                              String end,
+                              Iterable<? extends SelfDescribing> values)
+
+
Description copied from interface: Description
+
Appends a list of SelfDescribing objects + to the description. +

+

+
Specified by:
appendList in interface Description
+
+
+
+
+
+
+ +

+append

+
+protected void append(String str)
+
+
Append the String str to the description. + The default implementation passes every character to append(char). + Override in subclasses to provide an efficient implementation. +

+

+
+
+
+
+
+
+
+ +

+append

+
+protected abstract void append(char c)
+
+
Append the char c to the description. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/BaseMatcher.html b/javadoc/4.10/org/hamcrest/BaseMatcher.html new file mode 100644 index 000000000000..d9884ecf58c3 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/BaseMatcher.html @@ -0,0 +1,311 @@ + + + + + + +BaseMatcher (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class BaseMatcher<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
Direct Known Subclasses:
AllOf, AnyOf, DescribedAs, Is, IsAnything, IsEqual, IsInstanceOf, IsNot, IsNull, IsSame
+
+
+
+
public abstract class BaseMatcher<T>
extends Object
implements Matcher<T>
+ + +

+BaseClass for all Matcher implementations. +

+ +

+

+
See Also:
Matcher
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BaseMatcher() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ void_dont_implement_Matcher___instead_extend_BaseMatcher_() + +
+          This method simply acts a friendly reminder not to implement Matcher directly and + instead extend BaseMatcher.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface org.hamcrest.Matcher
matches
+ + + + + + + +
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BaseMatcher

+
+public BaseMatcher()
+
+
+ + + + + + + + +
+Method Detail
+ +

+_dont_implement_Matcher___instead_extend_BaseMatcher_

+
+public final void _dont_implement_Matcher___instead_extend_BaseMatcher_()
+
+
Description copied from interface: Matcher
+
This method simply acts a friendly reminder not to implement Matcher directly and + instead extend BaseMatcher. It's easy to ignore JavaDoc, but a bit harder to ignore + compile errors . +

+

+
Specified by:
_dont_implement_Matcher___instead_extend_BaseMatcher_ in interface Matcher<T>
+
+
+
See Also:
Matcher._dont_implement_Matcher___instead_extend_BaseMatcher_()
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/CoreMatchers.html b/javadoc/4.10/org/hamcrest/CoreMatchers.html new file mode 100644 index 000000000000..a9a2e670851e --- /dev/null +++ b/javadoc/4.10/org/hamcrest/CoreMatchers.html @@ -0,0 +1,798 @@ + + + + + + +CoreMatchers (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class CoreMatchers

+
+java.lang.Object
+  extended by org.hamcrest.CoreMatchers
+
+
+
+
public class CoreMatchers
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CoreMatchers() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
allOf(Iterable<Matcher<? extends T>> matchers) + +
+          Evaluates to true only if ALL of the passed in matchers evaluate to true.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? extends T>... matchers) + +
+          Evaluates to true only if ALL of the passed in matchers evaluate to true.
+static + + + + +
+<T> Matcher<T>
+
any(Class<T> type) + +
+          This matcher always evaluates to true.
+static + + + + +
+<T> Matcher<T>
+
anyOf(Iterable<Matcher<? extends T>> matchers) + +
+          Evaluates to true if ANY of the passed in matchers evaluate to true.
+static + + + + +
+<T> Matcher<T>
+
anyOf(Matcher<? extends T>... matchers) + +
+          Evaluates to true if ANY of the passed in matchers evaluate to true.
+static + + + + +
+<T> Matcher<T>
+
anything() + +
+          This matcher always evaluates to true.
+static + + + + +
+<T> Matcher<T>
+
anything(String description) + +
+          This matcher always evaluates to true.
+static + + + + +
+<T> Matcher<T>
+
describedAs(String description, + Matcher<T> matcher, + Object... values) + +
+          Wraps an existing matcher and overrides the description when it fails.
+static + + + + +
+<T> Matcher<T>
+
equalTo(T operand) + +
+          Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod?
+static Matcher<Object>instanceOf(Class<?> type) + +
+          Is the value an instance of a particular type?
+static Matcher<Object>is(Class<?> type) + +
+          This is a shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static + + + + +
+<T> Matcher<T>
+
is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
is(T value) + +
+          This is a shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
not(Matcher<T> matcher) + +
+          Inverts the rule.
+static + + + + +
+<T> Matcher<T>
+
not(T value) + +
+          This is a shortcut to the frequently used not(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
notNullValue() + +
+          Matches if value is not null.
+static + + + + +
+<T> Matcher<T>
+
notNullValue(Class<T> type) + +
+          Matches if value is not null.
+static + + + + +
+<T> Matcher<T>
+
nullValue() + +
+          Matches if value is null.
+static + + + + +
+<T> Matcher<T>
+
nullValue(Class<T> type) + +
+          Matches if value is null.
+static + + + + +
+<T> Matcher<T>
+
sameInstance(T object) + +
+          Creates a new instance of IsSame
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CoreMatchers

+
+public CoreMatchers()
+
+
+ + + + + + + + +
+Method Detail
+ +

+is

+
+public static <T> Matcher<T> is(Matcher<T> matcher)
+
+
Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive. + + eg. assertThat(cheese, equalTo(smelly)) + vs assertThat(cheese, is(equalTo(smelly))) +

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(T value)
+
+
This is a shortcut to the frequently used is(equalTo(x)). + + eg. assertThat(cheese, is(equalTo(smelly))) + vs assertThat(cheese, is(smelly)) +

+

+
+
+
+
+ +

+is

+
+public static Matcher<Object> is(Class<?> type)
+
+
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). + + eg. assertThat(cheese, is(instanceOf(Cheddar.class))) + vs assertThat(cheese, is(Cheddar.class)) +

+

+
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(Matcher<T> matcher)
+
+
Inverts the rule. +

+

+
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(T value)
+
+
This is a shortcut to the frequently used not(equalTo(x)). + + eg. assertThat(cheese, is(not(equalTo(smelly)))) + vs assertThat(cheese, is(not(smelly))) +

+

+
+
+
+
+ +

+equalTo

+
+public static <T> Matcher<T> equalTo(T operand)
+
+
Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod? +

+

+
+
+
+
+ +

+instanceOf

+
+public static Matcher<Object> instanceOf(Class<?> type)
+
+
Is the value an instance of a particular type? +

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? extends T>... matchers)
+
+
Evaluates to true only if ALL of the passed in matchers evaluate to true. +

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Iterable<Matcher<? extends T>> matchers)
+
+
Evaluates to true only if ALL of the passed in matchers evaluate to true. +

+

+
+
+
+
+ +

+anyOf

+
+public static <T> Matcher<T> anyOf(Matcher<? extends T>... matchers)
+
+
Evaluates to true if ANY of the passed in matchers evaluate to true. +

+

+
+
+
+
+ +

+anyOf

+
+public static <T> Matcher<T> anyOf(Iterable<Matcher<? extends T>> matchers)
+
+
Evaluates to true if ANY of the passed in matchers evaluate to true. +

+

+
+
+
+
+ +

+sameInstance

+
+public static <T> Matcher<T> sameInstance(T object)
+
+
Creates a new instance of IsSame +

+

+
Parameters:
object - The predicate evaluates to true only when the argument is + this object.
+
+
+
+ +

+anything

+
+public static <T> Matcher<T> anything()
+
+
This matcher always evaluates to true. +

+

+
+
+
+
+ +

+anything

+
+public static <T> Matcher<T> anything(String description)
+
+
This matcher always evaluates to true. +

+

+
Parameters:
description - A meaningful string used when describing itself.
+
+
+
+ +

+any

+
+public static <T> Matcher<T> any(Class<T> type)
+
+
This matcher always evaluates to true. With type inference. +

+

+
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue()
+
+
Matches if value is null. +

+

+
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue(Class<T> type)
+
+
Matches if value is null. With type inference. +

+

+
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue()
+
+
Matches if value is not null. +

+

+
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue(Class<T> type)
+
+
Matches if value is not null. With type inference. +

+

+
+
+
+
+ +

+describedAs

+
+public static <T> Matcher<T> describedAs(String description,
+                                         Matcher<T> matcher,
+                                         Object... values)
+
+
Wraps an existing matcher and overrides the description when it fails. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/Description.html b/javadoc/4.10/org/hamcrest/Description.html new file mode 100644 index 000000000000..484738d9b004 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/Description.html @@ -0,0 +1,355 @@ + + + + + + +Description (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Interface Description

+
+
All Known Implementing Classes:
BaseDescription, StringDescription
+
+
+
+
public interface Description
+ + +

+A description of a Matcher. A Matcher will describe itself to a description + which can later be used for reporting. +

+ +

+

+
See Also:
SelfDescribing.describeTo(Description)
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DescriptionappendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionappendList(String start, + String separator, + String end, + Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionappendText(String text) + +
+          Appends some plain text to the description.
+ DescriptionappendValue(Object value) + +
+          Appends an arbitary value to the description.
+ + + + + +
+<T> Description
+
appendValueList(String start, + String separator, + String end, + Iterable<T> values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
appendValueList(String start, + String separator, + String end, + T... values) + +
+          Appends a list of values to the description.
+  +

+ + + + + + + + +
+Method Detail
+ +

+appendText

+
+Description appendText(String text)
+
+
Appends some plain text to the description. +

+

+
+
+
+
+ +

+appendDescriptionOf

+
+Description appendDescriptionOf(SelfDescribing value)
+
+
Appends the description of a SelfDescribing value to this description. +

+

+
+
+
+
+ +

+appendValue

+
+Description appendValue(Object value)
+
+
Appends an arbitary value to the description. +

+

+
+
+
+
+ +

+appendValueList

+
+<T> Description appendValueList(String start,
+                                String separator,
+                                String end,
+                                T... values)
+
+
Appends a list of values to the description. +

+

+
+
+
+
+ +

+appendValueList

+
+<T> Description appendValueList(String start,
+                                String separator,
+                                String end,
+                                Iterable<T> values)
+
+
Appends a list of values to the description. +

+

+
+
+
+
+ +

+appendList

+
+Description appendList(String start,
+                       String separator,
+                       String end,
+                       Iterable<? extends SelfDescribing> values)
+
+
Appends a list of SelfDescribing objects + to the description. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/Factory.html b/javadoc/4.10/org/hamcrest/Factory.html new file mode 100644 index 000000000000..e3844c836caf --- /dev/null +++ b/javadoc/4.10/org/hamcrest/Factory.html @@ -0,0 +1,172 @@ + + + + + + +Factory (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Annotation Type Factory

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public @interface Factory
+ + +

+Marks a Hamcrest static factory method so tools recognise them. + A factory method is an equivalent to a named constructor. +

+ +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/Matcher.html b/javadoc/4.10/org/hamcrest/Matcher.html new file mode 100644 index 000000000000..b2c6a3bd013c --- /dev/null +++ b/javadoc/4.10/org/hamcrest/Matcher.html @@ -0,0 +1,274 @@ + + + + + + +Matcher (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Interface Matcher<T>

+
+
All Superinterfaces:
SelfDescribing
+
+
+
All Known Implementing Classes:
AllOf, AnyOf, BaseMatcher, DescribedAs, Is, IsAnything, IsEqual, IsInstanceOf, IsNot, IsNull, IsSame
+
+
+
+
public interface Matcher<T>
extends SelfDescribing
+ + +

+A matcher over acceptable values. + A matcher is able to describe itself to give feedback when it fails. +

+ Matcher implementations should NOT directly implement this interface. + Instead, extend the BaseMatcher abstract class, + which will ensure that the Matcher API can grow to support + new features and remain compatible with all Matcher implementations. +

+ For easy access to common Matcher implementations, use the static factory + methods in CoreMatchers. +

+ +

+

+
See Also:
CoreMatchers, +BaseMatcher
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ void_dont_implement_Matcher___instead_extend_BaseMatcher_() + +
+          This method simply acts a friendly reminder not to implement Matcher directly and + instead extend BaseMatcher.
+ booleanmatches(Object item) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
+  +

+ + + + + + + + +
+Method Detail
+ +

+matches

+
+boolean matches(Object item)
+
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
+
+
+
Parameters:
item - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+_dont_implement_Matcher___instead_extend_BaseMatcher_

+
+void _dont_implement_Matcher___instead_extend_BaseMatcher_()
+
+
This method simply acts a friendly reminder not to implement Matcher directly and + instead extend BaseMatcher. It's easy to ignore JavaDoc, but a bit harder to ignore + compile errors . +

+

+
+
+
+
See Also:
for reasons why., +BaseMatcher
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/SelfDescribing.html b/javadoc/4.10/org/hamcrest/SelfDescribing.html new file mode 100644 index 000000000000..36cbd8110833 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/SelfDescribing.html @@ -0,0 +1,218 @@ + + + + + + +SelfDescribing (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Interface SelfDescribing

+
+
All Known Subinterfaces:
Matcher<T>
+
+
+
All Known Implementing Classes:
AllOf, AnyOf, BaseMatcher, DescribedAs, Is, IsAnything, IsEqual, IsInstanceOf, IsNot, IsNull, IsSame, SelfDescribingValue
+
+
+
+
public interface SelfDescribing
+ + +

+The ability of an object to describe itself. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+  +

+ + + + + + + + +
+Method Detail
+ +

+describeTo

+
+void describeTo(Description description)
+
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/StringDescription.html b/javadoc/4.10/org/hamcrest/StringDescription.html new file mode 100644 index 000000000000..cd0d1de641c5 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/StringDescription.html @@ -0,0 +1,381 @@ + + + + + + +StringDescription (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class StringDescription

+
+java.lang.Object
+  extended by org.hamcrest.BaseDescription
+      extended by org.hamcrest.StringDescription
+
+
+
All Implemented Interfaces:
Description
+
+
+
+
public class StringDescription
extends BaseDescription
+ + +

+A Description that is stored as a string. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
StringDescription() + +
+           
StringDescription(Appendable out) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidappend(char c) + +
+          Append the char c to the description.
+protected  voidappend(String str) + +
+          Append the String str to the description.
+static StringasString(SelfDescribing selfDescribing) + +
+          Alias for toString(SelfDescribing).
+ StringtoString() + +
+          Returns the description as a string.
+static StringtoString(SelfDescribing value) + +
+          Return the description of a SelfDescribing object as a String.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseDescription
appendDescriptionOf, appendList, appendText, appendValue, appendValueList, appendValueList
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StringDescription

+
+public StringDescription()
+
+
+
+ +

+StringDescription

+
+public StringDescription(Appendable out)
+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public static String toString(SelfDescribing value)
+
+
Return the description of a SelfDescribing object as a String. +

+

+
Parameters:
selfDescribing - The object to be described. +
Returns:
The description of the object.
+
+
+
+ +

+asString

+
+public static String asString(SelfDescribing selfDescribing)
+
+
Alias for toString(SelfDescribing). +

+

+
+
+
+
+ +

+append

+
+protected void append(String str)
+
+
Description copied from class: BaseDescription
+
Append the String str to the description. + The default implementation passes every character to BaseDescription.append(char). + Override in subclasses to provide an efficient implementation. +

+

+
Overrides:
append in class BaseDescription
+
+
+
+
+
+
+ +

+append

+
+protected void append(char c)
+
+
Description copied from class: BaseDescription
+
Append the char c to the description. +

+

+
Specified by:
append in class BaseDescription
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
Returns the description as a string. +

+

+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/AllOf.html b/javadoc/4.10/org/hamcrest/core/AllOf.html new file mode 100644 index 000000000000..67dbede63d8c --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/AllOf.html @@ -0,0 +1,358 @@ + + + + + + +AllOf (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class AllOf<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.AllOf<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class AllOf<T>
extends BaseMatcher<T>
+ + +

+Calculates the logical conjunction of two matchers. Evaluation is + shortcut, so that the second matcher is not called if the first + matcher returns false. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AllOf(Iterable<Matcher<? extends T>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
allOf(Iterable<Matcher<? extends T>> matchers) + +
+          Evaluates to true only if ALL of the passed in matchers evaluate to true.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? extends T>... matchers) + +
+          Evaluates to true only if ALL of the passed in matchers evaluate to true.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object o) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AllOf

+
+public AllOf(Iterable<Matcher<? extends T>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object o)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
o - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? extends T>... matchers)
+
+
Evaluates to true only if ALL of the passed in matchers evaluate to true. +

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Iterable<Matcher<? extends T>> matchers)
+
+
Evaluates to true only if ALL of the passed in matchers evaluate to true. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/AnyOf.html b/javadoc/4.10/org/hamcrest/core/AnyOf.html new file mode 100644 index 000000000000..de0eebbf4cc8 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/AnyOf.html @@ -0,0 +1,358 @@ + + + + + + +AnyOf (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class AnyOf<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.AnyOf<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class AnyOf<T>
extends BaseMatcher<T>
+ + +

+Calculates the logical disjunction of two matchers. Evaluation is + shortcut, so that the second matcher is not called if the first + matcher returns true. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AnyOf(Iterable<Matcher<? extends T>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
anyOf(Iterable<Matcher<? extends T>> matchers) + +
+          Evaluates to true if ANY of the passed in matchers evaluate to true.
+static + + + + +
+<T> Matcher<T>
+
anyOf(Matcher<? extends T>... matchers) + +
+          Evaluates to true if ANY of the passed in matchers evaluate to true.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object o) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AnyOf

+
+public AnyOf(Iterable<Matcher<? extends T>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object o)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
o - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+anyOf

+
+public static <T> Matcher<T> anyOf(Matcher<? extends T>... matchers)
+
+
Evaluates to true if ANY of the passed in matchers evaluate to true. +

+

+
+
+
+
+ +

+anyOf

+
+public static <T> Matcher<T> anyOf(Iterable<Matcher<? extends T>> matchers)
+
+
Evaluates to true if ANY of the passed in matchers evaluate to true. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/DescribedAs.html b/javadoc/4.10/org/hamcrest/core/DescribedAs.html new file mode 100644 index 000000000000..e96059f9a952 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/DescribedAs.html @@ -0,0 +1,336 @@ + + + + + + +DescribedAs (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class DescribedAs<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.DescribedAs<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class DescribedAs<T>
extends BaseMatcher<T>
+ + +

+Provides a custom description to another matcher. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DescribedAs(String descriptionTemplate, + Matcher<T> matcher, + Object[] values) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
describedAs(String description, + Matcher<T> matcher, + Object... values) + +
+          Wraps an existing matcher and overrides the description when it fails.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object o) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+DescribedAs

+
+public DescribedAs(String descriptionTemplate,
+                   Matcher<T> matcher,
+                   Object[] values)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object o)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
o - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+describedAs

+
+public static <T> Matcher<T> describedAs(String description,
+                                         Matcher<T> matcher,
+                                         Object... values)
+
+
Wraps an existing matcher and overrides the description when it fails. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/Is.html b/javadoc/4.10/org/hamcrest/core/Is.html new file mode 100644 index 000000000000..191a9c47fa16 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/Is.html @@ -0,0 +1,392 @@ + + + + + + +Is (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class Is<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.Is<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class Is<T>
extends BaseMatcher<T>
+ + +

+Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive. + + eg. assertThat(cheese, equalTo(smelly)) + vs assertThat(cheese, is(equalTo(smelly))) +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Is(Matcher<T> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<Object>is(Class<?> type) + +
+          This is a shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static + + + + +
+<T> Matcher<T>
+
is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
is(T value) + +
+          This is a shortcut to the frequently used is(equalTo(x)).
+ booleanmatches(Object arg) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Is

+
+public Is(Matcher<T> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object arg)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
arg - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(Matcher<T> matcher)
+
+
Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive. + + eg. assertThat(cheese, equalTo(smelly)) + vs assertThat(cheese, is(equalTo(smelly))) +

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(T value)
+
+
This is a shortcut to the frequently used is(equalTo(x)). + + eg. assertThat(cheese, is(equalTo(smelly))) + vs assertThat(cheese, is(smelly)) +

+

+
+
+
+
+ +

+is

+
+public static Matcher<Object> is(Class<?> type)
+
+
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). + + eg. assertThat(cheese, is(instanceOf(Cheddar.class))) + vs assertThat(cheese, is(Cheddar.class)) +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/IsAnything.html b/javadoc/4.10/org/hamcrest/core/IsAnything.html new file mode 100644 index 000000000000..96be8ceb3496 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/IsAnything.html @@ -0,0 +1,398 @@ + + + + + + +IsAnything (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsAnything<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.IsAnything<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class IsAnything<T>
extends BaseMatcher<T>
+ + +

+A matcher that always returns true. +

+ +

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
IsAnything() + +
+           
IsAnything(String description) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
any(Class<T> type) + +
+          This matcher always evaluates to true.
+static + + + + +
+<T> Matcher<T>
+
anything() + +
+          This matcher always evaluates to true.
+static + + + + +
+<T> Matcher<T>
+
anything(String description) + +
+          This matcher always evaluates to true.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object o) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsAnything

+
+public IsAnything()
+
+
+
+ +

+IsAnything

+
+public IsAnything(String description)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object o)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
o - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+anything

+
+public static <T> Matcher<T> anything()
+
+
This matcher always evaluates to true. +

+

+
+
+
+
+ +

+anything

+
+public static <T> Matcher<T> anything(String description)
+
+
This matcher always evaluates to true. +

+

+
Parameters:
description - A meaningful string used when describing itself.
+
+
+
+ +

+any

+
+public static <T> Matcher<T> any(Class<T> type)
+
+
This matcher always evaluates to true. With type inference. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/IsEqual.html b/javadoc/4.10/org/hamcrest/core/IsEqual.html new file mode 100644 index 000000000000..6ac7a208921d --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/IsEqual.html @@ -0,0 +1,331 @@ + + + + + + +IsEqual (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsEqual<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.IsEqual<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class IsEqual<T>
extends BaseMatcher<T>
+ + +

+Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod? +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEqual(T equalArg) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T>
+
equalTo(T operand) + +
+          Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod?
+ booleanmatches(Object arg) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsEqual

+
+public IsEqual(T equalArg)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object arg)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
arg - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+equalTo

+
+public static <T> Matcher<T> equalTo(T operand)
+
+
Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod? +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/IsInstanceOf.html b/javadoc/4.10/org/hamcrest/core/IsInstanceOf.html new file mode 100644 index 000000000000..4babcb91d506 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/IsInstanceOf.html @@ -0,0 +1,326 @@ + + + + + + +IsInstanceOf (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsInstanceOf

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<Object>
+      extended by org.hamcrest.core.IsInstanceOf
+
+
+
All Implemented Interfaces:
Matcher<Object>, SelfDescribing
+
+
+
+
public class IsInstanceOf
extends BaseMatcher<Object>
+ + +

+Tests whether the value is an instance of a class. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsInstanceOf(Class<?> theClass) + +
+          Creates a new instance of IsInstanceOf
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<Object>instanceOf(Class<?> type) + +
+          Is the value an instance of a particular type?
+ booleanmatches(Object item) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsInstanceOf

+
+public IsInstanceOf(Class<?> theClass)
+
+
Creates a new instance of IsInstanceOf +

+

+
Parameters:
theClass - The predicate evaluates to true for instances of this class + or one of its subclasses.
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object item)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
item - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+instanceOf

+
+public static Matcher<Object> instanceOf(Class<?> type)
+
+
Is the value an instance of a particular type? +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/IsNot.html b/javadoc/4.10/org/hamcrest/core/IsNot.html new file mode 100644 index 000000000000..35475db2ad35 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/IsNot.html @@ -0,0 +1,359 @@ + + + + + + +IsNot (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsNot<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.IsNot<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class IsNot<T>
extends BaseMatcher<T>
+ + +

+Calculates the logical negation of a matcher. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsNot(Matcher<T> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object arg) + +
+          Evaluates the matcher for argument item.
+static + + + + +
+<T> Matcher<T>
+
not(Matcher<T> matcher) + +
+          Inverts the rule.
+static + + + + +
+<T> Matcher<T>
+
not(T value) + +
+          This is a shortcut to the frequently used not(equalTo(x)).
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsNot

+
+public IsNot(Matcher<T> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object arg)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
arg - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(Matcher<T> matcher)
+
+
Inverts the rule. +

+

+
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(T value)
+
+
This is a shortcut to the frequently used not(equalTo(x)). + + eg. assertThat(cheese, is(not(equalTo(smelly)))) + vs assertThat(cheese, is(not(smelly))) +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/IsNull.html b/javadoc/4.10/org/hamcrest/core/IsNull.html new file mode 100644 index 000000000000..dcfcfa56a352 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/IsNull.html @@ -0,0 +1,412 @@ + + + + + + +IsNull (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsNull<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.IsNull<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class IsNull<T>
extends BaseMatcher<T>
+ + +

+Is the value null? +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsNull() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object o) + +
+          Evaluates the matcher for argument item.
+static + + + + +
+<T> Matcher<T>
+
notNullValue() + +
+          Matches if value is not null.
+static + + + + +
+<T> Matcher<T>
+
notNullValue(Class<T> type) + +
+          Matches if value is not null.
+static + + + + +
+<T> Matcher<T>
+
nullValue() + +
+          Matches if value is null.
+static + + + + +
+<T> Matcher<T>
+
nullValue(Class<T> type) + +
+          Matches if value is null.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsNull

+
+public IsNull()
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object o)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
o - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue()
+
+
Matches if value is null. +

+

+
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue()
+
+
Matches if value is not null. +

+

+
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue(Class<T> type)
+
+
Matches if value is null. With type inference. +

+

+
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue(Class<T> type)
+
+
Matches if value is not null. With type inference. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/IsSame.html b/javadoc/4.10/org/hamcrest/core/IsSame.html new file mode 100644 index 000000000000..b1f05f764fa4 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/IsSame.html @@ -0,0 +1,329 @@ + + + + + + +IsSame (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsSame<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.core.IsSame<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class IsSame<T>
extends BaseMatcher<T>
+ + +

+Is the value the same object as another value? +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsSame(T object) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(Object arg) + +
+          Evaluates the matcher for argument item.
+static + + + + +
+<T> Matcher<T>
+
sameInstance(T object) + +
+          Creates a new instance of IsSame
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+IsSame

+
+public IsSame(T object)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(Object arg)
+
+
Description copied from interface: Matcher
+
Evaluates the matcher for argument item. +

+ This method matches against Object, instead of the generic type T. This is + because the caller of the Matcher does not know at runtime what the type is + (because of type erasure with Java generics). It is down to the implementations + to check the correct type. +

+

+
Parameters:
arg - the object against which the matcher is evaluated. +
Returns:
true if item matches, otherwise false.
See Also:
BaseMatcher
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+sameInstance

+
+public static <T> Matcher<T> sameInstance(T object)
+
+
Creates a new instance of IsSame +

+

+
Parameters:
object - The predicate evaluates to true only when the argument is + this object.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/package-frame.html b/javadoc/4.10/org/hamcrest/core/package-frame.html new file mode 100644 index 000000000000..7fad875c9904 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/package-frame.html @@ -0,0 +1,50 @@ + + + + + + +org.hamcrest.core (JUnit API) + + + + + + + + + + + +org.hamcrest.core + + + + +
+Classes  + +
+AllOf +
+AnyOf +
+DescribedAs +
+Is +
+IsAnything +
+IsEqual +
+IsInstanceOf +
+IsNot +
+IsNull +
+IsSame
+ + + + diff --git a/javadoc/4.10/org/hamcrest/core/package-summary.html b/javadoc/4.10/org/hamcrest/core/package-summary.html new file mode 100644 index 000000000000..18be90f4ca77 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/package-summary.html @@ -0,0 +1,208 @@ + + + + + + +org.hamcrest.core (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.core +

+Fundamental matchers of objects and values, and composite matchers. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AllOf<T>Calculates the logical conjunction of two matchers.
AnyOf<T>Calculates the logical disjunction of two matchers.
DescribedAs<T>Provides a custom description to another matcher.
Is<T>Decorates another Matcher, retaining the behavior but allowing tests + to be slightly more expressive.
IsAnything<T>A matcher that always returns true.
IsEqual<T>Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod?
IsInstanceOfTests whether the value is an instance of a class.
IsNot<T>Calculates the logical negation of a matcher.
IsNull<T>Is the value null?
IsSame<T>Is the value the same object as another value?
+  + +

+

+Package org.hamcrest.core Description +

+ +

+

Fundamental matchers of objects and values, and composite matchers.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/core/package-tree.html b/javadoc/4.10/org/hamcrest/core/package-tree.html new file mode 100644 index 000000000000..53f92b6223a1 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/core/package-tree.html @@ -0,0 +1,154 @@ + + + + + + +org.hamcrest.core Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.core +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/internal/ArrayIterator.html b/javadoc/4.10/org/hamcrest/internal/ArrayIterator.html new file mode 100644 index 000000000000..9022d27a5f5c --- /dev/null +++ b/javadoc/4.10/org/hamcrest/internal/ArrayIterator.html @@ -0,0 +1,300 @@ + + + + + + +ArrayIterator (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.internal +
+Class ArrayIterator

+
+java.lang.Object
+  extended by org.hamcrest.internal.ArrayIterator
+
+
+
All Implemented Interfaces:
Iterator<Object>
+
+
+
+
public class ArrayIterator
extends Object
implements Iterator<Object>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ArrayIterator(Object array) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhasNext() + +
+           
+ Objectnext() + +
+           
+ voidremove() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ArrayIterator

+
+public ArrayIterator(Object array)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hasNext

+
+public boolean hasNext()
+
+
+
Specified by:
hasNext in interface Iterator<Object>
+
+
+
+
+
+
+ +

+next

+
+public Object next()
+
+
+
Specified by:
next in interface Iterator<Object>
+
+
+
+
+
+
+ +

+remove

+
+public void remove()
+
+
+
Specified by:
remove in interface Iterator<Object>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/internal/SelfDescribingValue.html b/javadoc/4.10/org/hamcrest/internal/SelfDescribingValue.html new file mode 100644 index 000000000000..ff1250f515af --- /dev/null +++ b/javadoc/4.10/org/hamcrest/internal/SelfDescribingValue.html @@ -0,0 +1,261 @@ + + + + + + +SelfDescribingValue (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.internal +
+Class SelfDescribingValue<T>

+
+java.lang.Object
+  extended by org.hamcrest.internal.SelfDescribingValue<T>
+
+
+
All Implemented Interfaces:
SelfDescribing
+
+
+
+
public class SelfDescribingValue<T>
extends Object
implements SelfDescribing
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
SelfDescribingValue(T value) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SelfDescribingValue

+
+public SelfDescribingValue(T value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+describeTo

+
+public void describeTo(Description description)
+
+
Description copied from interface: SelfDescribing
+
Generates a description of the object. The description may be part of a + a description of a larger object of which this is just a component, so it + should be worded appropriately. +

+

+
Specified by:
describeTo in interface SelfDescribing
+
+
+
Parameters:
description - The description to be built or appended to.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/internal/SelfDescribingValueIterator.html b/javadoc/4.10/org/hamcrest/internal/SelfDescribingValueIterator.html new file mode 100644 index 000000000000..1c923d0a4ac5 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/internal/SelfDescribingValueIterator.html @@ -0,0 +1,300 @@ + + + + + + +SelfDescribingValueIterator (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.internal +
+Class SelfDescribingValueIterator<T>

+
+java.lang.Object
+  extended by org.hamcrest.internal.SelfDescribingValueIterator<T>
+
+
+
All Implemented Interfaces:
Iterator<SelfDescribing>
+
+
+
+
public class SelfDescribingValueIterator<T>
extends Object
implements Iterator<SelfDescribing>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
SelfDescribingValueIterator(Iterator<T> values) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhasNext() + +
+           
+ SelfDescribingnext() + +
+           
+ voidremove() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+SelfDescribingValueIterator

+
+public SelfDescribingValueIterator(Iterator<T> values)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hasNext

+
+public boolean hasNext()
+
+
+
Specified by:
hasNext in interface Iterator<SelfDescribing>
+
+
+
+
+
+
+ +

+next

+
+public SelfDescribing next()
+
+
+
Specified by:
next in interface Iterator<SelfDescribing>
+
+
+
+
+
+
+ +

+remove

+
+public void remove()
+
+
+
Specified by:
remove in interface Iterator<SelfDescribing>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/internal/package-frame.html b/javadoc/4.10/org/hamcrest/internal/package-frame.html new file mode 100644 index 000000000000..6ea63422fc7f --- /dev/null +++ b/javadoc/4.10/org/hamcrest/internal/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.hamcrest.internal (JUnit API) + + + + + + + + + + + +org.hamcrest.internal + + + + +
+Classes  + +
+ArrayIterator +
+SelfDescribingValue +
+SelfDescribingValueIterator
+ + + + diff --git a/javadoc/4.10/org/hamcrest/internal/package-summary.html b/javadoc/4.10/org/hamcrest/internal/package-summary.html new file mode 100644 index 000000000000..50839ad99f9e --- /dev/null +++ b/javadoc/4.10/org/hamcrest/internal/package-summary.html @@ -0,0 +1,163 @@ + + + + + + +org.hamcrest.internal (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.internal +

+ + + + + + + + + + + + + + + + + +
+Class Summary
ArrayIterator 
SelfDescribingValue<T> 
SelfDescribingValueIterator<T> 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/internal/package-tree.html b/javadoc/4.10/org/hamcrest/internal/package-tree.html new file mode 100644 index 000000000000..dd46b753376c --- /dev/null +++ b/javadoc/4.10/org/hamcrest/internal/package-tree.html @@ -0,0 +1,154 @@ + + + + + + +org.hamcrest.internal Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.internal +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/package-frame.html b/javadoc/4.10/org/hamcrest/package-frame.html new file mode 100644 index 000000000000..872a7ec8f377 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/package-frame.html @@ -0,0 +1,64 @@ + + + + + + +org.hamcrest (JUnit API) + + + + + + + + + + + +org.hamcrest + + + + +
+Interfaces  + +
+Description +
+Matcher +
+SelfDescribing
+ + + + + + +
+Classes  + +
+BaseDescription +
+BaseMatcher +
+CoreMatchers +
+StringDescription
+ + + + + + +
+Annotation Types  + +
+Factory
+ + + + diff --git a/javadoc/4.10/org/hamcrest/package-summary.html b/javadoc/4.10/org/hamcrest/package-summary.html new file mode 100644 index 000000000000..3c2490c9a4c5 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/package-summary.html @@ -0,0 +1,220 @@ + + + + + + +org.hamcrest (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest +

+The stable API defining Matcher and its associated interfaces and classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Interface Summary
DescriptionA description of a Matcher.
Matcher<T>A matcher over acceptable values.
SelfDescribingThe ability of an object to describe itself.
+  + +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
BaseDescriptionA Description that is stored as a string.
BaseMatcher<T>BaseClass for all Matcher implementations.
CoreMatchers 
StringDescriptionA Description that is stored as a string.
+  + +

+ + + + + + + + + +
+Annotation Types Summary
FactoryMarks a Hamcrest static factory method so tools recognise them.
+  + +

+

+Package org.hamcrest Description +

+ +

+

The stable API defining Matcher and its associated interfaces and classes. + Hamcrest sub-projects define their convenience classes in the org.hamcrest package. +

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/hamcrest/package-tree.html b/javadoc/4.10/org/hamcrest/package-tree.html new file mode 100644 index 000000000000..fc7f80b58ef4 --- /dev/null +++ b/javadoc/4.10/org/hamcrest/package-tree.html @@ -0,0 +1,168 @@ + + + + + + +org.hamcrest Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/After.html b/javadoc/4.10/org/junit/After.html new file mode 100644 index 000000000000..1c187e5f50db --- /dev/null +++ b/javadoc/4.10/org/junit/After.html @@ -0,0 +1,195 @@ + + + + + + +After (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type After

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public @interface After
+ + +

+

If you allocate external resources in a Before method you need to release them + after the test runs. Annotating a public void method + with @After causes that method to be run after the Test method. All @After + methods are guaranteed to run even if a Before or Test method throws an + exception. The @After methods declared in superclasses will be run after those of the current + class.

+ + Here is a simple example: +
+ public class Example {
+    File output;
+    @Before public void createOutputFile() {
+          output= new File(...);
+    }
+    @Test public void something() {
+          ...
+    }
+    @After public void deleteOutputFile() {
+          output.delete();
+    }
+ }
+ 
+

+ +

+

+
See Also:
Before, +Test
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/AfterClass.html b/javadoc/4.10/org/junit/AfterClass.html new file mode 100644 index 000000000000..206a04dbf519 --- /dev/null +++ b/javadoc/4.10/org/junit/AfterClass.html @@ -0,0 +1,198 @@ + + + + + + +AfterClass (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type AfterClass

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public @interface AfterClass
+ + +

+

If you allocate expensive external resources in a BeforeClass method you need to release them + after all the tests in the class have run. Annotating a public static void method + with @AfterClass causes that method to be run after all the tests in the class have been run. All @AfterClass + methods are guaranteed to run even if a BeforeClass method throws an + exception. The @AfterClass methods declared in superclasses will be run after those of the current + class.

+ + Here is a simple example: +
+ public class Example {
+    private static DatabaseConnection database;
+    @BeforeClass public static void login() {
+          database= ...;
+    }
+    @Test public void something() {
+          ...
+    }
+    @Test public void somethingElse() {
+          ...
+    }
+    @AfterClass public static void logout() {
+          database.logout();
+    }
+ }
+ 
+

+ +

+

+
See Also:
BeforeClass, +Test
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Assert.html b/javadoc/4.10/org/junit/Assert.html new file mode 100644 index 000000000000..ff2baf885819 --- /dev/null +++ b/javadoc/4.10/org/junit/Assert.html @@ -0,0 +1,1418 @@ + + + + + + +Assert (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Class Assert

+
+java.lang.Object
+  extended by org.junit.Assert
+
+
+
+
public class Assert
extends Object
+ + +

+A set of assertion methods useful for writing tests. Only failed assertions + are recorded. These methods can be used directly: + Assert.assertEquals(...), however, they read better if they + are referenced through static import:
+ +

+ import static org.junit.Assert.*;
+    ...
+    assertEquals(...);
+ 
+

+ +

+

+
See Also:
AssertionError
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected Assert() + +
+          Protect constructor since it is a static only class
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidassertArrayEquals(byte[] expecteds, + byte[] actuals) + +
+          Asserts that two byte arrays are equal.
+static voidassertArrayEquals(char[] expecteds, + char[] actuals) + +
+          Asserts that two char arrays are equal.
+static voidassertArrayEquals(double[] expecteds, + double[] actuals, + double delta) + +
+          Asserts that two double arrays are equal.
+static voidassertArrayEquals(float[] expecteds, + float[] actuals, + float delta) + +
+          Asserts that two float arrays are equal.
+static voidassertArrayEquals(int[] expecteds, + int[] actuals) + +
+          Asserts that two int arrays are equal.
+static voidassertArrayEquals(long[] expecteds, + long[] actuals) + +
+          Asserts that two long arrays are equal.
+static voidassertArrayEquals(Object[] expecteds, + Object[] actuals) + +
+          Asserts that two object arrays are equal.
+static voidassertArrayEquals(short[] expecteds, + short[] actuals) + +
+          Asserts that two short arrays are equal.
+static voidassertArrayEquals(String message, + byte[] expecteds, + byte[] actuals) + +
+          Asserts that two byte arrays are equal.
+static voidassertArrayEquals(String message, + char[] expecteds, + char[] actuals) + +
+          Asserts that two char arrays are equal.
+static voidassertArrayEquals(String message, + double[] expecteds, + double[] actuals, + double delta) + +
+          Asserts that two double arrays are equal.
+static voidassertArrayEquals(String message, + float[] expecteds, + float[] actuals, + float delta) + +
+          Asserts that two float arrays are equal.
+static voidassertArrayEquals(String message, + int[] expecteds, + int[] actuals) + +
+          Asserts that two int arrays are equal.
+static voidassertArrayEquals(String message, + long[] expecteds, + long[] actuals) + +
+          Asserts that two long arrays are equal.
+static voidassertArrayEquals(String message, + Object[] expecteds, + Object[] actuals) + +
+          Asserts that two object arrays are equal.
+static voidassertArrayEquals(String message, + short[] expecteds, + short[] actuals) + +
+          Asserts that two short arrays are equal.
+static voidassertEquals(double expected, + double actual) + +
+          Deprecated. Use + assertEquals(double expected, double actual, double delta) + instead
+static voidassertEquals(double expected, + double actual, + double delta) + +
+          Asserts that two doubles or floats are equal to within a positive delta.
+static voidassertEquals(long expected, + long actual) + +
+          Asserts that two longs are equal.
+static voidassertEquals(Object[] expecteds, + Object[] actuals) + +
+          Deprecated. use assertArrayEquals
+static voidassertEquals(Object expected, + Object actual) + +
+          Asserts that two objects are equal.
+static voidassertEquals(String message, + double expected, + double actual) + +
+          Deprecated. Use + assertEquals(String message, double expected, double actual, double delta) + instead
+static voidassertEquals(String message, + double expected, + double actual, + double delta) + +
+          Asserts that two doubles or floats are equal to within a positive delta.
+static voidassertEquals(String message, + long expected, + long actual) + +
+          Asserts that two longs are equal.
+static voidassertEquals(String message, + Object[] expecteds, + Object[] actuals) + +
+          Deprecated. use assertArrayEquals
+static voidassertEquals(String message, + Object expected, + Object actual) + +
+          Asserts that two objects are equal.
+static voidassertFalse(boolean condition) + +
+          Asserts that a condition is false.
+static voidassertFalse(String message, + boolean condition) + +
+          Asserts that a condition is false.
+static voidassertNotNull(Object object) + +
+          Asserts that an object isn't null.
+static voidassertNotNull(String message, + Object object) + +
+          Asserts that an object isn't null.
+static voidassertNotSame(Object unexpected, + Object actual) + +
+          Asserts that two objects do not refer to the same object.
+static voidassertNotSame(String message, + Object unexpected, + Object actual) + +
+          Asserts that two objects do not refer to the same object.
+static voidassertNull(Object object) + +
+          Asserts that an object is null.
+static voidassertNull(String message, + Object object) + +
+          Asserts that an object is null.
+static voidassertSame(Object expected, + Object actual) + +
+          Asserts that two objects refer to the same object.
+static voidassertSame(String message, + Object expected, + Object actual) + +
+          Asserts that two objects refer to the same object.
+static + + + + +
+<T> void
+
assertThat(String reason, + T actual, + Matcher<T> matcher) + +
+          Asserts that actual satisfies the condition specified by + matcher.
+static + + + + +
+<T> void
+
assertThat(T actual, + Matcher<T> matcher) + +
+          Asserts that actual satisfies the condition specified by + matcher.
+static voidassertTrue(boolean condition) + +
+          Asserts that a condition is true.
+static voidassertTrue(String message, + boolean condition) + +
+          Asserts that a condition is true.
+static voidfail() + +
+          Fails a test with no message.
+static voidfail(String message) + +
+          Fails a test with the given message.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Assert

+
+protected Assert()
+
+
Protect constructor since it is a static only class +

+

+ + + + + + + + +
+Method Detail
+ +

+assertTrue

+
+public static void assertTrue(String message,
+                              boolean condition)
+
+
Asserts that a condition is true. If it isn't it throws an + AssertionError with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
condition - condition to be checked
+
+
+
+ +

+assertTrue

+
+public static void assertTrue(boolean condition)
+
+
Asserts that a condition is true. If it isn't it throws an + AssertionError without a message. +

+

+
Parameters:
condition - condition to be checked
+
+
+
+ +

+assertFalse

+
+public static void assertFalse(String message,
+                               boolean condition)
+
+
Asserts that a condition is false. If it isn't it throws an + AssertionError with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
condition - condition to be checked
+
+
+
+ +

+assertFalse

+
+public static void assertFalse(boolean condition)
+
+
Asserts that a condition is false. If it isn't it throws an + AssertionError without a message. +

+

+
Parameters:
condition - condition to be checked
+
+
+
+ +

+fail

+
+public static void fail(String message)
+
+
Fails a test with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
See Also:
AssertionError
+
+
+
+ +

+fail

+
+public static void fail()
+
+
Fails a test with no message. +

+

+
+
+
+
+ +

+assertEquals

+
+public static void assertEquals(String message,
+                                Object expected,
+                                Object actual)
+
+
Asserts that two objects are equal. If they are not, an + AssertionError is thrown with the given message. If + expected and actual are null, + they are considered equal. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expected - expected value
actual - actual value
+
+
+
+ +

+assertEquals

+
+public static void assertEquals(Object expected,
+                                Object actual)
+
+
Asserts that two objects are equal. If they are not, an + AssertionError without a message is thrown. If + expected and actual are null, + they are considered equal. +

+

+
Parameters:
expected - expected value
actual - the value to check against expected
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     Object[] expecteds,
+                                     Object[] actuals)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two object arrays are equal. If they are not, an + AssertionError is thrown with the given message. If + expecteds and actuals are null, + they are considered equal. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - Object array or array of arrays (multi-dimensional array) with + expected values.
actuals - Object array or array of arrays (multi-dimensional array) with + actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(Object[] expecteds,
+                                     Object[] actuals)
+
+
Asserts that two object arrays are equal. If they are not, an + AssertionError is thrown. If expected and + actual are null, they are considered + equal. +

+

+
Parameters:
expecteds - Object array or array of arrays (multi-dimensional array) with + expected values
actuals - Object array or array of arrays (multi-dimensional array) with + actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     byte[] expecteds,
+                                     byte[] actuals)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two byte arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - byte array with expected values.
actuals - byte array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(byte[] expecteds,
+                                     byte[] actuals)
+
+
Asserts that two byte arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - byte array with expected values.
actuals - byte array with actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     char[] expecteds,
+                                     char[] actuals)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two char arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - char array with expected values.
actuals - char array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(char[] expecteds,
+                                     char[] actuals)
+
+
Asserts that two char arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - char array with expected values.
actuals - char array with actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     short[] expecteds,
+                                     short[] actuals)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two short arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - short array with expected values.
actuals - short array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(short[] expecteds,
+                                     short[] actuals)
+
+
Asserts that two short arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - short array with expected values.
actuals - short array with actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     int[] expecteds,
+                                     int[] actuals)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two int arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - int array with expected values.
actuals - int array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(int[] expecteds,
+                                     int[] actuals)
+
+
Asserts that two int arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - int array with expected values.
actuals - int array with actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     long[] expecteds,
+                                     long[] actuals)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two long arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - long array with expected values.
actuals - long array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(long[] expecteds,
+                                     long[] actuals)
+
+
Asserts that two long arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - long array with expected values.
actuals - long array with actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     double[] expecteds,
+                                     double[] actuals,
+                                     double delta)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two double arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - double array with expected values.
actuals - double array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(double[] expecteds,
+                                     double[] actuals,
+                                     double delta)
+
+
Asserts that two double arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - double array with expected values.
actuals - double array with actual values
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(String message,
+                                     float[] expecteds,
+                                     float[] actuals,
+                                     float delta)
+                              throws org.junit.internal.ArrayComparisonFailure
+
+
Asserts that two float arrays are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - float array with expected values.
actuals - float array with actual values +
Throws: +
org.junit.internal.ArrayComparisonFailure
+
+
+
+ +

+assertArrayEquals

+
+public static void assertArrayEquals(float[] expecteds,
+                                     float[] actuals,
+                                     float delta)
+
+
Asserts that two float arrays are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expecteds - float array with expected values.
actuals - float array with actual values
+
+
+
+ +

+assertEquals

+
+public static void assertEquals(String message,
+                                double expected,
+                                double actual,
+                                double delta)
+
+
Asserts that two doubles or floats are equal to within a positive delta. + If they are not, an AssertionError is thrown with the given + message. If the expected value is infinity then the delta value is + ignored. NaNs are considered equal: + assertEquals(Double.NaN, Double.NaN, *) passes +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expected - expected value
actual - the value to check against expected
delta - the maximum delta between expected and + actual for which both numbers are still + considered equal.
+
+
+
+ +

+assertEquals

+
+public static void assertEquals(long expected,
+                                long actual)
+
+
Asserts that two longs are equal. If they are not, an + AssertionError is thrown. +

+

+
Parameters:
expected - expected long value.
actual - actual long value
+
+
+
+ +

+assertEquals

+
+public static void assertEquals(String message,
+                                long expected,
+                                long actual)
+
+
Asserts that two longs are equal. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expected - long expected value.
actual - long actual value
+
+
+
+ +

+assertEquals

+
+@Deprecated
+public static void assertEquals(double expected,
+                                           double actual)
+
+
Deprecated. Use + assertEquals(double expected, double actual, double delta) + instead +

+

+
+
+
+
+ +

+assertEquals

+
+@Deprecated
+public static void assertEquals(String message,
+                                           double expected,
+                                           double actual)
+
+
Deprecated. Use + assertEquals(String message, double expected, double actual, double delta) + instead +

+

+
+
+
+
+ +

+assertEquals

+
+public static void assertEquals(double expected,
+                                double actual,
+                                double delta)
+
+
Asserts that two doubles or floats are equal to within a positive delta. + If they are not, an AssertionError is thrown. If the expected + value is infinity then the delta value is ignored.NaNs are considered + equal: assertEquals(Double.NaN, Double.NaN, *) passes +

+

+
Parameters:
expected - expected value
actual - the value to check against expected
delta - the maximum delta between expected and + actual for which both numbers are still + considered equal.
+
+
+
+ +

+assertNotNull

+
+public static void assertNotNull(String message,
+                                 Object object)
+
+
Asserts that an object isn't null. If it is an AssertionError is + thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
object - Object to check or null
+
+
+
+ +

+assertNotNull

+
+public static void assertNotNull(Object object)
+
+
Asserts that an object isn't null. If it is an AssertionError is + thrown. +

+

+
Parameters:
object - Object to check or null
+
+
+
+ +

+assertNull

+
+public static void assertNull(String message,
+                              Object object)
+
+
Asserts that an object is null. If it is not, an AssertionError + is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
object - Object to check or null
+
+
+
+ +

+assertNull

+
+public static void assertNull(Object object)
+
+
Asserts that an object is null. If it isn't an AssertionError is + thrown. +

+

+
Parameters:
object - Object to check or null
+
+
+
+ +

+assertSame

+
+public static void assertSame(String message,
+                              Object expected,
+                              Object actual)
+
+
Asserts that two objects refer to the same object. If they are not, an + AssertionError is thrown with the given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expected - the expected object
actual - the object to compare to expected
+
+
+
+ +

+assertSame

+
+public static void assertSame(Object expected,
+                              Object actual)
+
+
Asserts that two objects refer to the same object. If they are not the + same, an AssertionError without a message is thrown. +

+

+
Parameters:
expected - the expected object
actual - the object to compare to expected
+
+
+
+ +

+assertNotSame

+
+public static void assertNotSame(String message,
+                                 Object unexpected,
+                                 Object actual)
+
+
Asserts that two objects do not refer to the same object. If they do + refer to the same object, an AssertionError is thrown with the + given message. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
unexpected - the object you don't expect
actual - the object to compare to unexpected
+
+
+
+ +

+assertNotSame

+
+public static void assertNotSame(Object unexpected,
+                                 Object actual)
+
+
Asserts that two objects do not refer to the same object. If they do + refer to the same object, an AssertionError without a message is + thrown. +

+

+
Parameters:
unexpected - the object you don't expect
actual - the object to compare to unexpected
+
+
+
+ +

+assertEquals

+
+@Deprecated
+public static void assertEquals(String message,
+                                           Object[] expecteds,
+                                           Object[] actuals)
+
+
Deprecated. use assertArrayEquals +

+

Asserts that two object arrays are equal. If they are not, an + AssertionError is thrown with the given message. If + expecteds and actuals are null, + they are considered equal. +

+

+
Parameters:
message - the identifying message for the AssertionError (null + okay)
expecteds - Object array or array of arrays (multi-dimensional array) with + expected values.
actuals - Object array or array of arrays (multi-dimensional array) with + actual values
+
+
+
+ +

+assertEquals

+
+@Deprecated
+public static void assertEquals(Object[] expecteds,
+                                           Object[] actuals)
+
+
Deprecated. use assertArrayEquals +

+

Asserts that two object arrays are equal. If they are not, an + AssertionError is thrown. If expected and + actual are null, they are considered + equal. +

+

+
Parameters:
expecteds - Object array or array of arrays (multi-dimensional array) with + expected values
actuals - Object array or array of arrays (multi-dimensional array) with + actual values
+
+
+
+ +

+assertThat

+
+public static <T> void assertThat(T actual,
+                                  Matcher<T> matcher)
+
+
Asserts that actual satisfies the condition specified by + matcher. If not, an AssertionError is thrown with + information about the matcher and failing value. Example: + +
+   assertThat(0, is(1)); // fails:
+     // failure message:
+     // expected: is <1> 
+     // got value: <0>
+   assertThat(0, is(not(1))) // passes
+ 
+

+

+
Type Parameters:
T - the static type accepted by the matcher (this can flag obvious + compile-time problems such as assertThat(1, is("a"))
Parameters:
actual - the computed value being compared
matcher - an expression, built of Matchers, specifying allowed + values
See Also:
CoreMatchers, +JUnitMatchers
+
+
+
+ +

+assertThat

+
+public static <T> void assertThat(String reason,
+                                  T actual,
+                                  Matcher<T> matcher)
+
+
Asserts that actual satisfies the condition specified by + matcher. If not, an AssertionError is thrown with + the reason and information about the matcher and failing value. Example: + +
+ :
+   assertThat("Help! Integers don't work", 0, is(1)); // fails:
+     // failure message:
+     // Help! Integers don't work
+     // expected: is <1> 
+     // got value: <0>
+   assertThat("Zero is one", 0, is(not(1))) // passes
+ 
+

+

+
Type Parameters:
T - the static type accepted by the matcher (this can flag obvious + compile-time problems such as assertThat(1, is("a"))
Parameters:
reason - additional information about the error
actual - the computed value being compared
matcher - an expression, built of Matchers, specifying allowed + values
See Also:
CoreMatchers, +JUnitMatchers
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Assume.html b/javadoc/4.10/org/junit/Assume.html new file mode 100644 index 000000000000..a7fe25e7d22d --- /dev/null +++ b/javadoc/4.10/org/junit/Assume.html @@ -0,0 +1,370 @@ + + + + + + +Assume (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Class Assume

+
+java.lang.Object
+  extended by org.junit.Assume
+
+
+
+
public class Assume
extends Object
+ + +

+A set of methods useful for stating assumptions about the conditions in which a test is meaningful. + A failed assumption does not mean the code is broken, but that the test provides no useful information. + The default JUnit runner treats tests with failing assumptions as ignored. Custom runners may behave differently. + + For example: +

+ // only provides information if database is reachable.
+ \@Test public void calculateTotalSalary() {
+    DBConnection dbc = Database.connect();
+    assumeNotNull(dbc);
+    // ...
+ }
+ 
+ These methods can be used directly: Assume.assumeTrue(...), however, they + read better if they are referenced through static import:
+
+ import static org.junit.Assume.*;
+    ...
+    assumeTrue(...);
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Assume() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidassumeNoException(Throwable t) + +
+          Use to assume that an operation completes normally.
+static voidassumeNotNull(Object... objects) + +
+          If called with one or more null elements in objects, the test will halt and be ignored.
+static + + + + +
+<T> void
+
assumeThat(T actual, + Matcher<T> matcher) + +
+          Call to assume that actual satisfies the condition specified by matcher.
+static voidassumeTrue(boolean b) + +
+          If called with an expression evaluating to false, the test will halt and be ignored.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Assume

+
+public Assume()
+
+
+ + + + + + + + +
+Method Detail
+ +

+assumeTrue

+
+public static void assumeTrue(boolean b)
+
+
If called with an expression evaluating to false, the test will halt and be ignored. +

+

+
Parameters:
b -
+
+
+
+ +

+assumeNotNull

+
+public static void assumeNotNull(Object... objects)
+
+
If called with one or more null elements in objects, the test will halt and be ignored. +

+

+
Parameters:
objects -
+
+
+
+ +

+assumeThat

+
+public static <T> void assumeThat(T actual,
+                                  Matcher<T> matcher)
+
+
Call to assume that actual satisfies the condition specified by matcher. + If not, the test halts and is ignored. + Example: +
:
+   assumeThat(1, is(1)); // passes
+   foo(); // will execute
+   assumeThat(0, is(1)); // assumption failure! test halts
+   int x = 1 / 0; // will never execute
+ 
+

+

+
Type Parameters:
T - the static type accepted by the matcher (this can flag obvious compile-time problems such as assumeThat(1, is("a"))
Parameters:
actual - the computed value being compared
matcher - an expression, built of Matchers, specifying allowed values
See Also:
CoreMatchers, +JUnitMatchers
+
+
+
+ +

+assumeNoException

+
+public static void assumeNoException(Throwable t)
+
+
Use to assume that an operation completes normally. If t is non-null, the test will halt and be ignored. + + For example: +
+ \@Test public void parseDataFile() {
+   DataFile file;
+   try {
+     file = DataFile.open("sampledata.txt");
+   } catch (IOException e) {
+     // stop test and ignore if data can't be opened
+     assumeNoException(e);
+   }
+   // ...
+ }
+ 
+

+

+
Parameters:
t - if non-null, the offending exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Before.html b/javadoc/4.10/org/junit/Before.html new file mode 100644 index 000000000000..92ed10721066 --- /dev/null +++ b/javadoc/4.10/org/junit/Before.html @@ -0,0 +1,195 @@ + + + + + + +Before (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type Before

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public @interface Before
+ + +

+

When writing tests, it is common to find that several tests need similar + objects created before they can run. Annotating a public void method + with @Before causes that method to be run before the Test method. + The @Before methods of superclasses will be run before those of the current class. + No other ordering is defined. +

+ + Here is a simple example: +
+ public class Example {
+    List empty;
+    @Before public void initialize() {
+       empty= new ArrayList();
+    }
+    @Test public void size() {
+       ...
+    }
+    @Test public void remove() {
+       ...
+    }
+ }
+ 
+

+ +

+

+
See Also:
BeforeClass, +After
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/BeforeClass.html b/javadoc/4.10/org/junit/BeforeClass.html new file mode 100644 index 000000000000..4b402407e8dc --- /dev/null +++ b/javadoc/4.10/org/junit/BeforeClass.html @@ -0,0 +1,193 @@ + + + + + + +BeforeClass (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type BeforeClass

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public @interface BeforeClass
+ + +

+

Sometimes several tests need to share computationally expensive setup + (like logging into a database). While this can compromise the independence of + tests, sometimes it is a necessary optimization. Annotating a public static void no-arg method + with @BeforeClass causes it to be run once before any of + the test methods in the class. The @BeforeClass methods of superclasses + will be run before those the current class.

+ + For example: +
+ public class Example {
+    @BeforeClass public static void onlyOnce() {
+       ...
+    }
+    @Test public void one() {
+       ...
+    }
+    @Test public void two() {
+       ...
+    }
+ }
+ 
+

+ +

+

+
See Also:
AfterClass
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/ClassRule.html b/javadoc/4.10/org/junit/ClassRule.html new file mode 100644 index 000000000000..43ea7879333d --- /dev/null +++ b/javadoc/4.10/org/junit/ClassRule.html @@ -0,0 +1,217 @@ + + + + + + +ClassRule (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type ClassRule

+
+
+
@Retention(value=RUNTIME)
+@Target(value=FIELD)
+public @interface ClassRule
+ + +

+Annotates static fields that contain rules. Such a field must be public, + static, and a subtype of TestRule. + The Statement passed + to the TestRule will run any BeforeClass methods, + then the entire body of the test class (all contained methods, if it is + a standard JUnit test class, or all contained classes, if it is a + Suite), and finally any AfterClass methods. + + The statement passed to the TestRule will never throw an exception, + and throwing an exception from the TestRule will result in undefined + behavior. This means that some TestRules, such as + ErrorCollector, + ExpectedException, + and Timeout, + have undefined behavior when used as ClassRules. + + If there are multiple + annotated ClassRules on a class, they will be applied in an order + that depends on your JVM's implementation of the reflection API, which is + undefined, in general. + + For example, here is a test suite that connects to a server once before + all the test classes run, and disconnects after they are finished: + +

+ 
+ @RunWith(Suite.class)
+ @SuiteClasses({A.class, B.class, C.class})
+ public class UsesExternalResource {
+        public static Server myServer= new Server();
+ 
+        @ClassRule
+        public static ExternalResource resource= new ExternalResource() {
+                @Override
+                protected void before() throws Throwable {
+                        myServer.connect();
+                };
+ 
+                @Override
+                protected void after() {
+                        myServer.disconnect();
+                };
+        };
+ }
+ 
+ + For more information and more examples, see TestRule. +

+ +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/ComparisonFailure.html b/javadoc/4.10/org/junit/ComparisonFailure.html new file mode 100644 index 000000000000..a260a7092b6a --- /dev/null +++ b/javadoc/4.10/org/junit/ComparisonFailure.html @@ -0,0 +1,334 @@ + + + + + + +ComparisonFailure (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Class ComparisonFailure

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Error
+          extended by java.lang.AssertionError
+              extended by org.junit.ComparisonFailure
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class ComparisonFailure
extends AssertionError
+ + +

+Thrown when an assertEquals(String, String) fails. Create and throw + a ComparisonFailure manually if you want to show users the difference between two complex + strings. + + Inspired by a patch from Alex Chaffee (alex@purpletech.com) +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ComparisonFailure(String message, + String expected, + String actual) + +
+          Constructs a comparison failure.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetActual() + +
+          Returns the actual string value
+ StringgetExpected() + +
+          Returns the expected string value
+ StringgetMessage() + +
+          Returns "..." in place of common prefix and "..." in + place of common suffix between expected and actual.
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ComparisonFailure

+
+public ComparisonFailure(String message,
+                         String expected,
+                         String actual)
+
+
Constructs a comparison failure. +

+

+
Parameters:
message - the identifying message or null
expected - the expected string value
actual - the actual string value
+
+ + + + + + + + +
+Method Detail
+ +

+getMessage

+
+public String getMessage()
+
+
Returns "..." in place of common prefix and "..." in + place of common suffix between expected and actual. +

+

+
Overrides:
getMessage in class Throwable
+
+
+
See Also:
Throwable.getMessage()
+
+
+
+ +

+getActual

+
+public String getActual()
+
+
Returns the actual string value +

+

+ +
Returns:
the actual string value
+
+
+
+ +

+getExpected

+
+public String getExpected()
+
+
Returns the expected string value +

+

+ +
Returns:
the expected string value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Ignore.html b/javadoc/4.10/org/junit/Ignore.html new file mode 100644 index 000000000000..eb9b9acdfba2 --- /dev/null +++ b/javadoc/4.10/org/junit/Ignore.html @@ -0,0 +1,225 @@ + + + + + + +Ignore (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type Ignore

+
+
+
@Retention(value=RUNTIME)
+@Target(value={METHOD,TYPE})
+public @interface Ignore
+ + +

+

Sometimes you want to temporarily disable a test or a group of tests. Methods annotated with + Test that are also annotated with @Ignore will not be executed as tests. + Also, you can annotate a class containing test methods with @Ignore and none of the containing + tests will be executed. Native JUnit 4 test runners should report the number of ignored tests along with the + number of tests that ran and the number of tests that failed.

+ + For example: +
+    @Ignore @Test public void something() { ...
+ 
+ @Ignore takes an optional default parameter if you want to record why a test is being ignored:
+
+    @Ignore("not ready yet") @Test public void something() { ...
+ 
+ @Ignore can also be applied to the test class:
+
+                @Ignore public class IgnoreMe {
+                        @Test public void test1() { ... }
+                        @Test public void test2() { ... }
+                }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Optional Element Summary
+ Stringvalue + +
+          The optional reason why the test is ignored.
+  +

+

+value

+
+public abstract String value
+
+
The optional reason why the test is ignored. +

+

+
+
+
+
+
+
Default:
""
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Rule.html b/javadoc/4.10/org/junit/Rule.html new file mode 100644 index 000000000000..0e265d50b4bc --- /dev/null +++ b/javadoc/4.10/org/junit/Rule.html @@ -0,0 +1,203 @@ + + + + + + +Rule (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type Rule

+
+
+
@Retention(value=RUNTIME)
+@Target(value=FIELD)
+public @interface Rule
+ + +

+Annotates fields that contain rules. Such a field must be public, not + static, and a subtype of TestRule. + The Statement passed + to the TestRule will run any Before methods, + then the Test method, and finally any After methods, + throwing an exception if any of these fail. If there are multiple + annotated Rules on a class, they will be applied in an order + that depends on your JVM's implementation of the reflection API, which is + undefined, in general. + + For example, here is a test class that creates a temporary folder before + each test method, and deletes it after each: + +

+ public static class HasTempFolder {
+        @Rule
+        public TemporaryFolder folder= new TemporaryFolder();
+ 
+        @Test
+        public void testUsingTempFolder() throws IOException {
+                File createdFile= folder.newFile("myfile.txt");
+                File createdFolder= folder.newFolder("subfolder");
+                // ...
+        }
+ }
+ 
+ + For more information and more examples, see + TestRule. + + Note: for backwards compatibility, this annotation may also mark + fields of type MethodRule, which will be honored. However, + this is a deprecated interface and feature. +

+ +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Test.None.html b/javadoc/4.10/org/junit/Test.None.html new file mode 100644 index 000000000000..53a81c1ba3f1 --- /dev/null +++ b/javadoc/4.10/org/junit/Test.None.html @@ -0,0 +1,211 @@ + + + + + + +Test.None (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Class Test.None

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by org.junit.Test.None
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Enclosing class:
Test
+
+
+
+
public static class Test.None
extends Throwable
+ + +

+Default empty exception +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/Test.html b/javadoc/4.10/org/junit/Test.html new file mode 100644 index 000000000000..cf5f5d5217d9 --- /dev/null +++ b/javadoc/4.10/org/junit/Test.html @@ -0,0 +1,269 @@ + + + + + + +Test (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit +
+Annotation Type Test

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public @interface Test
+ + +

+

The Test annotation tells JUnit that the public void method + to which it is attached can be run as a test case. To run the method, + JUnit first constructs a fresh instance of the class then invokes the + annotated method. Any exceptions thrown by the test will be reported + by JUnit as a failure. If no exceptions are thrown, the test is assumed + to have succeeded.

+ +

A simple test looks like this: +

+ public class Example {
+    @Test 
+    public void method() {
+       org.junit.Assert.assertTrue( new ArrayList().isEmpty() );
+    }
+ }
+ 
+

+ +

The Test annotation supports two optional parameters. + The first, expected, declares that a test method should throw + an exception. If it doesn't throw an exception or if it throws a different exception + than the one declared, the test fails. For example, the following test succeeds: +

+    @Test(expected=IndexOutOfBoundsException.class) public void outOfBounds() {
+       new ArrayList<Object>().get(1);
+    }
+ 

+ +

The second optional parameter, timeout, causes a test to fail if it takes + longer than a specified amount of clock time (measured in milliseconds). The following test fails: +

+    @Test(timeout=100) public void infinity() {
+       while(true);
+    }
+ 

+

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Optional Element Summary
+ Class<? extends Throwable>expected + +
+          Optionally specify expected, a Throwable, to cause a test method to succeed iff + an exception of the specified class is thrown by the method.
+ longtimeout + +
+          Optionally specify timeout in milliseconds to cause a test method to fail if it + takes longer than that number of milliseconds.
+  +

+

+expected

+
+public abstract Class<? extends Throwable> expected
+
+
Optionally specify expected, a Throwable, to cause a test method to succeed iff + an exception of the specified class is thrown by the method. +

+

+
+
+
+
+
+
Default:
org.junit.Test.None.class
+
+
+
+ +

+timeout

+
+public abstract long timeout
+
+
Optionally specify timeout in milliseconds to cause a test method to fail if it + takes longer than that number of milliseconds. +

+

+
+
+
+
+
+
Default:
0L
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/ParallelComputer.html b/javadoc/4.10/org/junit/experimental/ParallelComputer.html new file mode 100644 index 000000000000..fc11cf58f297 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/ParallelComputer.html @@ -0,0 +1,342 @@ + + + + + + +ParallelComputer (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental +
+Class ParallelComputer

+
+java.lang.Object
+  extended by org.junit.runner.Computer
+      extended by org.junit.experimental.ParallelComputer
+
+
+
+
public class ParallelComputer
extends Computer
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ParallelComputer(boolean classes, + boolean methods) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Computerclasses() + +
+           
+protected  RunnergetRunner(RunnerBuilder builder, + Class<?> testClass) + +
+          Create a single-class runner for testClass, using builder
+ RunnergetSuite(RunnerBuilder builder, + Class<?>[] classes) + +
+          Create a suite for classes, building Runners with builder.
+static Computermethods() + +
+           
+ + + + + + + +
Methods inherited from class org.junit.runner.Computer
serial
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParallelComputer

+
+public ParallelComputer(boolean classes,
+                        boolean methods)
+
+
+ + + + + + + + +
+Method Detail
+ +

+classes

+
+public static Computer classes()
+
+
+
+
+
+
+ +

+methods

+
+public static Computer methods()
+
+
+
+
+
+
+ +

+getSuite

+
+public Runner getSuite(RunnerBuilder builder,
+                       Class<?>[] classes)
+                throws InitializationError
+
+
Description copied from class: Computer
+
Create a suite for classes, building Runners with builder. + Throws an InitializationError if Runner construction fails +

+

+
Overrides:
getSuite in class Computer
+
+
+ +
Throws: +
InitializationError
+
+
+
+ +

+getRunner

+
+protected Runner getRunner(RunnerBuilder builder,
+                           Class<?> testClass)
+                    throws Throwable
+
+
Description copied from class: Computer
+
Create a single-class runner for testClass, using builder +

+

+
Overrides:
getRunner in class Computer
+
+
+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/Categories.CategoryFilter.html b/javadoc/4.10/org/junit/experimental/categories/Categories.CategoryFilter.html new file mode 100644 index 000000000000..3464f7384839 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/Categories.CategoryFilter.html @@ -0,0 +1,332 @@ + + + + + + +Categories.CategoryFilter (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.categories +
+Class Categories.CategoryFilter

+
+java.lang.Object
+  extended by org.junit.runner.manipulation.Filter
+      extended by org.junit.experimental.categories.Categories.CategoryFilter
+
+
+
Enclosing class:
Categories
+
+
+
+
public static class Categories.CategoryFilter
extends Filter
+ + +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.junit.runner.manipulation.Filter
ALL
+  + + + + + + + + + + +
+Constructor Summary
Categories.CategoryFilter(Class<?> includedCategory, + Class<?> excludedCategory) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Stringdescribe() + +
+          Returns a textual description of this Filter
+static Categories.CategoryFilterinclude(Class<?> categoryType) + +
+           
+ booleanshouldRun(Description description) + +
+           
+ + + + + + + +
Methods inherited from class org.junit.runner.manipulation.Filter
apply, intersect, matchMethodDescription
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Categories.CategoryFilter

+
+public Categories.CategoryFilter(Class<?> includedCategory,
+                                 Class<?> excludedCategory)
+
+
+ + + + + + + + +
+Method Detail
+ +

+include

+
+public static Categories.CategoryFilter include(Class<?> categoryType)
+
+
+
+
+
+
+ +

+describe

+
+public String describe()
+
+
Description copied from class: Filter
+
Returns a textual description of this Filter +

+

+
Specified by:
describe in class Filter
+
+
+ +
Returns:
a textual description of this Filter
+
+
+
+ +

+shouldRun

+
+public boolean shouldRun(Description description)
+
+
+
Specified by:
shouldRun in class Filter
+
+
+
Parameters:
description - the description of the test to be run +
Returns:
true if the test should be run
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/Categories.ExcludeCategory.html b/javadoc/4.10/org/junit/experimental/categories/Categories.ExcludeCategory.html new file mode 100644 index 000000000000..86578af4bec3 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/Categories.ExcludeCategory.html @@ -0,0 +1,206 @@ + + + + + + +Categories.ExcludeCategory (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.categories +
+Annotation Type Categories.ExcludeCategory

+
+
+
@Retention(value=RUNTIME)
+public static @interface Categories.ExcludeCategory
+ + +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ Class<?>value + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+value

+
+public abstract Class<?> value
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/Categories.IncludeCategory.html b/javadoc/4.10/org/junit/experimental/categories/Categories.IncludeCategory.html new file mode 100644 index 000000000000..5e1936653b5a --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/Categories.IncludeCategory.html @@ -0,0 +1,206 @@ + + + + + + +Categories.IncludeCategory (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.categories +
+Annotation Type Categories.IncludeCategory

+
+
+
@Retention(value=RUNTIME)
+public static @interface Categories.IncludeCategory
+ + +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ Class<?>value + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+value

+
+public abstract Class<?> value
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/Categories.html b/javadoc/4.10/org/junit/experimental/categories/Categories.html new file mode 100644 index 000000000000..9a8f0f97b641 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/Categories.html @@ -0,0 +1,351 @@ + + + + + + +Categories (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.categories +
+Class Categories

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<Runner>
+          extended by org.junit.runners.Suite
+              extended by org.junit.experimental.categories.Categories
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
+
public class Categories
extends Suite
+ + +

+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. + + Note that, for now, annotating suites with @Category has no effect. + Categories must be annotated on the direct method or class. + + Example: + +

+ public interface FastTests {
+ }
+        
+ public interface SlowTests {
+ }
+ 
+ public static class A {
+        @Test
+        public void a() {
+                fail();
+        }
+ 
+        @Category(SlowTests.class)
+        @Test
+        public void b() {
+        }
+ }
+ 
+ @Category( { SlowTests.class, FastTests.class })
+ public static class B {
+        @Test
+        public void c() {
+ 
+        }
+ }
+ 
+ @RunWith(Categories.class)
+ @IncludeCategory(SlowTests.class)
+ @SuiteClasses( { A.class, B.class })
+ // Note that Categories is a kind of Suite
+ public static class SlowTestSuite {
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + +
+Nested Class Summary
+static classCategories.CategoryFilter + +
+           
+static interfaceCategories.ExcludeCategory + +
+           
+static interfaceCategories.IncludeCategory + +
+           
+ + + + + + + +
Nested classes/interfaces inherited from class org.junit.runners.Suite
Suite.SuiteClasses
+  + + + + + + + + + + + +
+Constructor Summary
Categories(Class<?> klass, + RunnerBuilder builder) + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, getChildren, runChild
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Categories

+
+public Categories(Class<?> klass,
+                  RunnerBuilder builder)
+           throws InitializationError
+
+
+ +
Throws: +
InitializationError
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/Category.html b/javadoc/4.10/org/junit/experimental/categories/Category.html new file mode 100644 index 000000000000..d08be9ab7163 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/Category.html @@ -0,0 +1,241 @@ + + + + + + +Category (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.categories +
+Annotation Type Category

+
+
+
@Retention(value=RUNTIME)
+public @interface Category
+ + +

+Marks a test class or test method as belonging to one or more categories of tests. + The value is an array of arbitrary classes. + + This annotation is only interpreted by the Categories runner (at present). + + For example: +

+        public interface FastTests {}
+        public interface SlowTests {}
+
+        public static class A {
+                @Test
+                public void a() {
+                        fail();
+                }
+
+                @Category(SlowTests.class)
+                @Test
+                public void b() {
+                }
+        }
+
+        @Category({SlowTests.class, FastTests.class})
+        public static class B {
+                @Test
+                public void c() {
+
+                }
+        }
+
+ + For more usage, see code example on Categories. +

+ +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ Class<?>[]value + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+value

+
+public abstract Class<?>[] value
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/package-frame.html b/javadoc/4.10/org/junit/experimental/categories/package-frame.html new file mode 100644 index 000000000000..be6847815161 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/package-frame.html @@ -0,0 +1,49 @@ + + + + + + +org.junit.experimental.categories (JUnit API) + + + + + + + + + + + +org.junit.experimental.categories + + + + +
+Classes  + +
+Categories +
+Categories.CategoryFilter
+ + + + + + +
+Annotation Types  + +
+Categories.ExcludeCategory +
+Categories.IncludeCategory +
+Category
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/categories/package-summary.html b/javadoc/4.10/org/junit/experimental/categories/package-summary.html new file mode 100644 index 000000000000..8bccfcf52fcc --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/package-summary.html @@ -0,0 +1,183 @@ + + + + + + +org.junit.experimental.categories (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental.categories +

+ + + + + + + + + + + + + +
+Class Summary
CategoriesFrom 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.CategoryFilter 
+  + +

+ + + + + + + + + + + + + + + + + +
+Annotation Types Summary
Categories.ExcludeCategory 
Categories.IncludeCategory 
CategoryMarks a test class or test method as belonging to one or more categories of tests.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/categories/package-tree.html b/javadoc/4.10/org/junit/experimental/categories/package-tree.html new file mode 100644 index 000000000000..79042e86183c --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/categories/package-tree.html @@ -0,0 +1,169 @@ + + + + + + +org.junit.experimental.categories Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental.categories +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/max/CouldNotReadCoreException.html b/javadoc/4.10/org/junit/experimental/max/CouldNotReadCoreException.html new file mode 100644 index 000000000000..ada486808669 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/max/CouldNotReadCoreException.html @@ -0,0 +1,244 @@ + + + + + + +CouldNotReadCoreException (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.max +
+Class CouldNotReadCoreException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.junit.experimental.max.CouldNotReadCoreException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class CouldNotReadCoreException
extends Exception
+ + +

+Thrown when Max cannot read the MaxCore serialization +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CouldNotReadCoreException(Throwable e) + +
+          Constructs
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CouldNotReadCoreException

+
+public CouldNotReadCoreException(Throwable e)
+
+
Constructs +

+

+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/max/MaxCore.html b/javadoc/4.10/org/junit/experimental/max/MaxCore.html new file mode 100644 index 000000000000..53c282d004be --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/max/MaxCore.html @@ -0,0 +1,368 @@ + + + + + + +MaxCore (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.max +
+Class MaxCore

+
+java.lang.Object
+  extended by org.junit.experimental.max.MaxCore
+
+
+
+
public class MaxCore
extends Object
+ + +

+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. + + The rules for sorting are: +

    +
  1. Never-run tests first, in arbitrary order +
  2. Group remaining tests by the date at which they most recently failed. +
  3. Sort groups such that the most recent failure date is first, and never-failing tests are at the end. +
  4. Within a group, run the fastest tests first. +
+

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static MaxCoreforFolder(String folderName) + +
+          Deprecated. use storedLocally()
+ Resultrun(Class<?> testClass) + +
+          Run all the tests in class.
+ Resultrun(Request request) + +
+          Run all the tests contained in request.
+ Resultrun(Request request, + JUnitCore core) + +
+          Run all the tests contained in request.
+ List<Description>sortedLeavesForTest(Request request) + +
+           
+ RequestsortRequest(Request request) + +
+           
+static MaxCorestoredLocally(File storedResults) + +
+          Create a new MaxCore from a serialized file stored at storedResults
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+forFolder

+
+@Deprecated
+public static MaxCore forFolder(String folderName)
+
+
Deprecated. use storedLocally() +

+

Create a new MaxCore from a serialized file stored at storedResults +

+

+
+
+
+
+ +

+storedLocally

+
+public static MaxCore storedLocally(File storedResults)
+
+
Create a new MaxCore from a serialized file stored at storedResults +

+

+
+
+
+
+ +

+run

+
+public Result run(Class<?> testClass)
+
+
Run all the tests in class. +

+

+ +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+run

+
+public Result run(Request request)
+
+
Run all the tests contained in request. +

+

+
Parameters:
request - the request describing tests +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+run

+
+public Result run(Request request,
+                  JUnitCore core)
+
+
Run all the tests contained in request. + + This variant should be used if core has attached listeners that this + run should notify. +

+

+
Parameters:
request - the request describing tests
core - a JUnitCore to delegate to. +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+sortRequest

+
+public Request sortRequest(Request request)
+
+
+
Parameters:
request - +
Returns:
a new Request, which contains all of the same tests, but in a new order.
+
+
+
+ +

+sortedLeavesForTest

+
+public List<Description> sortedLeavesForTest(Request request)
+
+
+
Parameters:
request - a request to run +
Returns:
a list of method-level tests to run, sorted in the order + specified in the class comment.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/max/MaxHistory.html b/javadoc/4.10/org/junit/experimental/max/MaxHistory.html new file mode 100644 index 000000000000..6ee9994d3516 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/max/MaxHistory.html @@ -0,0 +1,285 @@ + + + + + + +MaxHistory (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.max +
+Class MaxHistory

+
+java.lang.Object
+  extended by org.junit.experimental.max.MaxHistory
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class MaxHistory
extends Object
implements Serializable
+ + +

+Stores a subset of the history of each test: +

+

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static MaxHistoryforFolder(File file) + +
+          Loads a MaxHistory from file, or generates a new one that + will be saved to file.
+ RunListenerlistener() + +
+           
+ Comparator<Description>testComparator() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+forFolder

+
+public static MaxHistory forFolder(File file)
+
+
Loads a MaxHistory from file, or generates a new one that + will be saved to file. +

+

+
+
+
+
+
+
+
+ +

+listener

+
+public RunListener listener()
+
+
+
+
+
+ +
Returns:
a listener that will update this history based on the test + results reported.
+
+
+
+ +

+testComparator

+
+public Comparator<Description> testComparator()
+
+
+
+
+
+ +
Returns:
a comparator that ranks tests based on the JUnit Max sorting + rules, as described in the MaxCore class comment.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/max/package-frame.html b/javadoc/4.10/org/junit/experimental/max/package-frame.html new file mode 100644 index 000000000000..77a45cd16d21 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/max/package-frame.html @@ -0,0 +1,45 @@ + + + + + + +org.junit.experimental.max (JUnit API) + + + + + + + + + + + +org.junit.experimental.max + + + + +
+Classes  + +
+MaxCore +
+MaxHistory
+ + + + + + +
+Exceptions  + +
+CouldNotReadCoreException
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/max/package-summary.html b/javadoc/4.10/org/junit/experimental/max/package-summary.html new file mode 100644 index 000000000000..a8802157bb0d --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/max/package-summary.html @@ -0,0 +1,178 @@ + + + + + + +org.junit.experimental.max (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental.max +

+ + + + + + + + + + + + + +
+Class Summary
MaxCoreA 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.
MaxHistoryStores a subset of the history of each test: + + Last failure timestamp + Duration of last execution +
+  + +

+ + + + + + + + + +
+Exception Summary
CouldNotReadCoreExceptionThrown when Max cannot read the MaxCore serialization
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/max/package-tree.html b/javadoc/4.10/org/junit/experimental/max/package-tree.html new file mode 100644 index 000000000000..533a6f13588c --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/max/package-tree.html @@ -0,0 +1,157 @@ + + + + + + +org.junit.experimental.max Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental.max +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/package-frame.html b/javadoc/4.10/org/junit/experimental/package-frame.html new file mode 100644 index 000000000000..84f7cf58e289 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.junit.experimental (JUnit API) + + + + + + + + + + + +org.junit.experimental + + + + +
+Classes  + +
+ParallelComputer
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/package-summary.html b/javadoc/4.10/org/junit/experimental/package-summary.html new file mode 100644 index 000000000000..19b923f0b4bd --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/package-summary.html @@ -0,0 +1,155 @@ + + + + + + +org.junit.experimental (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental +

+ + + + + + + + + +
+Class Summary
ParallelComputer 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/package-tree.html b/javadoc/4.10/org/junit/experimental/package-tree.html new file mode 100644 index 000000000000..4dc72b350cee --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/package-tree.html @@ -0,0 +1,153 @@ + + + + + + +org.junit.experimental Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/results/PrintableResult.html b/javadoc/4.10/org/junit/experimental/results/PrintableResult.html new file mode 100644 index 000000000000..78e9ff513c90 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/results/PrintableResult.html @@ -0,0 +1,328 @@ + + + + + + +PrintableResult (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.results +
+Class PrintableResult

+
+java.lang.Object
+  extended by org.junit.experimental.results.PrintableResult
+
+
+
+
public class PrintableResult
extends Object
+ + +

+A test result that prints nicely in error messages. + This is only intended to be used in JUnit self-tests. + For example: + +

+    assertThat(testResult(HasExpectedException.class), isSuccessful());
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
PrintableResult(List<Failure> failures) + +
+          A result that includes the given failures
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intfailureCount() + +
+          Returns the number of failures in this result.
+static PrintableResulttestResult(Class<?> type) + +
+          The result of running JUnit on type
+static PrintableResulttestResult(Request request) + +
+          The result of running JUnit on Request request
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PrintableResult

+
+public PrintableResult(List<Failure> failures)
+
+
A result that includes the given failures +

+

+ + + + + + + + +
+Method Detail
+ +

+testResult

+
+public static PrintableResult testResult(Class<?> type)
+
+
The result of running JUnit on type +

+

+
+
+
+
+ +

+testResult

+
+public static PrintableResult testResult(Request request)
+
+
The result of running JUnit on Request request +

+

+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+failureCount

+
+public int failureCount()
+
+
Returns the number of failures in this result. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/results/ResultMatchers.html b/javadoc/4.10/org/junit/experimental/results/ResultMatchers.html new file mode 100644 index 000000000000..5cf366c5f25f --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/results/ResultMatchers.html @@ -0,0 +1,326 @@ + + + + + + +ResultMatchers (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.results +
+Class ResultMatchers

+
+java.lang.Object
+  extended by org.junit.experimental.results.ResultMatchers
+
+
+
+
public class ResultMatchers
extends Object
+ + +

+Matchers on a PrintableResult, to enable JUnit self-tests. + For example: + +

+                assertThat(testResult(HasExpectedException.class), isSuccessful());
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ResultMatchers() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Matcher<PrintableResult>failureCountIs(int count) + +
+          Matches if there are count failures
+static Matcher<PrintableResult>hasFailureContaining(String string) + +
+          Matches if the result has one or more failures, and at least one of them + contains string
+static Matcher<Object>hasSingleFailureContaining(String string) + +
+          Matches if the result has exactly one failure, and it contains string
+static Matcher<PrintableResult>isSuccessful() + +
+          Matches if the tests are all successful
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ResultMatchers

+
+public ResultMatchers()
+
+
+ + + + + + + + +
+Method Detail
+ +

+isSuccessful

+
+public static Matcher<PrintableResult> isSuccessful()
+
+
Matches if the tests are all successful +

+

+
+
+
+
+ +

+failureCountIs

+
+public static Matcher<PrintableResult> failureCountIs(int count)
+
+
Matches if there are count failures +

+

+
+
+
+
+ +

+hasSingleFailureContaining

+
+public static Matcher<Object> hasSingleFailureContaining(String string)
+
+
Matches if the result has exactly one failure, and it contains string +

+

+
+
+
+
+ +

+hasFailureContaining

+
+public static Matcher<PrintableResult> hasFailureContaining(String string)
+
+
Matches if the result has one or more failures, and at least one of them + contains string +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/results/package-frame.html b/javadoc/4.10/org/junit/experimental/results/package-frame.html new file mode 100644 index 000000000000..be73fffa013e --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/results/package-frame.html @@ -0,0 +1,34 @@ + + + + + + +org.junit.experimental.results (JUnit API) + + + + + + + + + + + +org.junit.experimental.results + + + + +
+Classes  + +
+PrintableResult +
+ResultMatchers
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/results/package-summary.html b/javadoc/4.10/org/junit/experimental/results/package-summary.html new file mode 100644 index 000000000000..c2914d586cd1 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/results/package-summary.html @@ -0,0 +1,159 @@ + + + + + + +org.junit.experimental.results (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental.results +

+ + + + + + + + + + + + + +
+Class Summary
PrintableResultA test result that prints nicely in error messages.
ResultMatchersMatchers on a PrintableResult, to enable JUnit self-tests.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/results/package-tree.html b/javadoc/4.10/org/junit/experimental/results/package-tree.html new file mode 100644 index 000000000000..6965ce8efdcf --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/results/package-tree.html @@ -0,0 +1,151 @@ + + + + + + +org.junit.experimental.results Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental.results +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/runners/Enclosed.html b/javadoc/4.10/org/junit/experimental/runners/Enclosed.html new file mode 100644 index 000000000000..4ea889c94a5b --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/runners/Enclosed.html @@ -0,0 +1,301 @@ + + + + + + +Enclosed (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.runners +
+Class Enclosed

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<Runner>
+          extended by org.junit.runners.Suite
+              extended by org.junit.experimental.runners.Enclosed
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
+
public class Enclosed
extends Suite
+ + +

+If you put tests in inner classes, Ant, for example, won't find them. By running the outer class + with Enclosed, the tests in the inner classes will be run. You might put tests in inner classes + to group them for convenience or to share constants. + + So, for example: +

+  \@RunWith(Enclosed.class)
+  public class ListTests {
+        ...useful shared stuff...
+        public static class OneKindOfListTest {...}
+        public static class AnotherKind {...}
+  }
+  
+ + For a real example, @see org.junit.tests.manipulation.SortableTest. +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class org.junit.runners.Suite
Suite.SuiteClasses
+  + + + + + + + + + + + +
+Constructor Summary
Enclosed(Class<?> klass, + RunnerBuilder builder) + +
+          Only called reflectively.
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, getChildren, runChild
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Enclosed

+
+public Enclosed(Class<?> klass,
+                RunnerBuilder builder)
+         throws Throwable
+
+
Only called reflectively. Do not use programmatically. +

+

+ +
Throws: +
Throwable
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/runners/package-frame.html b/javadoc/4.10/org/junit/experimental/runners/package-frame.html new file mode 100644 index 000000000000..f52ac1ad24a4 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/runners/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.junit.experimental.runners (JUnit API) + + + + + + + + + + + +org.junit.experimental.runners + + + + +
+Classes  + +
+Enclosed
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/runners/package-summary.html b/javadoc/4.10/org/junit/experimental/runners/package-summary.html new file mode 100644 index 000000000000..0eb038e68f0d --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/runners/package-summary.html @@ -0,0 +1,155 @@ + + + + + + +org.junit.experimental.runners (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental.runners +

+ + + + + + + + + +
+Class Summary
EnclosedIf you put tests in inner classes, Ant, for example, won't find them.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/runners/package-tree.html b/javadoc/4.10/org/junit/experimental/runners/package-tree.html new file mode 100644 index 000000000000..a40cb2e06426 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/runners/package-tree.html @@ -0,0 +1,159 @@ + + + + + + +org.junit.experimental.runners Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental.runners +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/DataPoint.html b/javadoc/4.10/org/junit/experimental/theories/DataPoint.html new file mode 100644 index 000000000000..8a0693087c7a --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/DataPoint.html @@ -0,0 +1,166 @@ + + + + + + +DataPoint (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Annotation Type DataPoint

+
+
+
@Retention(value=RUNTIME)
+public @interface DataPoint
+ + +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/DataPoints.html b/javadoc/4.10/org/junit/experimental/theories/DataPoints.html new file mode 100644 index 000000000000..5013befa0f9a --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/DataPoints.html @@ -0,0 +1,166 @@ + + + + + + +DataPoints (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Annotation Type DataPoints

+
+
+
@Retention(value=RUNTIME)
+public @interface DataPoints
+ + +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/ParameterSignature.html b/javadoc/4.10/org/junit/experimental/theories/ParameterSignature.html new file mode 100644 index 000000000000..0aa43dce1a77 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/ParameterSignature.html @@ -0,0 +1,387 @@ + + + + + + +ParameterSignature (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Class ParameterSignature

+
+java.lang.Object
+  extended by org.junit.experimental.theories.ParameterSignature
+
+
+
+
public class ParameterSignature
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancanAcceptArrayType(Class<?> type) + +
+           
+ booleancanAcceptType(Class<?> candidate) + +
+           
+ + + + + +
+<T extends Annotation> +
+T
+
findDeepAnnotation(Class<T> annotationType) + +
+           
+ + + + + +
+<T extends Annotation> +
+T
+
getAnnotation(Class<T> annotationType) + +
+           
+ List<Annotation>getAnnotations() + +
+           
+ Class<?>getType() + +
+           
+ booleanhasAnnotation(Class<? extends Annotation> type) + +
+           
+static List<ParameterSignature>signatures(Constructor<?> constructor) + +
+           
+static ArrayList<ParameterSignature>signatures(Method method) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+signatures

+
+public static ArrayList<ParameterSignature> signatures(Method method)
+
+
+
+
+
+
+ +

+signatures

+
+public static List<ParameterSignature> signatures(Constructor<?> constructor)
+
+
+
+
+
+
+ +

+canAcceptType

+
+public boolean canAcceptType(Class<?> candidate)
+
+
+
+
+
+
+ +

+getType

+
+public Class<?> getType()
+
+
+
+
+
+
+ +

+getAnnotations

+
+public List<Annotation> getAnnotations()
+
+
+
+
+
+
+ +

+canAcceptArrayType

+
+public boolean canAcceptArrayType(Class<?> type)
+
+
+
+
+
+
+ +

+hasAnnotation

+
+public boolean hasAnnotation(Class<? extends Annotation> type)
+
+
+
+
+
+
+ +

+findDeepAnnotation

+
+public <T extends Annotation> T findDeepAnnotation(Class<T> annotationType)
+
+
+
+
+
+
+ +

+getAnnotation

+
+public <T extends Annotation> T getAnnotation(Class<T> annotationType)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/ParameterSupplier.html b/javadoc/4.10/org/junit/experimental/theories/ParameterSupplier.html new file mode 100644 index 000000000000..cb403db097d2 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/ParameterSupplier.html @@ -0,0 +1,253 @@ + + + + + + +ParameterSupplier (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Class ParameterSupplier

+
+java.lang.Object
+  extended by org.junit.experimental.theories.ParameterSupplier
+
+
+
Direct Known Subclasses:
TestedOnSupplier
+
+
+
+
public abstract class ParameterSupplier
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ParameterSupplier() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+abstract  List<PotentialAssignment>getValueSources(ParameterSignature sig) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParameterSupplier

+
+public ParameterSupplier()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValueSources

+
+public abstract List<PotentialAssignment> getValueSources(ParameterSignature sig)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/ParametersSuppliedBy.html b/javadoc/4.10/org/junit/experimental/theories/ParametersSuppliedBy.html new file mode 100644 index 000000000000..b4c7766c8df9 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/ParametersSuppliedBy.html @@ -0,0 +1,206 @@ + + + + + + +ParametersSuppliedBy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Annotation Type ParametersSuppliedBy

+
+
+
@Retention(value=RUNTIME)
+public @interface ParametersSuppliedBy
+ + +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ Class<? extends ParameterSupplier>value + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+value

+
+public abstract Class<? extends ParameterSupplier> value
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html b/javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html new file mode 100644 index 000000000000..731808f6c4fd --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html @@ -0,0 +1,241 @@ + + + + + + +PotentialAssignment.CouldNotGenerateValueException (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Class PotentialAssignment.CouldNotGenerateValueException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Enclosing class:
PotentialAssignment
+
+
+
+
public static class PotentialAssignment.CouldNotGenerateValueException
extends Exception
+ + +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
PotentialAssignment.CouldNotGenerateValueException() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PotentialAssignment.CouldNotGenerateValueException

+
+public PotentialAssignment.CouldNotGenerateValueException()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.html b/javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.html new file mode 100644 index 000000000000..06083be876b3 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/PotentialAssignment.html @@ -0,0 +1,313 @@ + + + + + + +PotentialAssignment (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Class PotentialAssignment

+
+java.lang.Object
+  extended by org.junit.experimental.theories.PotentialAssignment
+
+
+
+
public abstract class PotentialAssignment
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classPotentialAssignment.CouldNotGenerateValueException + +
+           
+  + + + + + + + + + + +
+Constructor Summary
PotentialAssignment() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static PotentialAssignmentforValue(String name, + Object value) + +
+           
+abstract  StringgetDescription() + +
+           
+abstract  ObjectgetValue() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PotentialAssignment

+
+public PotentialAssignment()
+
+
+ + + + + + + + +
+Method Detail
+ +

+forValue

+
+public static PotentialAssignment forValue(String name,
+                                           Object value)
+
+
+
+
+
+
+ +

+getValue

+
+public abstract Object getValue()
+                         throws PotentialAssignment.CouldNotGenerateValueException
+
+
+ +
Throws: +
PotentialAssignment.CouldNotGenerateValueException
+
+
+
+ +

+getDescription

+
+public abstract String getDescription()
+                               throws PotentialAssignment.CouldNotGenerateValueException
+
+
+ +
Throws: +
PotentialAssignment.CouldNotGenerateValueException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/Theories.TheoryAnchor.html b/javadoc/4.10/org/junit/experimental/theories/Theories.TheoryAnchor.html new file mode 100644 index 000000000000..63a741fb819f --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/Theories.TheoryAnchor.html @@ -0,0 +1,405 @@ + + + + + + +Theories.TheoryAnchor (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Class Theories.TheoryAnchor

+
+java.lang.Object
+  extended by org.junit.runners.model.Statement
+      extended by org.junit.experimental.theories.Theories.TheoryAnchor
+
+
+
Enclosing class:
Theories
+
+
+
+
public static class Theories.TheoryAnchor
extends Statement
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Theories.TheoryAnchor(FrameworkMethod method, + TestClass testClass) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidevaluate() + +
+          Run the action, throwing a Throwable if anything goes wrong.
+protected  voidhandleAssumptionViolation(org.junit.internal.AssumptionViolatedException e) + +
+           
+protected  voidhandleDataPointSuccess() + +
+           
+protected  voidreportParameterizedError(Throwable e, + Object... params) + +
+           
+protected  voidrunWithAssignment(org.junit.experimental.theories.internal.Assignments parameterAssignment) + +
+           
+protected  voidrunWithCompleteAssignment(org.junit.experimental.theories.internal.Assignments complete) + +
+           
+protected  voidrunWithIncompleteAssignment(org.junit.experimental.theories.internal.Assignments incomplete) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Theories.TheoryAnchor

+
+public Theories.TheoryAnchor(FrameworkMethod method,
+                             TestClass testClass)
+
+
+ + + + + + + + +
+Method Detail
+ +

+evaluate

+
+public void evaluate()
+              throws Throwable
+
+
Description copied from class: Statement
+
Run the action, throwing a Throwable if anything goes wrong. +

+

+
Specified by:
evaluate in class Statement
+
+
+ +
Throws: +
Throwable
+
+
+
+ +

+runWithAssignment

+
+protected void runWithAssignment(org.junit.experimental.theories.internal.Assignments parameterAssignment)
+                          throws Throwable
+
+
+ +
Throws: +
Throwable
+
+
+
+ +

+runWithIncompleteAssignment

+
+protected void runWithIncompleteAssignment(org.junit.experimental.theories.internal.Assignments incomplete)
+                                    throws InstantiationException,
+                                           IllegalAccessException,
+                                           Throwable
+
+
+ +
Throws: +
InstantiationException +
IllegalAccessException +
Throwable
+
+
+
+ +

+runWithCompleteAssignment

+
+protected void runWithCompleteAssignment(org.junit.experimental.theories.internal.Assignments complete)
+                                  throws InstantiationException,
+                                         IllegalAccessException,
+                                         InvocationTargetException,
+                                         NoSuchMethodException,
+                                         Throwable
+
+
+ +
Throws: +
InstantiationException +
IllegalAccessException +
InvocationTargetException +
NoSuchMethodException +
Throwable
+
+
+
+ +

+handleAssumptionViolation

+
+protected void handleAssumptionViolation(org.junit.internal.AssumptionViolatedException e)
+
+
+
+
+
+
+ +

+reportParameterizedError

+
+protected void reportParameterizedError(Throwable e,
+                                        Object... params)
+                                 throws Throwable
+
+
+ +
Throws: +
Throwable
+
+
+
+ +

+handleDataPointSuccess

+
+protected void handleDataPointSuccess()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/Theories.html b/javadoc/4.10/org/junit/experimental/theories/Theories.html new file mode 100644 index 000000000000..8ff3043bb1a7 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/Theories.html @@ -0,0 +1,449 @@ + + + + + + +Theories (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Class Theories

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<FrameworkMethod>
+          extended by org.junit.runners.BlockJUnit4ClassRunner
+              extended by org.junit.experimental.theories.Theories
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
+
public class Theories
extends BlockJUnit4ClassRunner
+ + +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classTheories.TheoryAnchor + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Theories(Class<?> klass) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcollectInitializationErrors(List<Throwable> errors) + +
+          Adds to errors a throwable for each problem noted with the test class (available from ParentRunner.getTestClass()).
+protected  List<FrameworkMethod>computeTestMethods() + +
+          Returns the methods that run tests.
+ StatementmethodBlock(FrameworkMethod method) + +
+          Returns a Statement that, when executed, either returns normally if + method passes, or throws an exception if method fails.
+protected  voidvalidateConstructor(List<Throwable> errors) + +
+          Adds to errors if the test class has more than one constructor, + or if the constructor takes parameters.
+protected  voidvalidateTestMethods(List<Throwable> errors) + +
+          Adds to errors for each method annotated with @Testthat + is not a public, void instance method with no arguments.
+ + + + + + + +
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
createTest, describeChild, getChildren, getTestRules, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Theories

+
+public Theories(Class<?> klass)
+         throws InitializationError
+
+
+ +
Throws: +
InitializationError
+
+ + + + + + + + +
+Method Detail
+ +

+collectInitializationErrors

+
+protected void collectInitializationErrors(List<Throwable> errors)
+
+
Description copied from class: ParentRunner
+
Adds to errors a throwable for each problem noted with the test class (available from ParentRunner.getTestClass()). + Default implementation adds an error for each method annotated with + @BeforeClass or @AfterClass that is not + public static void with no arguments. +

+

+
Overrides:
collectInitializationErrors in class BlockJUnit4ClassRunner
+
+
+
+
+
+
+ +

+validateConstructor

+
+protected void validateConstructor(List<Throwable> errors)
+
+
Description copied from class: BlockJUnit4ClassRunner
+
Adds to errors if the test class has more than one constructor, + or if the constructor takes parameters. Override if a subclass requires + different validation rules. +

+

+
Overrides:
validateConstructor in class BlockJUnit4ClassRunner
+
+
+
+
+
+
+ +

+validateTestMethods

+
+protected void validateTestMethods(List<Throwable> errors)
+
+
Description copied from class: BlockJUnit4ClassRunner
+
Adds to errors for each method annotated with @Testthat + is not a public, void instance method with no arguments. +

+

+
Overrides:
validateTestMethods in class BlockJUnit4ClassRunner
+
+
+
+
+
+
+ +

+computeTestMethods

+
+protected List<FrameworkMethod> computeTestMethods()
+
+
Description copied from class: BlockJUnit4ClassRunner
+
Returns the methods that run tests. Default implementation returns all + methods annotated with @Test on this class and superclasses that + are not overridden. +

+

+
Overrides:
computeTestMethods in class BlockJUnit4ClassRunner
+
+
+
+
+
+
+ +

+methodBlock

+
+public Statement methodBlock(FrameworkMethod method)
+
+
Description copied from class: BlockJUnit4ClassRunner
+
Returns a Statement that, when executed, either returns normally if + method passes, or throws an exception if method fails. + + Here is an outline of the default implementation: + +
    +
  • Invoke method on the result of createTest(), and + throw any exceptions thrown by either operation. +
  • HOWEVER, if method's @Test annotation has the expecting attribute, return normally only if the previous step threw an + exception of the correct type, and throw an exception otherwise. +
  • HOWEVER, if method's @Test annotation has the timeout attribute, throw an exception if the previous step takes more + than the specified number of milliseconds. +
  • ALWAYS run all non-overridden @Before methods on this class + and superclasses before any of the previous steps; if any throws an + Exception, stop execution and pass the exception on. +
  • ALWAYS run all non-overridden @After methods on this class + and superclasses after any of the previous steps; all After methods are + always executed: exceptions thrown by previous steps are combined, if + necessary, with exceptions from After methods into a + MultipleFailureException. +
  • ALWAYS allow @Rule fields to modify the execution of the + above steps. A Rule may prevent all execution of the above steps, + or add additional behavior before and after, or modify thrown exceptions. + For more information, see TestRule +
+ + This can be overridden in subclasses, either by overriding this method, + or the implementations creating each sub-statement. +

+

+
Overrides:
methodBlock in class BlockJUnit4ClassRunner
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/Theory.html b/javadoc/4.10/org/junit/experimental/theories/Theory.html new file mode 100644 index 000000000000..7a6dcfa407ea --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/Theory.html @@ -0,0 +1,198 @@ + + + + + + +Theory (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories +
+Annotation Type Theory

+
+
+
@Retention(value=RUNTIME)
+public @interface Theory
+ + +

+


+ +

+ + + + + + + + + + + +
+Optional Element Summary
+ booleannullsAccepted + +
+           
+  +

+

+nullsAccepted

+
+public abstract boolean nullsAccepted
+
+
+
+
+
+
+
+
Default:
true
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/package-frame.html b/javadoc/4.10/org/junit/experimental/theories/package-frame.html new file mode 100644 index 000000000000..cca70416dd8a --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/package-frame.html @@ -0,0 +1,68 @@ + + + + + + +org.junit.experimental.theories (JUnit API) + + + + + + + + + + + +org.junit.experimental.theories + + + + +
+Classes  + +
+ParameterSignature +
+ParameterSupplier +
+PotentialAssignment +
+Theories +
+Theories.TheoryAnchor
+ + + + + + +
+Exceptions  + +
+PotentialAssignment.CouldNotGenerateValueException
+ + + + + + +
+Annotation Types  + +
+DataPoint +
+DataPoints +
+ParametersSuppliedBy +
+Theory
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/theories/package-summary.html b/javadoc/4.10/org/junit/experimental/theories/package-summary.html new file mode 100644 index 000000000000..09da4fc980ae --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/package-summary.html @@ -0,0 +1,211 @@ + + + + + + +org.junit.experimental.theories (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental.theories +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ParameterSignature 
ParameterSupplier 
PotentialAssignment 
Theories 
Theories.TheoryAnchor 
+  + +

+ + + + + + + + + +
+Exception Summary
PotentialAssignment.CouldNotGenerateValueException 
+  + +

+ + + + + + + + + + + + + + + + + + + + + +
+Annotation Types Summary
DataPoint 
DataPoints 
ParametersSuppliedBy 
Theory 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/package-tree.html b/javadoc/4.10/org/junit/experimental/theories/package-tree.html new file mode 100644 index 000000000000..24834db69002 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/package-tree.html @@ -0,0 +1,175 @@ + + + + + + +org.junit.experimental.theories Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental.theories +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOn.html b/javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOn.html new file mode 100644 index 000000000000..09d097afdf8b --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOn.html @@ -0,0 +1,206 @@ + + + + + + +TestedOn (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories.suppliers +
+Annotation Type TestedOn

+
+
+
@Retention(value=RUNTIME)
+public @interface TestedOn
+ + +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ int[]ints + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+ints

+
+public abstract int[] ints
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOnSupplier.html b/javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOnSupplier.html new file mode 100644 index 000000000000..529e345e3a46 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/suppliers/TestedOnSupplier.html @@ -0,0 +1,254 @@ + + + + + + +TestedOnSupplier (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.experimental.theories.suppliers +
+Class TestedOnSupplier

+
+java.lang.Object
+  extended by org.junit.experimental.theories.ParameterSupplier
+      extended by org.junit.experimental.theories.suppliers.TestedOnSupplier
+
+
+
+
public class TestedOnSupplier
extends ParameterSupplier
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestedOnSupplier() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ List<PotentialAssignment>getValueSources(ParameterSignature sig) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestedOnSupplier

+
+public TestedOnSupplier()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValueSources

+
+public List<PotentialAssignment> getValueSources(ParameterSignature sig)
+
+
+
Specified by:
getValueSources in class ParameterSupplier
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/suppliers/package-frame.html b/javadoc/4.10/org/junit/experimental/theories/suppliers/package-frame.html new file mode 100644 index 000000000000..68c3e5f9adbd --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/suppliers/package-frame.html @@ -0,0 +1,43 @@ + + + + + + +org.junit.experimental.theories.suppliers (JUnit API) + + + + + + + + + + + +org.junit.experimental.theories.suppliers + + + + +
+Classes  + +
+TestedOnSupplier
+ + + + + + +
+Annotation Types  + +
+TestedOn
+ + + + diff --git a/javadoc/4.10/org/junit/experimental/theories/suppliers/package-summary.html b/javadoc/4.10/org/junit/experimental/theories/suppliers/package-summary.html new file mode 100644 index 000000000000..bf6976147de4 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/suppliers/package-summary.html @@ -0,0 +1,169 @@ + + + + + + +org.junit.experimental.theories.suppliers (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.experimental.theories.suppliers +

+ + + + + + + + + +
+Class Summary
TestedOnSupplier 
+  + +

+ + + + + + + + + +
+Annotation Types Summary
TestedOn 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/experimental/theories/suppliers/package-tree.html b/javadoc/4.10/org/junit/experimental/theories/suppliers/package-tree.html new file mode 100644 index 000000000000..dc93c7645f72 --- /dev/null +++ b/javadoc/4.10/org/junit/experimental/theories/suppliers/package-tree.html @@ -0,0 +1,159 @@ + + + + + + +org.junit.experimental.theories.suppliers Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.experimental.theories.suppliers +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/matchers/JUnitMatchers.html b/javadoc/4.10/org/junit/matchers/JUnitMatchers.html new file mode 100644 index 000000000000..1f521ff6a954 --- /dev/null +++ b/javadoc/4.10/org/junit/matchers/JUnitMatchers.html @@ -0,0 +1,455 @@ + + + + + + +JUnitMatchers (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.matchers +
+Class JUnitMatchers

+
+java.lang.Object
+  extended by org.junit.matchers.JUnitMatchers
+
+
+
+
public class JUnitMatchers
extends Object
+ + +

+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. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
JUnitMatchers() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> org.junit.internal.matchers.CombinableMatcher<T>
+
both(Matcher<T> matcher) + +
+          This is useful for fluently combining matchers that must both pass.
+static Matcher<String>containsString(String substring) + +
+           
+static + + + + +
+<T> org.junit.internal.matchers.CombinableMatcher<T>
+
either(Matcher<T> matcher) + +
+          This is useful for fluently combining matchers where either may pass, for example:
+static + + + + +
+<T> Matcher<Iterable<T>>
+
everyItem(Matcher<T> elementMatcher) + +
+           
+static + + + + +
+<T> Matcher<Iterable<T>>
+
hasItem(Matcher<? extends T> elementMatcher) + +
+           
+static + + + + +
+<T> Matcher<Iterable<T>>
+
hasItem(T element) + +
+           
+static + + + + +
+<T> Matcher<Iterable<T>>
+
hasItems(Matcher<? extends T>... elementMatchers) + +
+           
+static + + + + +
+<T> Matcher<Iterable<T>>
+
hasItems(T... elements) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+JUnitMatchers

+
+public JUnitMatchers()
+
+
+ + + + + + + + +
+Method Detail
+ +

+hasItem

+
+public static <T> Matcher<Iterable<T>> hasItem(T element)
+
+
+
Parameters:
element - +
Returns:
A matcher matching any collection containing element
+
+
+
+ +

+hasItem

+
+public static <T> Matcher<Iterable<T>> hasItem(Matcher<? extends T> elementMatcher)
+
+
+
Parameters:
elementMatcher - +
Returns:
A matcher matching any collection containing an element matching elementMatcher
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<Iterable<T>> hasItems(T... elements)
+
+
+
Parameters:
elements - +
Returns:
A matcher matching any collection containing every element in elements
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<Iterable<T>> hasItems(Matcher<? extends T>... elementMatchers)
+
+
+
Parameters:
elementMatchers - +
Returns:
A matcher matching any collection containing at least one element that matches + each matcher in elementMatcher (this may be one element matching all matchers, + or different elements matching each matcher)
+
+
+
+ +

+everyItem

+
+public static <T> Matcher<Iterable<T>> everyItem(Matcher<T> elementMatcher)
+
+
+
Parameters:
elementMatcher - +
Returns:
A matcher matching any collection in which every element matches elementMatcher
+
+
+
+ +

+containsString

+
+public static Matcher<String> containsString(String substring)
+
+
+
Parameters:
substring - +
Returns:
a matcher matching any string that contains substring
+
+
+
+ +

+both

+
+public static <T> org.junit.internal.matchers.CombinableMatcher<T> both(Matcher<T> matcher)
+
+
This is useful for fluently combining matchers that must both pass. For example: +
+   assertThat(string, both(containsString("a")).and(containsString("b")));
+ 
+

+

+
+
+
+
+ +

+either

+
+public static <T> org.junit.internal.matchers.CombinableMatcher<T> either(Matcher<T> matcher)
+
+
This is useful for fluently combining matchers where either may pass, for example: +
+   assertThat(string, either(containsString("a")).or(containsString("b")));
+ 
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/matchers/package-frame.html b/javadoc/4.10/org/junit/matchers/package-frame.html new file mode 100644 index 000000000000..280a208a7d64 --- /dev/null +++ b/javadoc/4.10/org/junit/matchers/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.junit.matchers (JUnit API) + + + + + + + + + + + +org.junit.matchers + + + + +
+Classes  + +
+JUnitMatchers
+ + + + diff --git a/javadoc/4.10/org/junit/matchers/package-summary.html b/javadoc/4.10/org/junit/matchers/package-summary.html new file mode 100644 index 000000000000..963e73bca6ec --- /dev/null +++ b/javadoc/4.10/org/junit/matchers/package-summary.html @@ -0,0 +1,177 @@ + + + + + + +org.junit.matchers (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.matchers +

+Provides useful additional Matchers for use with + the Assert.assertThat(Object, org.hamcrest.Matcher) + statement +

+See: +
+          Description +

+ + + + + + + + + +
+Class Summary
JUnitMatchersConvenience 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.
+  + +

+

+Package org.junit.matchers Description +

+ +

+Provides useful additional Matchers for use with + the Assert.assertThat(Object, org.hamcrest.Matcher) + statement +

+ +

+

+
Since:
+
4.0
+
See Also:
JUnitMatchers
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/matchers/package-tree.html b/javadoc/4.10/org/junit/matchers/package-tree.html new file mode 100644 index 000000000000..b151a37e4771 --- /dev/null +++ b/javadoc/4.10/org/junit/matchers/package-tree.html @@ -0,0 +1,151 @@ + + + + + + +org.junit.matchers Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.matchers +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/package-frame.html b/javadoc/4.10/org/junit/package-frame.html new file mode 100644 index 000000000000..c3cbf5dc1388 --- /dev/null +++ b/javadoc/4.10/org/junit/package-frame.html @@ -0,0 +1,72 @@ + + + + + + +org.junit (JUnit API) + + + + + + + + + + + +org.junit + + + + +
+Classes  + +
+Assert +
+Assume +
+Test.None
+ + + + + + +
+Errors  + +
+ComparisonFailure
+ + + + + + +
+Annotation Types  + +
+After +
+AfterClass +
+Before +
+BeforeClass +
+ClassRule +
+Ignore +
+Rule +
+Test
+ + + + diff --git a/javadoc/4.10/org/junit/package-summary.html b/javadoc/4.10/org/junit/package-summary.html new file mode 100644 index 000000000000..eacadba0fbc8 --- /dev/null +++ b/javadoc/4.10/org/junit/package-summary.html @@ -0,0 +1,243 @@ + + + + + + +org.junit (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit +

+Provides JUnit core classes and annotations. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
AssertA set of assertion methods useful for writing tests.
AssumeA set of methods useful for stating assumptions about the conditions in which a test is meaningful.
Test.NoneDefault empty exception
+  + +

+ + + + + + + + + +
+Error Summary
ComparisonFailureThrown when an assertEquals(String, String) fails.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Annotation Types Summary
AfterIf you allocate external resources in a Before method you need to release them + after the test runs.
AfterClassIf you allocate expensive external resources in a BeforeClass method you need to release them + after all the tests in the class have run.
BeforeWhen writing tests, it is common to find that several tests need similar + objects created before they can run.
BeforeClassSometimes several tests need to share computationally expensive setup + (like logging into a database).
ClassRuleAnnotates static fields that contain rules.
IgnoreSometimes you want to temporarily disable a test or a group of tests.
RuleAnnotates fields that contain rules.
TestThe Test annotation tells JUnit that the public void method + to which it is attached can be run as a test case.
+  + +

+

+Package org.junit Description +

+ +

+Provides JUnit core classes and annotations. + + Corresponds to junit.framework in Junit 3.x. +

+ +

+

+
Since:
+
4.0
+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/package-tree.html b/javadoc/4.10/org/junit/package-tree.html new file mode 100644 index 000000000000..8616717fa469 --- /dev/null +++ b/javadoc/4.10/org/junit/package-tree.html @@ -0,0 +1,171 @@ + + + + + + +org.junit Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/ErrorCollector.html b/javadoc/4.10/org/junit/rules/ErrorCollector.html new file mode 100644 index 000000000000..c91b85a2cdd0 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/ErrorCollector.html @@ -0,0 +1,404 @@ + + + + + + +ErrorCollector (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class ErrorCollector

+
+java.lang.Object
+  extended by org.junit.rules.Verifier
+      extended by org.junit.rules.ErrorCollector
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class ErrorCollector
extends Verifier
+ + +

+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): + +

+ public static class UsesErrorCollectorTwice {
+        @Rule
+        public ErrorCollector collector= new ErrorCollector();
+ 
+        @Test
+        public void example() {
+                collector.addError(new Throwable("first thing went wrong"));
+                collector.addError(new Throwable("second thing went wrong"));
+                collector.checkThat(getResult(), not(containsString("ERROR!")));
+                // all lines will run, and then a combined failure logged at the end.
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ErrorCollector() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddError(Throwable error) + +
+          Adds a Throwable to the table.
+ ObjectcheckSucceeds(Callable<Object> callable) + +
+          Adds to the table the exception, if any, thrown from callable.
+ + + + + +
+<T> void
+
checkThat(String reason, + T value, + Matcher<T> matcher) + +
+          Adds a failure with the given reason + to the table if matcher does not match value.
+ + + + + +
+<T> void
+
checkThat(T value, + Matcher<T> matcher) + +
+          Adds a failure to the table if matcher does not match value.
+protected  voidverify() + +
+          Override this to add verification logic.
+ + + + + + + +
Methods inherited from class org.junit.rules.Verifier
apply
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ErrorCollector

+
+public ErrorCollector()
+
+
+ + + + + + + + +
+Method Detail
+ +

+verify

+
+protected void verify()
+               throws Throwable
+
+
Description copied from class: Verifier
+
Override this to add verification logic. Overrides should throw an + exception to indicate that verification failed. +

+

+
Overrides:
verify in class Verifier
+
+
+ +
Throws: +
Throwable
+
+
+
+ +

+addError

+
+public void addError(Throwable error)
+
+
Adds a Throwable to the table. Execution continues, but the test will fail at the end. +

+

+
+
+
+
+ +

+checkThat

+
+public <T> void checkThat(T value,
+                          Matcher<T> matcher)
+
+
Adds a failure to the table if matcher does not match value. + Execution continues, but the test will fail at the end if the match fails. +

+

+
+
+
+
+ +

+checkThat

+
+public <T> void checkThat(String reason,
+                          T value,
+                          Matcher<T> matcher)
+
+
Adds a failure with the given reason + to the table if matcher does not match value. + Execution continues, but the test will fail at the end if the match fails. +

+

+
+
+
+
+ +

+checkSucceeds

+
+public Object checkSucceeds(Callable<Object> callable)
+
+
Adds to the table the exception, if any, thrown from callable. + Execution continues, but the test will fail at the end if + callable threw an exception. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/ExpectedException.html b/javadoc/4.10/org/junit/rules/ExpectedException.html new file mode 100644 index 000000000000..d0166ee0c062 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/ExpectedException.html @@ -0,0 +1,390 @@ + + + + + + +ExpectedException (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class ExpectedException

+
+java.lang.Object
+  extended by org.junit.rules.ExpectedException
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class ExpectedException
extends Object
implements TestRule
+ + +

+The ExpectedException Rule allows in-test specification of expected exception + types and messages: + +

+ // These tests all pass.
+ public static class HasExpectedException {
+        @Rule
+        public ExpectedException thrown= ExpectedException.none();
+ 
+        @Test
+        public void throwsNothing() {
+    // no exception expected, none thrown: passes.
+        }
+ 
+        @Test
+        public void throwsNullPointerException() {
+                thrown.expect(NullPointerException.class);
+                throw new NullPointerException();
+        }
+ 
+        @Test
+        public void throwsNullPointerExceptionWithMessage() {
+                thrown.expect(NullPointerException.class);
+                thrown.expectMessage("happened?");
+                thrown.expectMessage(startsWith("What"));
+                throw new NullPointerException("What happened?");
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+ voidexpect(Class<? extends Throwable> type) + +
+          Adds to the list of requirements for any thrown exception that it + should be an instance of type
+ voidexpect(Matcher<?> matcher) + +
+          Adds matcher to the list of requirements for any thrown exception.
+ voidexpectMessage(Matcher<String> matcher) + +
+          Adds matcher to the list of requirements for the message + returned from any thrown exception.
+ voidexpectMessage(String substring) + +
+          Adds to the list of requirements for any thrown exception that it + should contain string substring
+static ExpectedExceptionnone() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+none

+
+public static ExpectedException none()
+
+
+
+
+
+ +
Returns:
a Rule that expects no exception to be thrown + (identical to behavior without this Rule)
+
+
+
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Description copied from interface: TestRule
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+
+ +

+expect

+
+public void expect(Matcher<?> matcher)
+
+
Adds matcher to the list of requirements for any thrown exception. +

+

+
+
+
+
+
+
+
+ +

+expect

+
+public void expect(Class<? extends Throwable> type)
+
+
Adds to the list of requirements for any thrown exception that it + should be an instance of type +

+

+
+
+
+
+
+
+
+ +

+expectMessage

+
+public void expectMessage(String substring)
+
+
Adds to the list of requirements for any thrown exception that it + should contain string substring +

+

+
+
+
+
+
+
+
+ +

+expectMessage

+
+public void expectMessage(Matcher<String> matcher)
+
+
Adds matcher to the list of requirements for the message + returned from any thrown exception. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/ExternalResource.html b/javadoc/4.10/org/junit/rules/ExternalResource.html new file mode 100644 index 000000000000..badd3a174467 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/ExternalResource.html @@ -0,0 +1,350 @@ + + + + + + +ExternalResource (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class ExternalResource

+
+java.lang.Object
+  extended by org.junit.rules.ExternalResource
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
Direct Known Subclasses:
TemporaryFolder
+
+
+
+
public abstract class ExternalResource
extends Object
implements TestRule
+ + +

+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: + +

+ public static class UsesExternalResource {
+        Server myServer= new Server();
+ 
+        @Rule
+        public ExternalResource resource= new ExternalResource() {
+                @Override
+                protected void before() throws Throwable {
+                        myServer.connect();
+                };
+ 
+                @Override
+                protected void after() {
+                        myServer.disconnect();
+                };
+        };
+ 
+        @Test
+        public void testFoo() {
+                new Client().run(myServer);
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ExternalResource() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidafter() + +
+          Override to tear down your specific external resource.
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+protected  voidbefore() + +
+          Override to set up your specific external resource.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ExternalResource

+
+public ExternalResource()
+
+
+ + + + + + + + +
+Method Detail
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Description copied from interface: TestRule
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+
+ +

+before

+
+protected void before()
+               throws Throwable
+
+
Override to set up your specific external resource. +

+

+
+
+
+ +
Throws: +
if - setup fails (which will disable after +
Throwable
+
+
+
+ +

+after

+
+protected void after()
+
+
Override to tear down your specific external resource. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/MethodRule.html b/javadoc/4.10/org/junit/rules/MethodRule.html new file mode 100644 index 000000000000..347f7d4a2b19 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/MethodRule.html @@ -0,0 +1,241 @@ + + + + + + +MethodRule (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Interface MethodRule

+
+
All Known Implementing Classes:
TestWatchman
+
+
+Deprecated. +

+

+
@Deprecated
+public interface MethodRule
+ + +

+A MethodRule is an alteration in how a test method is run and reported. + Multiple MethodRules can be applied to a test method. The + Statement that executes the method is passed to each annotated + Rule in turn, and each may return a substitute or modified + Statement, which is passed to the next Rule, if any. For + examples of how this can be useful, see these provided MethodRules, + or write your own: + +

+

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + FrameworkMethod method, + Object target) + +
+          Deprecated. Modifies the method-running Statement to implement an additional + test-running rule.
+  +

+ + + + + + + + +
+Method Detail
+ +

+apply

+
+Statement apply(Statement base,
+                FrameworkMethod method,
+                Object target)
+
+
Deprecated. 
Modifies the method-running Statement to implement an additional + test-running rule. +

+

+
Parameters:
base - The Statement to be modified
method - The method to be run
target - The object on with the method will be run. +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/RuleChain.html b/javadoc/4.10/org/junit/rules/RuleChain.html new file mode 100644 index 000000000000..51141bf41fb8 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/RuleChain.html @@ -0,0 +1,342 @@ + + + + + + +RuleChain (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class RuleChain

+
+java.lang.Object
+  extended by org.junit.rules.RuleChain
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class RuleChain
extends Object
implements TestRule
+ + +

+The RuleChain rule allows ordering of TestRules. You create a + RuleChain with outerRule(TestRule) and subsequent calls of + around(TestRule): + +

+ public static class UseRuleChain {
+        @Rule
+        public TestRule chain= RuleChain
+                               .outerRule(new LoggingRule("outer rule")
+                               .around(new LoggingRule("middle rule")
+                               .around(new LoggingRule("inner rule");
+ 
+        @Test
+        public void example() {
+                assertTrue(true);
+        }
+ }
+ 
+ + writes the log + +
+ starting outer rule
+ starting middle rule
+ starting inner rule
+ finished inner rule
+ finished middle rule
+ finished outer rule
+ 
+

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+ RuleChainaround(TestRule enclosedRule) + +
+          Create a new RuleChain, which encloses the nextRule with + the rules of the current RuleChain.
+static RuleChainemptyRuleChain() + +
+          Returns a RuleChain without a TestRule.
+static RuleChainouterRule(TestRule outerRule) + +
+          Returns a RuleChain with a single TestRule.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+emptyRuleChain

+
+public static RuleChain emptyRuleChain()
+
+
Returns a RuleChain without a TestRule. This method may + be the starting point of a RuleChain. +

+

+
+
+
+ +
Returns:
a RuleChain without a TestRule.
+
+
+
+ +

+outerRule

+
+public static RuleChain outerRule(TestRule outerRule)
+
+
Returns a RuleChain with a single TestRule. This method + is the usual starting point of a RuleChain. +

+

+
+
+
+
Parameters:
outerRule - the outer rule of the RuleChain. +
Returns:
a RuleChain with a single TestRule.
+
+
+
+ +

+around

+
+public RuleChain around(TestRule enclosedRule)
+
+
Create a new RuleChain, which encloses the nextRule with + the rules of the current RuleChain. +

+

+
+
+
+
Parameters:
enclosedRule - the rule to enclose. +
Returns:
a new RuleChain.
+
+
+
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/RunRules.html b/javadoc/4.10/org/junit/rules/RunRules.html new file mode 100644 index 000000000000..9becc7c8862c --- /dev/null +++ b/javadoc/4.10/org/junit/rules/RunRules.html @@ -0,0 +1,268 @@ + + + + + + +RunRules (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class RunRules

+
+java.lang.Object
+  extended by org.junit.runners.model.Statement
+      extended by org.junit.rules.RunRules
+
+
+
+
public class RunRules
extends Statement
+ + +

+Runs a collection of rules on a statement. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
RunRules(Statement base, + Iterable<TestRule> rules, + Description description) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voidevaluate() + +
+          Run the action, throwing a Throwable if anything goes wrong.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RunRules

+
+public RunRules(Statement base,
+                Iterable<TestRule> rules,
+                Description description)
+
+
+ + + + + + + + +
+Method Detail
+ +

+evaluate

+
+public void evaluate()
+              throws Throwable
+
+
Description copied from class: Statement
+
Run the action, throwing a Throwable if anything goes wrong. +

+

+
Specified by:
evaluate in class Statement
+
+
+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/TemporaryFolder.html b/javadoc/4.10/org/junit/rules/TemporaryFolder.html new file mode 100644 index 000000000000..2a6484f8ad32 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/TemporaryFolder.html @@ -0,0 +1,479 @@ + + + + + + +TemporaryFolder (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class TemporaryFolder

+
+java.lang.Object
+  extended by org.junit.rules.ExternalResource
+      extended by org.junit.rules.TemporaryFolder
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class TemporaryFolder
extends ExternalResource
+ + +

+The TemporaryFolder Rule allows creation of files and folders that are + guaranteed to be deleted when the test method finishes (whether it passes or + fails): + +

+ public static class HasTempFolder {
+        @Rule
+        public TemporaryFolder folder= new TemporaryFolder();
+ 
+        @Test
+        public void testUsingTempFolder() throws IOException {
+                File createdFile= folder.newFile("myfile.txt");
+                File createdFolder= folder.newFolder("subfolder");
+                // ...
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TemporaryFolder() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidafter() + +
+          Override to tear down your specific external resource.
+protected  voidbefore() + +
+          Override to set up your specific external resource.
+ voidcreate() + +
+          for testing purposes only.
+ voiddelete() + +
+          Delete all files and folders under the temporary folder.
+ FilegetRoot() + +
+           
+ FilenewFile() + +
+          Returns a new fresh file with a random name under the temporary folder.
+ FilenewFile(String fileName) + +
+          Returns a new fresh file with the given name under the temporary folder.
+ FilenewFolder() + +
+          Returns a new fresh folder with a random name under the temporary + folder.
+ FilenewFolder(String... folderNames) + +
+          Returns a new fresh folder with the given name under the temporary folder.
+ + + + + + + +
Methods inherited from class org.junit.rules.ExternalResource
apply
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TemporaryFolder

+
+public TemporaryFolder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+before

+
+protected void before()
+               throws Throwable
+
+
Description copied from class: ExternalResource
+
Override to set up your specific external resource. +

+

+
Overrides:
before in class ExternalResource
+
+
+ +
Throws: +
Throwable
+
+
+
+ +

+after

+
+protected void after()
+
+
Description copied from class: ExternalResource
+
Override to tear down your specific external resource. +

+

+
Overrides:
after in class ExternalResource
+
+
+
+
+
+
+ +

+create

+
+public void create()
+            throws IOException
+
+
for testing purposes only. Do not use. +

+

+ +
Throws: +
IOException
+
+
+
+ +

+newFile

+
+public File newFile(String fileName)
+             throws IOException
+
+
Returns a new fresh file with the given name under the temporary folder. +

+

+ +
Throws: +
IOException
+
+
+
+ +

+newFile

+
+public File newFile()
+             throws IOException
+
+
Returns a new fresh file with a random name under the temporary folder. +

+

+ +
Throws: +
IOException
+
+
+
+ +

+newFolder

+
+public File newFolder(String... folderNames)
+
+
Returns a new fresh folder with the given name under the temporary folder. +

+

+
+
+
+
+ +

+newFolder

+
+public File newFolder()
+               throws IOException
+
+
Returns a new fresh folder with a random name under the temporary + folder. +

+

+ +
Throws: +
IOException
+
+
+
+ +

+getRoot

+
+public File getRoot()
+
+
+ +
Returns:
the location of this temporary folder.
+
+
+
+ +

+delete

+
+public void delete()
+
+
Delete all files and folders under the temporary folder. + Usually not called directly, since it is automatically applied + by the Rule +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/TestName.html b/javadoc/4.10/org/junit/rules/TestName.html new file mode 100644 index 000000000000..66bfef108bf1 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/TestName.html @@ -0,0 +1,310 @@ + + + + + + +TestName (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class TestName

+
+java.lang.Object
+  extended by org.junit.rules.TestWatcher
+      extended by org.junit.rules.TestName
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class TestName
extends TestWatcher
+ + +

+The TestName Rule makes the current test name available inside test methods: + +

+ public class TestNameTest {
+        @Rule
+        public TestName name= new TestName();
+ 
+        @Test
+        public void testA() {
+                assertEquals("testA", name.getMethodName());
+        }
+ 
+        @Test
+        public void testB() {
+                assertEquals("testB", name.getMethodName());
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestName() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetMethodName() + +
+           
+protected  voidstarting(Description d) + +
+          Invoked when a test is about to start
+ + + + + + + +
Methods inherited from class org.junit.rules.TestWatcher
apply, failed, finished, succeeded
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestName

+
+public TestName()
+
+
+ + + + + + + + +
+Method Detail
+ +

+starting

+
+protected void starting(Description d)
+
+
Description copied from class: TestWatcher
+
Invoked when a test is about to start +

+

+
Overrides:
starting in class TestWatcher
+
+
+
+
+
+
+ +

+getMethodName

+
+public String getMethodName()
+
+
+ +
Returns:
the name of the currently-running test method
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/TestRule.html b/javadoc/4.10/org/junit/rules/TestRule.html new file mode 100644 index 000000000000..077c44a0a892 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/TestRule.html @@ -0,0 +1,253 @@ + + + + + + +TestRule (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Interface TestRule

+
+
All Known Implementing Classes:
ErrorCollector, ExpectedException, ExternalResource, RuleChain, TemporaryFolder, TestName, TestWatcher, Timeout, Verifier
+
+
+
+
public interface TestRule
+ + +

+A TestRule is an alteration in how a test method, or set of test methods, + is run and reported. A TestRule may add additional checks that cause + a test that would otherwise fail to pass, or it may perform necessary setup or + cleanup for tests, or it may observe test execution to report it elsewhere. + TestRules can do everything that could be done previously with + methods annotated with Before, + After, BeforeClass, or + AfterClass, but they are more powerful, and more easily + shared + between projects and classes. + + The default JUnit test runners for suites and + individual test cases recognize TestRules introduced in two different + ways. Rule annotates method-level + TestRules, and ClassRule + annotates class-level TestRules. See Javadoc for those annotations + for more information. + + Multiple TestRules can be applied to a test or suite execution. The + Statement that executes the method or suite is passed to each annotated + Rule in turn, and each may return a substitute or modified + Statement, which is passed to the next Rule, if any. For + examples of how this can be useful, see these provided TestRules, + or write your own: + +

+

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+  +

+ + + + + + + + +
+Method Detail
+ +

+apply

+
+Statement apply(Statement base,
+                Description description)
+
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/TestWatcher.html b/javadoc/4.10/org/junit/rules/TestWatcher.html new file mode 100644 index 000000000000..13aa7dcb7fb0 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/TestWatcher.html @@ -0,0 +1,400 @@ + + + + + + +TestWatcher (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class TestWatcher

+
+java.lang.Object
+  extended by org.junit.rules.TestWatcher
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
Direct Known Subclasses:
TestName
+
+
+
+
public abstract class TestWatcher
extends Object
implements TestRule
+ + +

+TestWatcher is a base class for Rules that take note of the testing + action, without modifying it. For example, this class will keep a log of each + passing and failing test: + +

+ public static class WatchmanTest {
+        private static String watchedLog;
+ 
+        @Rule
+        public MethodRule watchman= new TestWatcher() {
+                @Override
+                protected void failed(Description d) {
+                        watchedLog+= d + "\n";
+                }
+ 
+                @Override
+                protected void succeeded(Description d) {
+                        watchedLog+= d + " " + "success!\n";
+                }
+        };
+ 
+        @Test
+        public void fails() {
+                fail();
+        }
+ 
+        @Test
+        public void succeeds() {
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestWatcher() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+protected  voidfailed(Throwable e, + Description description) + +
+          Invoked when a test fails
+protected  voidfinished(Description description) + +
+          Invoked when a test method finishes (whether passing or failing)
+protected  voidstarting(Description description) + +
+          Invoked when a test is about to start
+protected  voidsucceeded(Description description) + +
+          Invoked when a test succeeds
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestWatcher

+
+public TestWatcher()
+
+
+ + + + + + + + +
+Method Detail
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Description copied from interface: TestRule
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+
+ +

+succeeded

+
+protected void succeeded(Description description)
+
+
Invoked when a test succeeds +

+

+
+
+
+
Parameters:
description -
+
+
+
+ +

+failed

+
+protected void failed(Throwable e,
+                      Description description)
+
+
Invoked when a test fails +

+

+
+
+
+
Parameters:
e -
description -
+
+
+
+ +

+starting

+
+protected void starting(Description description)
+
+
Invoked when a test is about to start +

+

+
+
+
+
Parameters:
description -
+
+
+
+ +

+finished

+
+protected void finished(Description description)
+
+
Invoked when a test method finishes (whether passing or failing) +

+

+
+
+
+
Parameters:
description -
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/TestWatchman.html b/javadoc/4.10/org/junit/rules/TestWatchman.html new file mode 100644 index 000000000000..a1a093a54524 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/TestWatchman.html @@ -0,0 +1,404 @@ + + + + + + +TestWatchman (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class TestWatchman

+
+java.lang.Object
+  extended by org.junit.rules.TestWatchman
+
+
+
All Implemented Interfaces:
MethodRule
+
+
+Deprecated. MethodRule is deprecated. + Use TestWatcher implements TestRule instead. +

+

+
@Deprecated
+public class TestWatchman
extends Object
implements MethodRule
+ + +

+TestWatchman is a base class for Rules that take note of the testing + action, without modifying it. For example, this class will keep a log of each + passing and failing test: + +

+ public static class WatchmanTest {
+        private static String watchedLog;
+ 
+        @Rule
+        public MethodRule watchman= new TestWatchman() {
+                @Override
+                public void failed(Throwable e, FrameworkMethod method) {
+                        watchedLog+= method.getName() + " " + e.getClass().getSimpleName()
+                                        + "\n";
+                }
+ 
+                @Override
+                public void succeeded(FrameworkMethod method) {
+                        watchedLog+= method.getName() + " " + "success!\n";
+                }
+        };
+ 
+        @Test
+        public void fails() {
+                fail();
+        }
+ 
+        @Test
+        public void succeeds() {
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestWatchman() + +
+          Deprecated.  
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + FrameworkMethod method, + Object target) + +
+          Deprecated. Modifies the method-running Statement to implement an additional + test-running rule.
+ voidfailed(Throwable e, + FrameworkMethod method) + +
+          Deprecated. Invoked when a test method fails
+ voidfinished(FrameworkMethod method) + +
+          Deprecated. Invoked when a test method finishes (whether passing or failing)
+ voidstarting(FrameworkMethod method) + +
+          Deprecated. Invoked when a test method is about to start
+ voidsucceeded(FrameworkMethod method) + +
+          Deprecated. Invoked when a test method succeeds
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestWatchman

+
+public TestWatchman()
+
+
Deprecated. 
+ + + + + + + + +
+Method Detail
+ +

+apply

+
+public Statement apply(Statement base,
+                       FrameworkMethod method,
+                       Object target)
+
+
Deprecated. 
Description copied from interface: MethodRule
+
Modifies the method-running Statement to implement an additional + test-running rule. +

+

+
Specified by:
apply in interface MethodRule
+
+
+
Parameters:
base - The Statement to be modified
method - The method to be run
target - The object on with the method will be run. +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+
+ +

+succeeded

+
+public void succeeded(FrameworkMethod method)
+
+
Deprecated. 
Invoked when a test method succeeds +

+

+
+
+
+
Parameters:
method -
+
+
+
+ +

+failed

+
+public void failed(Throwable e,
+                   FrameworkMethod method)
+
+
Deprecated. 
Invoked when a test method fails +

+

+
+
+
+
Parameters:
e -
method -
+
+
+
+ +

+starting

+
+public void starting(FrameworkMethod method)
+
+
Deprecated. 
Invoked when a test method is about to start +

+

+
+
+
+
Parameters:
method -
+
+
+
+ +

+finished

+
+public void finished(FrameworkMethod method)
+
+
Deprecated. 
Invoked when a test method finishes (whether passing or failing) +

+

+
+
+
+
Parameters:
method -
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/Timeout.html b/javadoc/4.10/org/junit/rules/Timeout.html new file mode 100644 index 000000000000..06b6b14dded8 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/Timeout.html @@ -0,0 +1,294 @@ + + + + + + +Timeout (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class Timeout

+
+java.lang.Object
+  extended by org.junit.rules.Timeout
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class Timeout
extends Object
implements TestRule
+ + +

+The Timeout Rule applies the same timeout to all test methods in a class: + +

+ public static class HasGlobalTimeout {
+        public static String log;
+ 
+        @Rule
+        public MethodRule globalTimeout= new Timeout(20);
+ 
+        @Test
+        public void testInfiniteLoop1() {
+                log+= "ran1";
+                for (;;) {
+                }
+        }
+ 
+        @Test
+        public void testInfiniteLoop2() {
+                log+= "ran2";
+                for (;;) {
+                }
+        }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Timeout(int millis) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Timeout

+
+public Timeout(int millis)
+
+
+
Parameters:
millis - the millisecond timeout
+
+ + + + + + + + +
+Method Detail
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Description copied from interface: TestRule
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/Verifier.html b/javadoc/4.10/org/junit/rules/Verifier.html new file mode 100644 index 000000000000..974eb44bb8d9 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/Verifier.html @@ -0,0 +1,319 @@ + + + + + + +Verifier (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class Verifier

+
+java.lang.Object
+  extended by org.junit.rules.Verifier
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
Direct Known Subclasses:
ErrorCollector
+
+
+
+
public class Verifier
extends Object
implements TestRule
+ + +

+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 + +

+     public static class ErrorLogVerifier() {
+        private ErrorLog errorLog = new ErrorLog();
+     
+        @Rule
+        public MethodRule verifier = new Verifier() {
+           @Override public void verify() {
+              assertTrue(errorLog.isEmpty());
+           }
+        }
+        
+        @Test public void testThatMightWriteErrorLog() {
+           // ...
+        }
+     }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Verifier() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+protected  voidverify() + +
+          Override this to add verification logic.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Verifier

+
+public Verifier()
+
+
+ + + + + + + + +
+Method Detail
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Description copied from interface: TestRule
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+
+ +

+verify

+
+protected void verify()
+               throws Throwable
+
+
Override this to add verification logic. Overrides should throw an + exception to indicate that verification failed. +

+

+
+
+
+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/package-frame.html b/javadoc/4.10/org/junit/rules/package-frame.html new file mode 100644 index 000000000000..bcefcb876729 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/package-frame.html @@ -0,0 +1,65 @@ + + + + + + +org.junit.rules (JUnit API) + + + + + + + + + + + +org.junit.rules + + + + +
+Interfaces  + +
+MethodRule +
+TestRule
+ + + + + + +
+Classes  + +
+ErrorCollector +
+ExpectedException +
+ExternalResource +
+RuleChain +
+RunRules +
+TemporaryFolder +
+TestName +
+TestWatcher +
+TestWatchman +
+Timeout +
+Verifier
+ + + + diff --git a/javadoc/4.10/org/junit/rules/package-summary.html b/javadoc/4.10/org/junit/rules/package-summary.html new file mode 100644 index 000000000000..0c00341f3842 --- /dev/null +++ b/javadoc/4.10/org/junit/rules/package-summary.html @@ -0,0 +1,224 @@ + + + + + + +org.junit.rules (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.rules +

+ + + + + + + + + + + + + +
+Interface Summary
MethodRuleDeprecated.
TestRuleA TestRule is an alteration in how a test method, or set of test methods, + is run and reported.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ErrorCollectorThe 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):
ExpectedExceptionThe ExpectedException Rule allows in-test specification of expected exception + types and messages:
ExternalResourceA 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:
RuleChainThe RuleChain rule allows ordering of TestRules.
RunRulesRuns a collection of rules on a statement.
TemporaryFolderThe TemporaryFolder Rule allows creation of files and folders that are + guaranteed to be deleted when the test method finishes (whether it passes or + fails):
TestNameThe TestName Rule makes the current test name available inside test methods:
TestWatcherTestWatcher is a base class for Rules that take note of the testing + action, without modifying it.
TestWatchmanDeprecated. MethodRule is deprecated.
TimeoutThe Timeout Rule applies the same timeout to all test methods in a class:
VerifierVerifier is a base class for Rules like ErrorCollector, which can turn + otherwise passing test methods into failing tests if a verification check is + failed
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/rules/package-tree.html b/javadoc/4.10/org/junit/rules/package-tree.html new file mode 100644 index 000000000000..3fd527d3edee --- /dev/null +++ b/javadoc/4.10/org/junit/rules/package-tree.html @@ -0,0 +1,171 @@ + + + + + + +org.junit.rules Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.rules +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/Computer.html b/javadoc/4.10/org/junit/runner/Computer.html new file mode 100644 index 000000000000..ba562d839e7e --- /dev/null +++ b/javadoc/4.10/org/junit/runner/Computer.html @@ -0,0 +1,314 @@ + + + + + + +Computer (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Class Computer

+
+java.lang.Object
+  extended by org.junit.runner.Computer
+
+
+
Direct Known Subclasses:
ParallelComputer
+
+
+
+
public class Computer
extends Object
+ + +

+Represents a strategy for computing runners and suites. + WARNING: this class is very likely to undergo serious changes in version 4.8 and + beyond. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Computer() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  RunnergetRunner(RunnerBuilder builder, + Class<?> testClass) + +
+          Create a single-class runner for testClass, using builder
+ RunnergetSuite(RunnerBuilder builder, + Class<?>[] classes) + +
+          Create a suite for classes, building Runners with builder.
+static Computerserial() + +
+          Returns a new default computer, which runs tests in serial order
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Computer

+
+public Computer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+serial

+
+public static Computer serial()
+
+
Returns a new default computer, which runs tests in serial order +

+

+
+
+
+
+ +

+getSuite

+
+public Runner getSuite(RunnerBuilder builder,
+                       Class<?>[] classes)
+                throws InitializationError
+
+
Create a suite for classes, building Runners with builder. + Throws an InitializationError if Runner construction fails +

+

+ +
Throws: +
InitializationError
+
+
+
+ +

+getRunner

+
+protected Runner getRunner(RunnerBuilder builder,
+                           Class<?> testClass)
+                    throws Throwable
+
+
Create a single-class runner for testClass, using builder +

+

+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/Describable.html b/javadoc/4.10/org/junit/runner/Describable.html new file mode 100644 index 000000000000..fec4c830da13 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/Describable.html @@ -0,0 +1,212 @@ + + + + + + +Describable (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Interface Describable

+
+
All Known Implementing Classes:
AllTests, BlockJUnit4ClassRunner, Categories, Enclosed, org.junit.internal.runners.JUnit38ClassRunner, JUnit4, Parameterized, ParentRunner, Runner, Suite, org.junit.internal.runners.SuiteMethod, Theories
+
+
+
+
public interface Describable
+ + +

+Represents an object that can describe itself +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ DescriptiongetDescription() + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+getDescription

+
+Description getDescription()
+
+
+ +
Returns:
a Description showing the tests to be run by the receiver
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/Description.html b/javadoc/4.10/org/junit/runner/Description.html new file mode 100644 index 000000000000..a91854d37ef9 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/Description.html @@ -0,0 +1,774 @@ + + + + + + +Description (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Class Description

+
+java.lang.Object
+  extended by org.junit.runner.Description
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class Description
extends Object
implements Serializable
+ + +

+

A Description describes a test which is to be run or has been run. Descriptions + can be atomic (a single test) or compound (containing children tests). Descriptions are used + to provide feedback about the tests that are about to run (for example, the tree view + visible in many IDEs) or tests that have been run (for example, the failures view).

+ +

Descriptions are implemented as a single class rather than a Composite because + they are entirely informational. They contain no logic aside from counting their tests.

+ +

In the past, we used the raw TestCases and TestSuites + to display the tree of tests. This was no longer viable in JUnit 4 because atomic tests no longer have + a superclass below Object. We needed a way to pass a class and name together. Description + emerged from this.

+

+ +

+

+
See Also:
Request, +Runner, +Serialized Form
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static DescriptionEMPTY + +
+          Describes a Runner which runs no tests
+static DescriptionTEST_MECHANISM + +
+          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
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddChild(Description description) + +
+          Add Description as a child of the receiver.
+ DescriptionchildlessCopy() + +
+           
+static DescriptioncreateSuiteDescription(Class<?> testClass) + +
+          Create a Description named after testClass
+static DescriptioncreateSuiteDescription(String name, + Annotation... annotations) + +
+          Create a Description named name.
+static DescriptioncreateTestDescription(Class<?> clazz, + String name) + +
+          Create a Description of a single test named name in the class clazz.
+static DescriptioncreateTestDescription(Class<?> clazz, + String name, + Annotation... annotations) + +
+          Create a Description of a single test named name in the class clazz.
+ booleanequals(Object obj) + +
+           
+ + + + + +
+<T extends Annotation> +
+T
+
getAnnotation(Class<T> annotationType) + +
+           
+ Collection<Annotation>getAnnotations() + +
+           
+ ArrayList<Description>getChildren() + +
+           
+ StringgetClassName() + +
+           
+ StringgetDisplayName() + +
+           
+ StringgetMethodName() + +
+           
+ Class<?>getTestClass() + +
+           
+ inthashCode() + +
+           
+ booleanisEmpty() + +
+           
+ booleanisSuite() + +
+           
+ booleanisTest() + +
+           
+ inttestCount() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+EMPTY

+
+public static final Description EMPTY
+
+
Describes a Runner which runs no tests +

+

+
+
+
+ +

+TEST_MECHANISM

+
+public static final Description TEST_MECHANISM
+
+
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 +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+createSuiteDescription

+
+public static Description createSuiteDescription(String name,
+                                                 Annotation... annotations)
+
+
Create a Description named name. + Generally, you will add children to this Description. +

+

+
+
+
+
Parameters:
name - the name of the Description
annotations - +
Returns:
a Description named name
+
+
+
+ +

+createTestDescription

+
+public static Description createTestDescription(Class<?> clazz,
+                                                String name,
+                                                Annotation... annotations)
+
+
Create a Description of a single test named name in the class clazz. + Generally, this will be a leaf Description. +

+

+
+
+
+
Parameters:
clazz - the class of the test
name - the name of the test (a method name for test annotated with Test)
annotations - meta-data about the test, for downstream interpreters +
Returns:
a Description named name
+
+
+
+ +

+createTestDescription

+
+public static Description createTestDescription(Class<?> clazz,
+                                                String name)
+
+
Create a Description of a single test named name in the class clazz. + Generally, this will be a leaf Description. + (This remains for binary compatibility with clients of JUnit 4.3) +

+

+
+
+
+
Parameters:
clazz - the class of the test
name - the name of the test (a method name for test annotated with Test) +
Returns:
a Description named name
+
+
+
+ +

+createSuiteDescription

+
+public static Description createSuiteDescription(Class<?> testClass)
+
+
Create a Description named after testClass +

+

+
+
+
+
Parameters:
testClass - A Class containing tests +
Returns:
a Description of testClass
+
+
+
+ +

+getDisplayName

+
+public String getDisplayName()
+
+
+
+
+
+ +
Returns:
a user-understandable label
+
+
+
+ +

+addChild

+
+public void addChild(Description description)
+
+
Add Description as a child of the receiver. +

+

+
+
+
+
Parameters:
description - the soon-to-be child.
+
+
+
+ +

+getChildren

+
+public ArrayList<Description> getChildren()
+
+
+
+
+
+ +
Returns:
the receiver's children, if any
+
+
+
+ +

+isSuite

+
+public boolean isSuite()
+
+
+
+
+
+ +
Returns:
true if the receiver is a suite
+
+
+
+ +

+isTest

+
+public boolean isTest()
+
+
+
+
+
+ +
Returns:
true if the receiver is an atomic test
+
+
+
+ +

+testCount

+
+public int testCount()
+
+
+
+
+
+ +
Returns:
the total number of atomic tests in the receiver
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
+
+
+ +
Returns:
true if this is a description of a Runner that runs no tests
+
+
+
+ +

+childlessCopy

+
+public Description childlessCopy()
+
+
+
+
+
+ +
Returns:
a copy of this description, with no children (on the assumption that some of the + children will be added back)
+
+
+
+ +

+getAnnotation

+
+public <T extends Annotation> T getAnnotation(Class<T> annotationType)
+
+
+
+
+
+ +
Returns:
the annotation of type annotationType that is attached to this description node, + or null if none exists
+
+
+
+ +

+getAnnotations

+
+public Collection<Annotation> getAnnotations()
+
+
+
+
+
+ +
Returns:
all of the annotations attached to this description node
+
+
+
+ +

+getTestClass

+
+public Class<?> getTestClass()
+
+
+
+
+
+ +
Returns:
If this describes a method invocation, + the class of the test instance.
+
+
+
+ +

+getClassName

+
+public String getClassName()
+
+
+
+
+
+ +
Returns:
If this describes a method invocation, + the name of the class of the test instance
+
+
+
+ +

+getMethodName

+
+public String getMethodName()
+
+
+
+
+
+ +
Returns:
If this describes a method invocation, + the name of the method (or null if not)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/JUnitCore.html b/javadoc/4.10/org/junit/runner/JUnitCore.html new file mode 100644 index 000000000000..000f997f96c3 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/JUnitCore.html @@ -0,0 +1,539 @@ + + + + + + +JUnitCore (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Class JUnitCore

+
+java.lang.Object
+  extended by org.junit.runner.JUnitCore
+
+
+
+
public class JUnitCore
extends Object
+ + +

+JUnitCore is a facade for running tests. It supports running JUnit 4 tests, + JUnit 3.8.x tests, and mixtures. To run tests from the command line, run + java org.junit.runner.JUnitCore TestClass1 TestClass2 .... + For one-shot test runs, use the static method runClasses(Class[]). + If you want to add special listeners, + create an instance of JUnitCore first and use it to run the tests. +

+ +

+

+
See Also:
Result, +RunListener, +Request
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
JUnitCore() + +
+          Create a new JUnitCore to run tests.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddListener(RunListener listener) + +
+          Add a listener to be notified as the tests run.
+ StringgetVersion() + +
+           
+static voidmain(String... args) + +
+          Run the tests contained in the classes named in the args.
+ voidremoveListener(RunListener listener) + +
+          Remove a listener.
+ Resultrun(Class<?>... classes) + +
+          Run all the tests in classes.
+ Resultrun(Computer computer, + Class<?>... classes) + +
+          Run all the tests in classes.
+ Resultrun(Request request) + +
+          Run all the tests contained in request.
+ Resultrun(Runner runner) + +
+          Do not use.
+ Resultrun(junit.framework.Test test) + +
+          Run all the tests contained in JUnit 3.8.x test.
+static ResultrunClasses(Class<?>... classes) + +
+          Run the tests contained in classes.
+static ResultrunClasses(Computer computer, + Class<?>... classes) + +
+          Run the tests contained in classes.
+ ResultrunMain(org.junit.internal.JUnitSystem system, + String... args) + +
+          Do not use.
+static voidrunMainAndExit(org.junit.internal.JUnitSystem system, + String... args) + +
+          Do not use.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+JUnitCore

+
+public JUnitCore()
+
+
Create a new JUnitCore to run tests. +

+

+ + + + + + + + +
+Method Detail
+ +

+main

+
+public static void main(String... args)
+
+
Run the tests contained in the classes named in the args. + If all tests run successfully, exit with a status of 0. Otherwise exit with a status of 1. + Write feedback while tests are running and write + stack traces for all failed tests after the tests all complete. +

+

+
Parameters:
args - names of classes in which to find tests to run
+
+
+
+ +

+runMainAndExit

+
+public static void runMainAndExit(org.junit.internal.JUnitSystem system,
+                                  String... args)
+
+
Do not use. Testing purposes only. +

+

+
Parameters:
system -
+
+
+
+ +

+runClasses

+
+public static Result runClasses(Computer computer,
+                                Class<?>... classes)
+
+
Run the tests contained in classes. Write feedback while the tests + are running and write stack traces for all failed tests after all tests complete. This is + similar to main(String[]), but intended to be used programmatically. +

+

+
Parameters:
computer - Helps construct Runners from classes
classes - Classes in which to find tests +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+runClasses

+
+public static Result runClasses(Class<?>... classes)
+
+
Run the tests contained in classes. Write feedback while the tests + are running and write stack traces for all failed tests after all tests complete. This is + similar to main(String[]), but intended to be used programmatically. +

+

+
Parameters:
classes - Classes in which to find tests +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+runMain

+
+public Result runMain(org.junit.internal.JUnitSystem system,
+                      String... args)
+
+
Do not use. Testing purposes only. +

+

+
Parameters:
system -
+
+
+
+ +

+getVersion

+
+public String getVersion()
+
+
+ +
Returns:
the version number of this release
+
+
+
+ +

+run

+
+public Result run(Class<?>... classes)
+
+
Run all the tests in classes. +

+

+
Parameters:
classes - the classes containing tests +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+run

+
+public Result run(Computer computer,
+                  Class<?>... classes)
+
+
Run all the tests in classes. +

+

+
Parameters:
computer - Helps construct Runners from classes
classes - the classes containing tests +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+run

+
+public Result run(Request request)
+
+
Run all the tests contained in request. +

+

+
Parameters:
request - the request describing tests +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+run

+
+public Result run(junit.framework.Test test)
+
+
Run all the tests contained in JUnit 3.8.x test. Here for backward compatibility. +

+

+
Parameters:
test - the old-style test +
Returns:
a Result describing the details of the test run and the failed tests.
+
+
+
+ +

+run

+
+public Result run(Runner runner)
+
+
Do not use. Testing purposes only. +

+

+
+
+
+
+ +

+addListener

+
+public void addListener(RunListener listener)
+
+
Add a listener to be notified as the tests run. +

+

+
Parameters:
listener - the listener to add
See Also:
RunListener
+
+
+
+ +

+removeListener

+
+public void removeListener(RunListener listener)
+
+
Remove a listener. +

+

+
Parameters:
listener - the listener to remove
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/Request.html b/javadoc/4.10/org/junit/runner/Request.html new file mode 100644 index 000000000000..ff0af0ab241c --- /dev/null +++ b/javadoc/4.10/org/junit/runner/Request.html @@ -0,0 +1,526 @@ + + + + + + +Request (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Class Request

+
+java.lang.Object
+  extended by org.junit.runner.Request
+
+
+
+
public abstract class Request
extends Object
+ + +

+

A Request is an abstract description of tests to be run. Older versions of + JUnit did not need such a concept--tests to be run were described either by classes containing + tests or a tree of Tests. However, we want to support filtering and sorting, + so we need a more abstract specification than the tests themselves and a richer + specification than just the classes.

+ +

The flow when JUnit runs tests is that a Request specifies some tests to be run -> + a Runner is created for each class implied by the Request -> + the Runner returns a detailed Description + which is a tree structure of the tests to be run.

+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Request() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static RequestaClass(Class<?> clazz) + +
+          Create a Request that, when processed, will run all the tests + in a class.
+static Requestclasses(Class<?>... classes) + +
+          Create a Request that, when processed, will run all the tests + in a set of classes with the default Computer.
+static Requestclasses(Computer computer, + Class<?>... classes) + +
+          Create a Request that, when processed, will run all the tests + in a set of classes.
+static RequestclassWithoutSuiteMethod(Class<?> clazz) + +
+          Create a Request that, when processed, will run all the tests + in a class.
+static RequesterrorReport(Class<?> klass, + Throwable cause) + +
+          Deprecated. 
+ RequestfilterWith(Description desiredDescription) + +
+          Returns a Request that only runs contains tests whose Description + equals desiredDescription
+ RequestfilterWith(Filter filter) + +
+          Returns a Request that only contains those tests that should run when + filter is applied
+abstract  RunnergetRunner() + +
+          Returns a Runner for this Request
+static Requestmethod(Class<?> clazz, + String methodName) + +
+          Create a Request that, when processed, will run a single test.
+static Requestrunner(Runner runner) + +
+           
+ RequestsortWith(Comparator<Description> comparator) + +
+          Returns a Request whose Tests can be run in a certain order, defined by + comparator + + For example, here is code to run a test suite in alphabetical order:
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Request

+
+public Request()
+
+
+ + + + + + + + +
+Method Detail
+ +

+method

+
+public static Request method(Class<?> clazz,
+                             String methodName)
+
+
Create a Request that, when processed, will run a single test. + This is done by filtering out all other tests. This method is used to support rerunning + single tests. +

+

+
Parameters:
clazz - the class of the test
methodName - the name of the test +
Returns:
a Request that will cause a single test be run
+
+
+
+ +

+aClass

+
+public static Request aClass(Class<?> clazz)
+
+
Create a Request that, when processed, will run all the tests + in a class. The odd name is necessary because class is a reserved word. +

+

+
Parameters:
clazz - the class containing the tests +
Returns:
a Request that will cause all tests in the class to be run
+
+
+
+ +

+classWithoutSuiteMethod

+
+public static Request classWithoutSuiteMethod(Class<?> clazz)
+
+
Create a Request that, when processed, will run all the tests + in a class. If the class has a suite() method, it will be ignored. +

+

+
Parameters:
clazz - the class containing the tests +
Returns:
a Request that will cause all tests in the class to be run
+
+
+
+ +

+classes

+
+public static Request classes(Computer computer,
+                              Class<?>... classes)
+
+
Create a Request that, when processed, will run all the tests + in a set of classes. +

+

+
Parameters:
computer - Helps construct Runners from classes
classes - the classes containing the tests +
Returns:
a Request that will cause all tests in the classes to be run
+
+
+
+ +

+classes

+
+public static Request classes(Class<?>... classes)
+
+
Create a Request that, when processed, will run all the tests + in a set of classes with the default Computer. +

+

+
Parameters:
classes - the classes containing the tests +
Returns:
a Request that will cause all tests in the classes to be run
+
+
+
+ +

+errorReport

+
+@Deprecated
+public static Request errorReport(Class<?> klass,
+                                             Throwable cause)
+
+
Deprecated.  +

+

Not used within JUnit. Clients should simply instantiate ErrorReportingRunner themselves +

+

+
+
+
+
+ +

+runner

+
+public static Request runner(Runner runner)
+
+
+
Parameters:
runner - the runner to return +
Returns:
a Request that will run the given runner when invoked
+
+
+
+ +

+getRunner

+
+public abstract Runner getRunner()
+
+
Returns a Runner for this Request +

+

+ +
Returns:
corresponding Runner for this Request
+
+
+
+ +

+filterWith

+
+public Request filterWith(Filter filter)
+
+
Returns a Request that only contains those tests that should run when + filter is applied +

+

+
Parameters:
filter - The Filter to apply to this Request +
Returns:
the filtered Request
+
+
+
+ +

+filterWith

+
+public Request filterWith(Description desiredDescription)
+
+
Returns a Request that only runs contains tests whose Description + equals desiredDescription +

+

+
Parameters:
desiredDescription - Description of those tests that should be run +
Returns:
the filtered Request
+
+
+
+ +

+sortWith

+
+public Request sortWith(Comparator<Description> comparator)
+
+
Returns a Request whose Tests can be run in a certain order, defined by + comparator + + For example, here is code to run a test suite in alphabetical order: + +
+        private static Comparator forward() {
+                return new Comparator() {
+                        public int compare(Description o1, Description o2) {
+                                return o1.getDisplayName().compareTo(o2.getDisplayName());
+                        }
+                };
+        }
+
+        public static main() {
+                new JUnitCore().run(Request.aClass(AllTests.class).sortWith(forward()));
+        }
+ 
+

+

+
Parameters:
comparator - definition of the order of the tests in this Request +
Returns:
a Request with ordered Tests
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/Result.html b/javadoc/4.10/org/junit/runner/Result.html new file mode 100644 index 000000000000..66d30fb10241 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/Result.html @@ -0,0 +1,404 @@ + + + + + + +Result (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Class Result

+
+java.lang.Object
+  extended by org.junit.runner.Result
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class Result
extends Object
implements Serializable
+ + +

+A Result collects and summarizes information from running multiple + tests. Since tests are expected to run correctly, successful tests are only noted in + the count of tests that ran. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Result() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ RunListenercreateListener() + +
+          Internal use only.
+ intgetFailureCount() + +
+           
+ List<Failure>getFailures() + +
+           
+ intgetIgnoreCount() + +
+           
+ intgetRunCount() + +
+           
+ longgetRunTime() + +
+           
+ booleanwasSuccessful() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Result

+
+public Result()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRunCount

+
+public int getRunCount()
+
+
+
+
+
+ +
Returns:
the number of tests run
+
+
+
+ +

+getFailureCount

+
+public int getFailureCount()
+
+
+
+
+
+ +
Returns:
the number of tests that failed during the run
+
+
+
+ +

+getRunTime

+
+public long getRunTime()
+
+
+
+
+
+ +
Returns:
the number of milliseconds it took to run the entire suite to run
+
+
+
+ +

+getFailures

+
+public List<Failure> getFailures()
+
+
+
+
+
+ +
Returns:
the Failures describing tests that failed and the problems they encountered
+
+
+
+ +

+getIgnoreCount

+
+public int getIgnoreCount()
+
+
+
+
+
+ +
Returns:
the number of tests ignored during the run
+
+
+
+ +

+wasSuccessful

+
+public boolean wasSuccessful()
+
+
+
+
+
+ +
Returns:
true if all tests succeeded
+
+
+
+ +

+createListener

+
+public RunListener createListener()
+
+
Internal use only. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/RunWith.html b/javadoc/4.10/org/junit/runner/RunWith.html new file mode 100644 index 000000000000..7d990d0d8e5b --- /dev/null +++ b/javadoc/4.10/org/junit/runner/RunWith.html @@ -0,0 +1,227 @@ + + + + + + +RunWith (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Annotation Type RunWith

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+@Inherited
+public @interface RunWith
+ + +

+When a class is annotated with @RunWith or extends a class annotated + with @RunWith, JUnit will invoke the class it references to run the + tests in that class instead of the runner built into JUnit. We added this feature late + in development. While it seems powerful we expect the runner API to change as we learn + how people really use it. Some of the classes that are currently internal will likely + be refined and become public. + + For example, suites in JUnit 4 are built using RunWith, and a custom runner named Suite: + +

+ @RunWith(Suite.class)
+ @SuiteClasses({ATest.class, BTest.class, CTest.class})
+ public class ABCSuite {
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ Class<? extends Runner>value + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+value

+
+public abstract Class<? extends Runner> value
+
+
+
+
+
+ +
Returns:
a Runner class (must have a constructor that takes a single Class to run)
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/Runner.html b/javadoc/4.10/org/junit/runner/Runner.html new file mode 100644 index 000000000000..33023fffd73a --- /dev/null +++ b/javadoc/4.10/org/junit/runner/Runner.html @@ -0,0 +1,325 @@ + + + + + + +Runner (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner +
+Class Runner

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+
+
+
All Implemented Interfaces:
Describable
+
+
+
Direct Known Subclasses:
org.junit.internal.runners.JUnit38ClassRunner, ParentRunner
+
+
+
+
public abstract class Runner
extends Object
implements Describable
+ + +

+A Runner runs tests and notifies a RunNotifier + of significant events as it does so. You will need to subclass Runner + when using RunWith to invoke a custom runner. When creating + a custom runner, in addition to implementing the abstract methods here you must + also provide a constructor that takes as an argument the Class containing + the tests. +

+ The default runner implementation guarantees that the instances of the test case + class will be constructed immediately before running the test and that the runner + will retain no reference to the test case instances, generally making them + available for garbage collection. +

+ +

+

+
See Also:
Description, +RunWith
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Runner() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  DescriptiongetDescription() + +
+           
+abstract  voidrun(RunNotifier notifier) + +
+          Run the tests for this runner.
+ inttestCount() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Runner

+
+public Runner()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDescription

+
+public abstract Description getDescription()
+
+
+
Specified by:
getDescription in interface Describable
+
+
+ +
Returns:
a Description showing the tests to be run by the receiver
+
+
+
+ +

+run

+
+public abstract void run(RunNotifier notifier)
+
+
Run the tests for this runner. +

+

+
+
+
+
Parameters:
notifier - will be notified of events while tests are being run--tests being + started, finishing, and failing
+
+
+
+ +

+testCount

+
+public int testCount()
+
+
+
+
+
+ +
Returns:
the number of tests to be run by the receiver
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/Filter.html b/javadoc/4.10/org/junit/runner/manipulation/Filter.html new file mode 100644 index 000000000000..914c1d3c342b --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/Filter.html @@ -0,0 +1,396 @@ + + + + + + +Filter (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.manipulation +
+Class Filter

+
+java.lang.Object
+  extended by org.junit.runner.manipulation.Filter
+
+
+
Direct Known Subclasses:
Categories.CategoryFilter
+
+
+
+
public abstract class Filter
extends Object
+ + +

+The canonical case of filtering is when you want to run a single test method in a class. Rather + than introduce runner API just for that one case, JUnit provides a general filtering mechanism. + If you want to filter the tests to be run, extend Filter and apply an instance of + your filter to the Request before running it (see + JUnitCore.run(Request). Alternatively, apply a Filter to + a Runner before running tests (for example, in conjunction with + RunWith. +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+static FilterALL + +
+          A null Filter that passes all tests through.
+  + + + + + + + + + + +
+Constructor Summary
Filter() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidapply(Object child) + +
+          Invoke with a Runner to cause all tests it intends to run + to first be checked with the filter.
+abstract  Stringdescribe() + +
+          Returns a textual description of this Filter
+ Filterintersect(Filter second) + +
+          Returns a new Filter that accepts the intersection of the tests accepted + by this Filter and second
+static FiltermatchMethodDescription(Description desiredDescription) + +
+          Returns a Filter that only runs the single method described by + desiredDescription
+abstract  booleanshouldRun(Description description) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+ALL

+
+public static Filter ALL
+
+
A null Filter that passes all tests through. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Filter

+
+public Filter()
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchMethodDescription

+
+public static Filter matchMethodDescription(Description desiredDescription)
+
+
Returns a Filter that only runs the single method described by + desiredDescription +

+

+
+
+
+
+ +

+shouldRun

+
+public abstract boolean shouldRun(Description description)
+
+
+
Parameters:
description - the description of the test to be run +
Returns:
true if the test should be run
+
+
+
+ +

+describe

+
+public abstract String describe()
+
+
Returns a textual description of this Filter +

+

+ +
Returns:
a textual description of this Filter
+
+
+
+ +

+apply

+
+public void apply(Object child)
+           throws NoTestsRemainException
+
+
Invoke with a Runner to cause all tests it intends to run + to first be checked with the filter. Only those that pass the filter will be run. +

+

+
Parameters:
child - the runner to be filtered by the receiver +
Throws: +
NoTestsRemainException - if the receiver removes all tests
+
+
+
+ +

+intersect

+
+public Filter intersect(Filter second)
+
+
Returns a new Filter that accepts the intersection of the tests accepted + by this Filter and second +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/Filterable.html b/javadoc/4.10/org/junit/runner/manipulation/Filterable.html new file mode 100644 index 000000000000..b272d36f8c46 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/Filterable.html @@ -0,0 +1,217 @@ + + + + + + +Filterable (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.manipulation +
+Interface Filterable

+
+
All Known Implementing Classes:
AllTests, BlockJUnit4ClassRunner, Categories, Enclosed, org.junit.internal.runners.JUnit38ClassRunner, JUnit4, Parameterized, ParentRunner, Suite, org.junit.internal.runners.SuiteMethod, Theories
+
+
+
+
public interface Filterable
+ + +

+Runners that allow filtering should implement this interface. Implement filter(Filter) + to remove tests that don't pass the filter. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidfilter(Filter filter) + +
+          Remove tests that don't pass the parameter filter.
+  +

+ + + + + + + + +
+Method Detail
+ +

+filter

+
+void filter(Filter filter)
+            throws NoTestsRemainException
+
+
Remove tests that don't pass the parameter filter. +

+

+
Parameters:
filter - the Filter to apply +
Throws: +
NoTestsRemainException - if all tests are filtered out
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/NoTestsRemainException.html b/javadoc/4.10/org/junit/runner/manipulation/NoTestsRemainException.html new file mode 100644 index 000000000000..59dd549045b0 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/NoTestsRemainException.html @@ -0,0 +1,242 @@ + + + + + + +NoTestsRemainException (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.manipulation +
+Class NoTestsRemainException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.junit.runner.manipulation.NoTestsRemainException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class NoTestsRemainException
extends Exception
+ + +

+Thrown when a filter removes all tests from a runner. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
NoTestsRemainException() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+NoTestsRemainException

+
+public NoTestsRemainException()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/Sortable.html b/javadoc/4.10/org/junit/runner/manipulation/Sortable.html new file mode 100644 index 000000000000..ac90c23e175d --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/Sortable.html @@ -0,0 +1,216 @@ + + + + + + +Sortable (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.manipulation +
+Interface Sortable

+
+
All Known Implementing Classes:
AllTests, BlockJUnit4ClassRunner, Categories, Enclosed, org.junit.internal.runners.JUnit38ClassRunner, JUnit4, Parameterized, ParentRunner, Suite, org.junit.internal.runners.SuiteMethod, Theories
+
+
+
+
public interface Sortable
+ + +

+Interface for runners that allow sorting of tests. By sorting tests based on when they last failed, most recently + failed first, you can reduce the average time to the first test failing. Test sorting should not be used to + cope with order dependencies between tests. Tests that are isolated from each other are less + expensive to maintain and can be run individually. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ voidsort(Sorter sorter) + +
+          Sorts the tests using sorter
+  +

+ + + + + + + + +
+Method Detail
+ +

+sort

+
+void sort(Sorter sorter)
+
+
Sorts the tests using sorter +

+

+
Parameters:
sorter - the Sorter to use for sorting the tests
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/Sorter.html b/javadoc/4.10/org/junit/runner/manipulation/Sorter.html new file mode 100644 index 000000000000..d25aa5b8c47a --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/Sorter.html @@ -0,0 +1,340 @@ + + + + + + +Sorter (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.manipulation +
+Class Sorter

+
+java.lang.Object
+  extended by org.junit.runner.manipulation.Sorter
+
+
+
All Implemented Interfaces:
Comparator<Description>
+
+
+
+
public class Sorter
extends Object
implements Comparator<Description>
+ + +

+A Sorter orders tests. In general you will not need + to use a Sorter directly. Instead, use Request.sortWith(Comparator). +

+ +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+static SorterNULL + +
+          NULL is a Sorter that leaves elements in an undefined order
+  + + + + + + + + + + +
+Constructor Summary
Sorter(Comparator<Description> comparator) + +
+          Creates a Sorter that uses comparator + to sort tests
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voidapply(Object object) + +
+          Sorts the test in runner using comparator
+ intcompare(Description o1, + Description o2) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + + + + +
Methods inherited from interface java.util.Comparator
equals
+  +

+ + + + + + + + +
+Field Detail
+ +

+NULL

+
+public static Sorter NULL
+
+
NULL is a Sorter that leaves elements in an undefined order +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+Sorter

+
+public Sorter(Comparator<Description> comparator)
+
+
Creates a Sorter that uses comparator + to sort tests +

+

+
Parameters:
comparator - the Comparator to use when sorting tests
+
+ + + + + + + + +
+Method Detail
+ +

+apply

+
+public void apply(Object object)
+
+
Sorts the test in runner using comparator +

+

+
+
+
+
Parameters:
object -
+
+
+
+ +

+compare

+
+public int compare(Description o1,
+                   Description o2)
+
+
+
Specified by:
compare in interface Comparator<Description>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/package-frame.html b/javadoc/4.10/org/junit/runner/manipulation/package-frame.html new file mode 100644 index 000000000000..20dce8ebef64 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/package-frame.html @@ -0,0 +1,58 @@ + + + + + + +org.junit.runner.manipulation (JUnit API) + + + + + + + + + + + +org.junit.runner.manipulation + + + + +
+Interfaces  + +
+Filterable +
+Sortable
+ + + + + + +
+Classes  + +
+Filter +
+Sorter
+ + + + + + +
+Exceptions  + +
+NoTestsRemainException
+ + + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/package-summary.html b/javadoc/4.10/org/junit/runner/manipulation/package-summary.html new file mode 100644 index 000000000000..1646622f848a --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/package-summary.html @@ -0,0 +1,208 @@ + + + + + + +org.junit.runner.manipulation (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.runner.manipulation +

+Provides classes to filter or sort tests. +

+See: +
+          Description +

+ + + + + + + + + + + + + +
+Interface Summary
FilterableRunners that allow filtering should implement this interface.
SortableInterface for runners that allow sorting of tests.
+  + +

+ + + + + + + + + + + + + +
+Class Summary
FilterThe canonical case of filtering is when you want to run a single test method in a class.
SorterA Sorter orders tests.
+  + +

+ + + + + + + + + +
+Exception Summary
NoTestsRemainExceptionThrown when a filter removes all tests from a runner.
+  + +

+

+Package org.junit.runner.manipulation Description +

+ +

+Provides classes to filter or sort tests. +

+ +

+

+
Since:
+
4.0
+
See Also:
Runner
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/manipulation/package-tree.html b/javadoc/4.10/org/junit/runner/manipulation/package-tree.html new file mode 100644 index 000000000000..1ac3113faa16 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/manipulation/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +org.junit.runner.manipulation Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.runner.manipulation +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/notification/Failure.html b/javadoc/4.10/org/junit/runner/notification/Failure.html new file mode 100644 index 000000000000..1014a1975c14 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/Failure.html @@ -0,0 +1,391 @@ + + + + + + +Failure (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.notification +
+Class Failure

+
+java.lang.Object
+  extended by org.junit.runner.notification.Failure
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class Failure
extends Object
implements Serializable
+ + +

+A Failure holds a description of the failed test and the + exception that was thrown while running it. In most cases the Description + will be of a single test. However, if problems are encountered while constructing the + test (for example, if a BeforeClass method is not static), it may describe + something other than a single test. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Failure(Description description, + Throwable thrownException) + +
+          Constructs a Failure with the given description and exception.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DescriptiongetDescription() + +
+           
+ ThrowablegetException() + +
+           
+ StringgetMessage() + +
+          Convenience method
+ StringgetTestHeader() + +
+           
+ StringgetTrace() + +
+          Convenience method
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Failure

+
+public Failure(Description description,
+               Throwable thrownException)
+
+
Constructs a Failure with the given description and exception. +

+

+
Parameters:
description - a Description of the test that failed
thrownException - the exception that was thrown while running the test
+
+ + + + + + + + +
+Method Detail
+ +

+getTestHeader

+
+public String getTestHeader()
+
+
+
+
+
+ +
Returns:
a user-understandable label for the test
+
+
+
+ +

+getDescription

+
+public Description getDescription()
+
+
+
+
+
+ +
Returns:
the raw description of the context of the failure.
+
+
+
+ +

+getException

+
+public Throwable getException()
+
+
+
+
+
+ +
Returns:
the exception thrown
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getTrace

+
+public String getTrace()
+
+
Convenience method +

+

+
+
+
+ +
Returns:
the printed form of the exception
+
+
+
+ +

+getMessage

+
+public String getMessage()
+
+
Convenience method +

+

+
+
+
+ +
Returns:
the message of the thrown exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/notification/RunListener.html b/javadoc/4.10/org/junit/runner/notification/RunListener.html new file mode 100644 index 000000000000..2e6c4aea0bf0 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/RunListener.html @@ -0,0 +1,431 @@ + + + + + + +RunListener (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.notification +
+Class RunListener

+
+java.lang.Object
+  extended by org.junit.runner.notification.RunListener
+
+
+
+
public class RunListener
extends Object
+ + +

+

If you need to respond to the events during a test run, extend RunListener + and override the appropriate methods. If a listener throws an exception while processing a + test event, it will be removed for the remainder of the test run.

+ +

For example, suppose you have a Cowbell + class that you want to make a noise whenever a test fails. You could write: +

+ public class RingingListener extends RunListener {
+    public void testFailure(Failure failure) {
+       Cowbell.ring();
+    }
+ }
+ 
+

+ +

To invoke your listener, you need to run your tests through JUnitCore. +

+ public void main(String... args) {
+    JUnitCore core= new JUnitCore();
+    core.addListener(new RingingListener());
+    core.run(MyTestClass.class);
+ }
+ 
+

+

+ +

+

+
See Also:
JUnitCore
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RunListener() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidtestAssumptionFailure(Failure failure) + +
+          Called when an atomic test flags that it assumes a condition that is + false
+ voidtestFailure(Failure failure) + +
+          Called when an atomic test fails.
+ voidtestFinished(Description description) + +
+          Called when an atomic test has finished, whether the test succeeds or fails.
+ voidtestIgnored(Description description) + +
+          Called when a test will not be run, generally because a test method is annotated + with Ignore.
+ voidtestRunFinished(Result result) + +
+          Called when all tests have finished
+ voidtestRunStarted(Description description) + +
+          Called before any tests have been run.
+ voidtestStarted(Description description) + +
+          Called when an atomic test is about to be started.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RunListener

+
+public RunListener()
+
+
+ + + + + + + + +
+Method Detail
+ +

+testRunStarted

+
+public void testRunStarted(Description description)
+                    throws Exception
+
+
Called before any tests have been run. +

+

+
Parameters:
description - describes the tests to be run +
Throws: +
Exception
+
+
+
+ +

+testRunFinished

+
+public void testRunFinished(Result result)
+                     throws Exception
+
+
Called when all tests have finished +

+

+
Parameters:
result - the summary of the test run, including all the tests that failed +
Throws: +
Exception
+
+
+
+ +

+testStarted

+
+public void testStarted(Description description)
+                 throws Exception
+
+
Called when an atomic test is about to be started. +

+

+
Parameters:
description - the description of the test that is about to be run + (generally a class and method name) +
Throws: +
Exception
+
+
+
+ +

+testFinished

+
+public void testFinished(Description description)
+                  throws Exception
+
+
Called when an atomic test has finished, whether the test succeeds or fails. +

+

+
Parameters:
description - the description of the test that just ran +
Throws: +
Exception
+
+
+
+ +

+testFailure

+
+public void testFailure(Failure failure)
+                 throws Exception
+
+
Called when an atomic test fails. +

+

+
Parameters:
failure - describes the test that failed and the exception that was thrown +
Throws: +
Exception
+
+
+
+ +

+testAssumptionFailure

+
+public void testAssumptionFailure(Failure failure)
+
+
Called when an atomic test flags that it assumes a condition that is + false +

+

+
Parameters:
failure - describes the test that failed and the + AssumptionViolatedException that was thrown
+
+
+
+ +

+testIgnored

+
+public void testIgnored(Description description)
+                 throws Exception
+
+
Called when a test will not be run, generally because a test method is annotated + with Ignore. +

+

+
Parameters:
description - describes the test that will not be run +
Throws: +
Exception
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/notification/RunNotifier.html b/javadoc/4.10/org/junit/runner/notification/RunNotifier.html new file mode 100644 index 000000000000..4abc8ea77306 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/RunNotifier.html @@ -0,0 +1,481 @@ + + + + + + +RunNotifier (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.notification +
+Class RunNotifier

+
+java.lang.Object
+  extended by org.junit.runner.notification.RunNotifier
+
+
+
+
public class RunNotifier
extends Object
+ + +

+If you write custom runners, you may need to notify JUnit of your progress running tests. + Do this by invoking the RunNotifier passed to your implementation of + Runner.run(RunNotifier). Future evolution of this class is likely to + move fireTestRunStarted(Description) and fireTestRunFinished(Result) + to a separate class since they should only be called once per run. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
RunNotifier() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddFirstListener(RunListener listener) + +
+          Internal use only.
+ voidaddListener(RunListener listener) + +
+          Internal use only
+ voidfireTestAssumptionFailed(Failure failure) + +
+          Invoke to tell listeners that an atomic test flagged that it assumed + something false.
+ voidfireTestFailure(Failure failure) + +
+          Invoke to tell listeners that an atomic test failed.
+ voidfireTestFinished(Description description) + +
+          Invoke to tell listeners that an atomic test finished.
+ voidfireTestIgnored(Description description) + +
+          Invoke to tell listeners that an atomic test was ignored.
+ voidfireTestRunFinished(Result result) + +
+          Do not invoke.
+ voidfireTestRunStarted(Description description) + +
+          Do not invoke.
+ voidfireTestStarted(Description description) + +
+          Invoke to tell listeners that an atomic test is about to start.
+ voidpleaseStop() + +
+          Ask that the tests run stop before starting the next test.
+ voidremoveListener(RunListener listener) + +
+          Internal use only
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RunNotifier

+
+public RunNotifier()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addListener

+
+public void addListener(RunListener listener)
+
+
Internal use only +

+

+
+
+
+
+ +

+removeListener

+
+public void removeListener(RunListener listener)
+
+
Internal use only +

+

+
+
+
+
+ +

+fireTestRunStarted

+
+public void fireTestRunStarted(Description description)
+
+
Do not invoke. +

+

+
+
+
+
+ +

+fireTestRunFinished

+
+public void fireTestRunFinished(Result result)
+
+
Do not invoke. +

+

+
+
+
+
+ +

+fireTestStarted

+
+public void fireTestStarted(Description description)
+                     throws StoppedByUserException
+
+
Invoke to tell listeners that an atomic test is about to start. +

+

+
Parameters:
description - the description of the atomic test (generally a class and method name) +
Throws: +
StoppedByUserException - thrown if a user has requested that the test run stop
+
+
+
+ +

+fireTestFailure

+
+public void fireTestFailure(Failure failure)
+
+
Invoke to tell listeners that an atomic test failed. +

+

+
Parameters:
failure - the description of the test that failed and the exception thrown
+
+
+
+ +

+fireTestAssumptionFailed

+
+public void fireTestAssumptionFailed(Failure failure)
+
+
Invoke to tell listeners that an atomic test flagged that it assumed + something false. +

+

+
Parameters:
failure - the description of the test that failed and the + AssumptionViolatedException thrown
+
+
+
+ +

+fireTestIgnored

+
+public void fireTestIgnored(Description description)
+
+
Invoke to tell listeners that an atomic test was ignored. +

+

+
Parameters:
description - the description of the ignored test
+
+
+
+ +

+fireTestFinished

+
+public void fireTestFinished(Description description)
+
+
Invoke to tell listeners that an atomic test finished. Always invoke + fireTestFinished(Description) if you invoke fireTestStarted(Description) + as listeners are likely to expect them to come in pairs. +

+

+
Parameters:
description - the description of the test that finished
+
+
+
+ +

+pleaseStop

+
+public void pleaseStop()
+
+
Ask that the tests run stop before starting the next test. Phrased politely because + the test currently running will not be interrupted. It seems a little odd to put this + functionality here, but the RunNotifier is the only object guaranteed + to be shared amongst the many runners involved. +

+

+
+
+
+
+ +

+addFirstListener

+
+public void addFirstListener(RunListener listener)
+
+
Internal use only. The Result's listener must be first. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/notification/StoppedByUserException.html b/javadoc/4.10/org/junit/runner/notification/StoppedByUserException.html new file mode 100644 index 000000000000..6573b3f4835f --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/StoppedByUserException.html @@ -0,0 +1,245 @@ + + + + + + +StoppedByUserException (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runner.notification +
+Class StoppedByUserException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by org.junit.runner.notification.StoppedByUserException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class StoppedByUserException
extends RuntimeException
+ + +

+Thrown when a user has requested that the test run stop. Writers of + test running GUIs should be prepared to catch a StoppedByUserException. +

+ +

+

+
See Also:
RunNotifier, +Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StoppedByUserException() + +
+           
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StoppedByUserException

+
+public StoppedByUserException()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/notification/package-frame.html b/javadoc/4.10/org/junit/runner/notification/package-frame.html new file mode 100644 index 000000000000..00260e665be6 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/package-frame.html @@ -0,0 +1,47 @@ + + + + + + +org.junit.runner.notification (JUnit API) + + + + + + + + + + + +org.junit.runner.notification + + + + +
+Classes  + +
+Failure +
+RunListener +
+RunNotifier
+ + + + + + +
+Exceptions  + +
+StoppedByUserException
+ + + + diff --git a/javadoc/4.10/org/junit/runner/notification/package-summary.html b/javadoc/4.10/org/junit/runner/notification/package-summary.html new file mode 100644 index 000000000000..c78b6c20d532 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/package-summary.html @@ -0,0 +1,196 @@ + + + + + + +org.junit.runner.notification (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.runner.notification +

+Provides information about a test run. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
FailureA Failure holds a description of the failed test and the + exception that was thrown while running it.
RunListenerIf you need to respond to the events during a test run, extend RunListener + and override the appropriate methods.
RunNotifierIf you write custom runners, you may need to notify JUnit of your progress running tests.
+  + +

+ + + + + + + + + +
+Exception Summary
StoppedByUserExceptionThrown when a user has requested that the test run stop.
+  + +

+

+Package org.junit.runner.notification Description +

+ +

+Provides information about a test run. +

+ +

+

+
Since:
+
4.0
+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/notification/package-tree.html b/javadoc/4.10/org/junit/runner/notification/package-tree.html new file mode 100644 index 000000000000..47e2e9144d21 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/notification/package-tree.html @@ -0,0 +1,159 @@ + + + + + + +org.junit.runner.notification Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.runner.notification +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/package-frame.html b/javadoc/4.10/org/junit/runner/package-frame.html new file mode 100644 index 000000000000..720f9113b9c3 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/package-frame.html @@ -0,0 +1,64 @@ + + + + + + +org.junit.runner (JUnit API) + + + + + + + + + + + +org.junit.runner + + + + +
+Interfaces  + +
+Describable
+ + + + + + +
+Classes  + +
+Computer +
+Description +
+JUnitCore +
+Request +
+Result +
+Runner
+ + + + + + +
+Annotation Types  + +
+RunWith
+ + + + diff --git a/javadoc/4.10/org/junit/runner/package-summary.html b/javadoc/4.10/org/junit/runner/package-summary.html new file mode 100644 index 000000000000..d06e2043d941 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/package-summary.html @@ -0,0 +1,224 @@ + + + + + + +org.junit.runner (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.runner +

+Provides classes used to describe, collect, run and analyze multiple tests. +

+See: +
+          Description +

+ + + + + + + + + +
+Interface Summary
DescribableRepresents an object that can describe itself
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ComputerRepresents a strategy for computing runners and suites.
DescriptionA Description describes a test which is to be run or has been run.
JUnitCoreJUnitCore is a facade for running tests.
RequestA Request is an abstract description of tests to be run.
ResultA Result collects and summarizes information from running multiple + tests.
RunnerA Runner runs tests and notifies a RunNotifier + of significant events as it does so.
+  + +

+ + + + + + + + + +
+Annotation Types Summary
RunWithWhen a class is annotated with @RunWith or extends a class annotated + with @RunWith, JUnit will invoke the class it references to run the + tests in that class instead of the runner built into JUnit.
+  + +

+

+Package org.junit.runner Description +

+ +

+Provides classes used to describe, collect, run and analyze multiple tests. +

+ +

+

+
Since:
+
4.0
+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runner/package-tree.html b/javadoc/4.10/org/junit/runner/package-tree.html new file mode 100644 index 000000000000..704d81774c94 --- /dev/null +++ b/javadoc/4.10/org/junit/runner/package-tree.html @@ -0,0 +1,165 @@ + + + + + + +org.junit.runner Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.runner +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/AllTests.html b/javadoc/4.10/org/junit/runners/AllTests.html new file mode 100644 index 000000000000..a47813b23644 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/AllTests.html @@ -0,0 +1,276 @@ + + + + + + +AllTests (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Class AllTests

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.internal.runners.JUnit38ClassRunner
+          extended by org.junit.internal.runners.SuiteMethod
+              extended by org.junit.runners.AllTests
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
+
public class AllTests
extends org.junit.internal.runners.SuiteMethod
+ + +

+Runner for use with JUnit 3.8.x-style AllTests classes + (those that only implement a static suite() + method). For example: +

+ @RunWith(AllTests.class)
+ public class ProductTests {
+    public static junit.framework.Test suite() {
+       ...
+    }
+ }
+ 
+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AllTests(Class<?> klass) + +
+          Only called reflectively.
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class org.junit.internal.runners.SuiteMethod
testFromSuiteMethod
+ + + + + + + +
Methods inherited from class org.junit.internal.runners.JUnit38ClassRunner
createAdaptingListener, filter, getDescription, run, sort
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AllTests

+
+public AllTests(Class<?> klass)
+         throws Throwable
+
+
Only called reflectively. Do not use programmatically. +

+

+ +
Throws: +
Throwable
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/BlockJUnit4ClassRunner.html b/javadoc/4.10/org/junit/runners/BlockJUnit4ClassRunner.html new file mode 100644 index 000000000000..9e0369fd9c16 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/BlockJUnit4ClassRunner.html @@ -0,0 +1,846 @@ + + + + + + +BlockJUnit4ClassRunner (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Class BlockJUnit4ClassRunner

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<FrameworkMethod>
+          extended by org.junit.runners.BlockJUnit4ClassRunner
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
Direct Known Subclasses:
JUnit4, Theories
+
+
+
+
public class BlockJUnit4ClassRunner
extends ParentRunner<FrameworkMethod>
+ + +

+Implements the JUnit 4 standard test case class model, as defined by the + annotations in the org.junit package. Many users will never notice this + class: it is now the default test class runner, but it should have exactly + the same behavior as the old test class runner (JUnit4ClassRunner). + + BlockJUnit4ClassRunner has advantages for writers of custom JUnit runners + that are slight changes to the default behavior, however: + +

+

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
BlockJUnit4ClassRunner(Class<?> klass) + +
+          Creates a BlockJUnit4ClassRunner to run klass
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidcollectInitializationErrors(List<Throwable> errors) + +
+          Adds to errors a throwable for each problem noted with the test class (available from ParentRunner.getTestClass()).
+protected  List<FrameworkMethod>computeTestMethods() + +
+          Returns the methods that run tests.
+protected  ObjectcreateTest() + +
+          Returns a new fixture for running a test.
+protected  DescriptiondescribeChild(FrameworkMethod method) + +
+          Returns a Description for child, which can be assumed to + be an element of the list returned by ParentRunner.getChildren()
+protected  List<FrameworkMethod>getChildren() + +
+          Returns a list of objects that define the children of this Runner.
+protected  List<TestRule>getTestRules(Object target) + +
+           
+protected  StatementmethodBlock(FrameworkMethod method) + +
+          Returns a Statement that, when executed, either returns normally if + method passes, or throws an exception if method fails.
+protected  StatementmethodInvoker(FrameworkMethod method, + Object test) + +
+          Returns a Statement that invokes method on test
+protected  StatementpossiblyExpectingExceptions(FrameworkMethod method, + Object test, + Statement next) + +
+          Deprecated. Will be private soon: use Rules instead
+protected  List<MethodRule>rules(Object target) + +
+          Deprecated. MethodRule is a deprecated interface. Port to + TestRule and + getTestRules(Object)
+protected  voidrunChild(FrameworkMethod method, + RunNotifier notifier) + +
+          Runs the test corresponding to child, which can be assumed to be + an element of the list returned by ParentRunner.getChildren().
+protected  StringtestName(FrameworkMethod method) + +
+          Returns the name that describes method for Descriptions.
+protected  voidvalidateConstructor(List<Throwable> errors) + +
+          Adds to errors if the test class has more than one constructor, + or if the constructor takes parameters.
+protected  voidvalidateInstanceMethods(List<Throwable> errors) + +
+          Deprecated. unused API, will go away in future version
+protected  voidvalidateNoNonStaticInnerClass(List<Throwable> errors) + +
+           
+protected  voidvalidateOnlyOneConstructor(List<Throwable> errors) + +
+          Adds to errors if the test class has more than one constructor + (do not override)
+protected  voidvalidateTestMethods(List<Throwable> errors) + +
+          Adds to errors for each method annotated with @Testthat + is not a public, void instance method with no arguments.
+protected  voidvalidateZeroArgConstructor(List<Throwable> errors) + +
+          Adds to errors if the test class's single constructor takes + parameters (do not override)
+protected  StatementwithAfters(FrameworkMethod method, + Object target, + Statement statement) + +
+          Deprecated. Will be private soon: use Rules instead
+protected  StatementwithBefores(FrameworkMethod method, + Object target, + Statement statement) + +
+          Deprecated. Will be private soon: use Rules instead
+protected  StatementwithPotentialTimeout(FrameworkMethod method, + Object test, + Statement next) + +
+          Deprecated. Will be private soon: use Rules instead
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BlockJUnit4ClassRunner

+
+public BlockJUnit4ClassRunner(Class<?> klass)
+                       throws InitializationError
+
+
Creates a BlockJUnit4ClassRunner to run klass +

+

+ +
Throws: +
InitializationError - if the test class is malformed.
+
+ + + + + + + + +
+Method Detail
+ +

+runChild

+
+protected void runChild(FrameworkMethod method,
+                        RunNotifier notifier)
+
+
Description copied from class: ParentRunner
+
Runs the test corresponding to child, which can be assumed to be + an element of the list returned by ParentRunner.getChildren(). + Subclasses are responsible for making sure that relevant test events are + reported through notifier +

+

+
Specified by:
runChild in class ParentRunner<FrameworkMethod>
+
+
+
+
+
+
+ +

+describeChild

+
+protected Description describeChild(FrameworkMethod method)
+
+
Description copied from class: ParentRunner
+
Returns a Description for child, which can be assumed to + be an element of the list returned by ParentRunner.getChildren() +

+

+
Specified by:
describeChild in class ParentRunner<FrameworkMethod>
+
+
+
+
+
+
+ +

+getChildren

+
+protected List<FrameworkMethod> getChildren()
+
+
Description copied from class: ParentRunner
+
Returns a list of objects that define the children of this Runner. +

+

+
Specified by:
getChildren in class ParentRunner<FrameworkMethod>
+
+
+
+
+
+
+ +

+computeTestMethods

+
+protected List<FrameworkMethod> computeTestMethods()
+
+
Returns the methods that run tests. Default implementation returns all + methods annotated with @Test on this class and superclasses that + are not overridden. +

+

+
+
+
+
+ +

+collectInitializationErrors

+
+protected void collectInitializationErrors(List<Throwable> errors)
+
+
Description copied from class: ParentRunner
+
Adds to errors a throwable for each problem noted with the test class (available from ParentRunner.getTestClass()). + Default implementation adds an error for each method annotated with + @BeforeClass or @AfterClass that is not + public static void with no arguments. +

+

+
Overrides:
collectInitializationErrors in class ParentRunner<FrameworkMethod>
+
+
+
+
+
+
+ +

+validateNoNonStaticInnerClass

+
+protected void validateNoNonStaticInnerClass(List<Throwable> errors)
+
+
+
+
+
+
+ +

+validateConstructor

+
+protected void validateConstructor(List<Throwable> errors)
+
+
Adds to errors if the test class has more than one constructor, + or if the constructor takes parameters. Override if a subclass requires + different validation rules. +

+

+
+
+
+
+ +

+validateOnlyOneConstructor

+
+protected void validateOnlyOneConstructor(List<Throwable> errors)
+
+
Adds to errors if the test class has more than one constructor + (do not override) +

+

+
+
+
+
+ +

+validateZeroArgConstructor

+
+protected void validateZeroArgConstructor(List<Throwable> errors)
+
+
Adds to errors if the test class's single constructor takes + parameters (do not override) +

+

+
+
+
+
+ +

+validateInstanceMethods

+
+@Deprecated
+protected void validateInstanceMethods(List<Throwable> errors)
+
+
Deprecated. unused API, will go away in future version +

+

Adds to errors for each method annotated with @Test, + @Before, or @After that is not a public, void instance + method with no arguments. +

+

+
+
+
+
+ +

+validateTestMethods

+
+protected void validateTestMethods(List<Throwable> errors)
+
+
Adds to errors for each method annotated with @Testthat + is not a public, void instance method with no arguments. +

+

+
+
+
+
+ +

+createTest

+
+protected Object createTest()
+                     throws Exception
+
+
Returns a new fixture for running a test. Default implementation executes + the test class's no-argument constructor (validation should have ensured + one exists). +

+

+ +
Throws: +
Exception
+
+
+
+ +

+testName

+
+protected String testName(FrameworkMethod method)
+
+
Returns the name that describes method for Descriptions. + Default implementation is the method's name +

+

+
+
+
+
+ +

+methodBlock

+
+protected Statement methodBlock(FrameworkMethod method)
+
+
Returns a Statement that, when executed, either returns normally if + method passes, or throws an exception if method fails. + + Here is an outline of the default implementation: + +
    +
  • Invoke method on the result of createTest(), and + throw any exceptions thrown by either operation. +
  • HOWEVER, if method's @Test annotation has the expecting attribute, return normally only if the previous step threw an + exception of the correct type, and throw an exception otherwise. +
  • HOWEVER, if method's @Test annotation has the timeout attribute, throw an exception if the previous step takes more + than the specified number of milliseconds. +
  • ALWAYS run all non-overridden @Before methods on this class + and superclasses before any of the previous steps; if any throws an + Exception, stop execution and pass the exception on. +
  • ALWAYS run all non-overridden @After methods on this class + and superclasses after any of the previous steps; all After methods are + always executed: exceptions thrown by previous steps are combined, if + necessary, with exceptions from After methods into a + MultipleFailureException. +
  • ALWAYS allow @Rule fields to modify the execution of the + above steps. A Rule may prevent all execution of the above steps, + or add additional behavior before and after, or modify thrown exceptions. + For more information, see TestRule +
+ + This can be overridden in subclasses, either by overriding this method, + or the implementations creating each sub-statement. +

+

+
+
+
+
+ +

+methodInvoker

+
+protected Statement methodInvoker(FrameworkMethod method,
+                                  Object test)
+
+
Returns a Statement that invokes method on test +

+

+
+
+
+
+ +

+possiblyExpectingExceptions

+
+@Deprecated
+protected Statement possiblyExpectingExceptions(FrameworkMethod method,
+                                                           Object test,
+                                                           Statement next)
+
+
Deprecated. Will be private soon: use Rules instead +

+

Returns a Statement: if method's @Test annotation + has the expecting attribute, return normally only if next + throws an exception of the correct type, and throw an exception + otherwise. +

+

+
+
+
+
+ +

+withPotentialTimeout

+
+@Deprecated
+protected Statement withPotentialTimeout(FrameworkMethod method,
+                                                    Object test,
+                                                    Statement next)
+
+
Deprecated. Will be private soon: use Rules instead +

+

Returns a Statement: if method's @Test annotation + has the timeout attribute, throw an exception if next + takes more than the specified number of milliseconds. +

+

+
+
+
+
+ +

+withBefores

+
+@Deprecated
+protected Statement withBefores(FrameworkMethod method,
+                                           Object target,
+                                           Statement statement)
+
+
Deprecated. Will be private soon: use Rules instead +

+

Returns a Statement: run all non-overridden @Before + methods on this class and superclasses before running next; if + any throws an Exception, stop execution and pass the exception on. +

+

+
+
+
+
+ +

+withAfters

+
+@Deprecated
+protected Statement withAfters(FrameworkMethod method,
+                                          Object target,
+                                          Statement statement)
+
+
Deprecated. Will be private soon: use Rules instead +

+

Returns a Statement: run all non-overridden @After + methods on this class and superclasses before running next; all + After methods are always executed: exceptions thrown by previous steps + are combined, if necessary, with exceptions from After methods into a + MultipleFailureException. +

+

+
+
+
+
+ +

+rules

+
+@Deprecated
+protected List<MethodRule> rules(Object target)
+
+
Deprecated. MethodRule is a deprecated interface. Port to + TestRule and + getTestRules(Object) +

+

+
Parameters:
target - the test case instance +
Returns:
a list of MethodRules that should be applied when executing this + test
+
+
+
+ +

+getTestRules

+
+protected List<TestRule> getTestRules(Object target)
+
+
+
Parameters:
target - the test case instance +
Returns:
a list of TestRules that should be applied when executing this + test
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/JUnit4.html b/javadoc/4.10/org/junit/runners/JUnit4.html new file mode 100644 index 000000000000..2f021f4b0234 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/JUnit4.html @@ -0,0 +1,273 @@ + + + + + + +JUnit4 (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Class JUnit4

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<FrameworkMethod>
+          extended by org.junit.runners.BlockJUnit4ClassRunner
+              extended by org.junit.runners.JUnit4
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
+
public final class JUnit4
extends BlockJUnit4ClassRunner
+ + +

+Aliases the current default JUnit 4 class runner, for future-proofing. If + future versions of JUnit change the default Runner class, they will also + change the definition of this class. Developers wanting to explicitly tag a + class as a JUnit 4 class should use @RunWith(JUnit4.class), not, + for example in JUnit 4.5, @RunWith(BlockJUnit4ClassRunner.class). + This is the only way this class should be used--any extension that + depends on the implementation details of this class is likely to break + in future versions. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
JUnit4(Class<?> klass) + +
+          Constructs a new instance of the default runner
+  + + + + + + + +
+Method Summary
+ + + + + + + +
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+JUnit4

+
+public JUnit4(Class<?> klass)
+       throws InitializationError
+
+
Constructs a new instance of the default runner +

+

+ +
Throws: +
InitializationError
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/Parameterized.Parameters.html b/javadoc/4.10/org/junit/runners/Parameterized.Parameters.html new file mode 100644 index 000000000000..be9f61d889c3 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/Parameterized.Parameters.html @@ -0,0 +1,172 @@ + + + + + + +Parameterized.Parameters (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Annotation Type Parameterized.Parameters

+
+
+
@Retention(value=RUNTIME)
+@Target(value=METHOD)
+public static @interface Parameterized.Parameters
+ + +

+Annotation for a method which provides parameters to be injected into the + test class constructor by Parameterized +

+ +

+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/Parameterized.html b/javadoc/4.10/org/junit/runners/Parameterized.html new file mode 100644 index 000000000000..3668ae3c0041 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/Parameterized.html @@ -0,0 +1,366 @@ + + + + + + +Parameterized (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Class Parameterized

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<Runner>
+          extended by org.junit.runners.Suite
+              extended by org.junit.runners.Parameterized
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
+
public class Parameterized
extends Suite
+ + +

+

+ The custom runner Parameterized implements parameterized tests. + When running a parameterized test class, instances are created for the + cross-product of the test methods and the test data elements. +

+ + For example, to test a Fibonacci function, write: + +
+ @RunWith(Parameterized.class)
+ public class FibonacciTest {
+        @Parameters
+        public static List<Object[]> data() {
+                return Arrays.asList(new Object[][] {
+                        { 0, 0 }, { 1, 1 }, { 2, 1 }, { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 }
+                });
+        }
+ 
+        private int fInput;
+ 
+        private int fExpected;
+ 
+        public FibonacciTest(int input, int expected) {
+                fInput= input;
+                fExpected= expected;
+        }
+ 
+        @Test
+        public void test() {
+                assertEquals(fExpected, Fibonacci.compute(fInput));
+        }
+ }
+ 
+ +

+ Each instance of FibonacciTest will be constructed using the + two-argument constructor and the data values in the + @Parameters method. +

+

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static interfaceParameterized.Parameters + +
+          Annotation for a method which provides parameters to be injected into the + test class constructor by Parameterized
+ + + + + + + +
Nested classes/interfaces inherited from class org.junit.runners.Suite
Suite.SuiteClasses
+  + + + + + + + + + + + +
+Constructor Summary
Parameterized(Class<?> klass) + +
+          Only called reflectively.
+  + + + + + + + + + + + +
+Method Summary
+protected  List<Runner>getChildren() + +
+          Returns a list of objects that define the children of this Runner.
+ + + + + + + +
Methods inherited from class org.junit.runners.Suite
describeChild, emptySuite, runChild
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Parameterized

+
+public Parameterized(Class<?> klass)
+              throws Throwable
+
+
Only called reflectively. Do not use programmatically. +

+

+ +
Throws: +
Throwable
+
+ + + + + + + + +
+Method Detail
+ +

+getChildren

+
+protected List<Runner> getChildren()
+
+
Description copied from class: ParentRunner
+
Returns a list of objects that define the children of this Runner. +

+

+
Overrides:
getChildren in class Suite
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/ParentRunner.html b/javadoc/4.10/org/junit/runners/ParentRunner.html new file mode 100644 index 000000000000..0d07f127d813 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/ParentRunner.html @@ -0,0 +1,794 @@ + + + + + + +ParentRunner (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Class ParentRunner<T>

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<T>
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
Direct Known Subclasses:
BlockJUnit4ClassRunner, Suite
+
+
+
+
public abstract class ParentRunner<T>
extends Runner
implements Filterable, Sortable
+ + +

+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 + type T. (For BlockJUnit4ClassRunner, T is + Method . For Suite, T is Class.) Subclasses + must implement finding the children of the node, describing each child, and + running each child. ParentRunner will filter and sort children, handle + @BeforeClass and @AfterClass methods, + handle annotated ClassRules, create a composite + Description, and run children sequentially. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected ParentRunner(Class<?> testClass) + +
+          Constructs a new ParentRunner that will run @TestClass
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StatementchildrenInvoker(RunNotifier notifier) + +
+          Returns a Statement: Call runChild(Object, RunNotifier) + on each object returned by getChildren() (subject to any imposed + filter and sort)
+protected  StatementclassBlock(RunNotifier notifier) + +
+          Constructs a Statement to run all of the tests in the test class.
+protected  List<TestRule>classRules() + +
+           
+protected  voidcollectInitializationErrors(List<Throwable> errors) + +
+          Adds to errors a throwable for each problem noted with the test class (available from getTestClass()).
+protected abstract  DescriptiondescribeChild(T child) + +
+          Returns a Description for child, which can be assumed to + be an element of the list returned by getChildren()
+ voidfilter(Filter filter) + +
+          Remove tests that don't pass the parameter filter.
+protected abstract  List<T>getChildren() + +
+          Returns a list of objects that define the children of this Runner.
+ DescriptiongetDescription() + +
+           
+protected  StringgetName() + +
+          Returns a name used to describe this Runner
+protected  Annotation[]getRunnerAnnotations() + +
+           
+ TestClassgetTestClass() + +
+          Returns a TestClass object wrapping the class to be executed.
+ voidrun(RunNotifier notifier) + +
+          Run the tests for this runner.
+protected abstract  voidrunChild(T child, + RunNotifier notifier) + +
+          Runs the test corresponding to child, which can be assumed to be + an element of the list returned by getChildren().
+protected  voidrunLeaf(Statement statement, + Description description, + RunNotifier notifier) + +
+          Runs a Statement that represents a leaf (aka atomic) test.
+ voidsetScheduler(RunnerScheduler scheduler) + +
+          Sets a scheduler that determines the order and parallelization + of children.
+ voidsort(Sorter sorter) + +
+          Sorts the tests using sorter
+protected  voidvalidatePublicVoidNoArgMethods(Class<? extends Annotation> annotation, + boolean isStatic, + List<Throwable> errors) + +
+          Adds to errors if any method in this class is annotated with + annotation, but: + + is not public, or + takes parameters, or + returns something other than void, or + is static (given isStatic is false), or + is not static (given isStatic is true).
+protected  StatementwithAfterClasses(Statement statement) + +
+          Returns a Statement: run all non-overridden @AfterClass methods on this class + and superclasses before executing statement; all AfterClass methods are + always executed: exceptions thrown by previous steps are combined, if + necessary, with exceptions from AfterClass methods into a + MultipleFailureException.
+protected  StatementwithBeforeClasses(Statement statement) + +
+          Returns a Statement: run all non-overridden @BeforeClass methods on this class + and superclasses before executing statement; if any throws an + Exception, stop execution and pass the exception on.
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParentRunner

+
+protected ParentRunner(Class<?> testClass)
+                throws InitializationError
+
+
Constructs a new ParentRunner that will run @TestClass +

+

+ +
Throws: +
InitializationError
+
+ + + + + + + + +
+Method Detail
+ +

+getChildren

+
+protected abstract List<T> getChildren()
+
+
Returns a list of objects that define the children of this Runner. +

+

+
+
+
+
+
+
+
+ +

+describeChild

+
+protected abstract Description describeChild(T child)
+
+
Returns a Description for child, which can be assumed to + be an element of the list returned by getChildren() +

+

+
+
+
+
+
+
+
+ +

+runChild

+
+protected abstract void runChild(T child,
+                                 RunNotifier notifier)
+
+
Runs the test corresponding to child, which can be assumed to be + an element of the list returned by getChildren(). + Subclasses are responsible for making sure that relevant test events are + reported through notifier +

+

+
+
+
+
+
+
+
+ +

+collectInitializationErrors

+
+protected void collectInitializationErrors(List<Throwable> errors)
+
+
Adds to errors a throwable for each problem noted with the test class (available from getTestClass()). + Default implementation adds an error for each method annotated with + @BeforeClass or @AfterClass that is not + public static void with no arguments. +

+

+
+
+
+
+
+
+
+ +

+validatePublicVoidNoArgMethods

+
+protected void validatePublicVoidNoArgMethods(Class<? extends Annotation> annotation,
+                                              boolean isStatic,
+                                              List<Throwable> errors)
+
+
Adds to errors if any method in this class is annotated with + annotation, but: +
    +
  • is not public, or +
  • takes parameters, or +
  • returns something other than void, or +
  • is static (given isStatic is false), or +
  • is not static (given isStatic is true). +

    +

    +
    +
    +
    +
    +
    +
+
+ +

+classBlock

+
+protected Statement classBlock(RunNotifier notifier)
+
+
Constructs a Statement to run all of the tests in the test class. Override to add pre-/post-processing. + Here is an outline of the implementation: +
    +
  • Call runChild(Object, RunNotifier) on each object returned by getChildren() (subject to any imposed filter and sort).
  • +
  • ALWAYS run all non-overridden @BeforeClass methods on this class + and superclasses before the previous step; if any throws an + Exception, stop execution and pass the exception on. +
  • ALWAYS run all non-overridden @AfterClass methods on this class + and superclasses before any of the previous steps; all AfterClass methods are + always executed: exceptions thrown by previous steps are combined, if + necessary, with exceptions from AfterClass methods into a + MultipleFailureException. +
+

+

+
+
+
+
Parameters:
notifier - +
Returns:
Statement
+
+
+
+ +

+withBeforeClasses

+
+protected Statement withBeforeClasses(Statement statement)
+
+
Returns a Statement: run all non-overridden @BeforeClass methods on this class + and superclasses before executing statement; if any throws an + Exception, stop execution and pass the exception on. +

+

+
+
+
+
+
+
+
+ +

+withAfterClasses

+
+protected Statement withAfterClasses(Statement statement)
+
+
Returns a Statement: run all non-overridden @AfterClass methods on this class + and superclasses before executing statement; all AfterClass methods are + always executed: exceptions thrown by previous steps are combined, if + necessary, with exceptions from AfterClass methods into a + MultipleFailureException. +

+

+
+
+
+
+
+
+
+ +

+classRules

+
+protected List<TestRule> classRules()
+
+
+
+
+
+ +
Returns:
the ClassRules that can transform the block that runs + each method in the tested class.
+
+
+
+ +

+childrenInvoker

+
+protected Statement childrenInvoker(RunNotifier notifier)
+
+
Returns a Statement: Call runChild(Object, RunNotifier) + on each object returned by getChildren() (subject to any imposed + filter and sort) +

+

+
+
+
+
+
+
+
+ +

+getName

+
+protected String getName()
+
+
Returns a name used to describe this Runner +

+

+
+
+
+
+
+
+
+ +

+getTestClass

+
+public final TestClass getTestClass()
+
+
Returns a TestClass object wrapping the class to be executed. +

+

+
+
+
+
+
+
+
+ +

+runLeaf

+
+protected final void runLeaf(Statement statement,
+                             Description description,
+                             RunNotifier notifier)
+
+
Runs a Statement that represents a leaf (aka atomic) test. +

+

+
+
+
+
+
+
+
+ +

+getRunnerAnnotations

+
+protected Annotation[] getRunnerAnnotations()
+
+
+
+
+
+ +
Returns:
the annotations that should be attached to this runner's + description.
+
+
+
+ +

+getDescription

+
+public Description getDescription()
+
+
+
Specified by:
getDescription in interface Describable
Specified by:
getDescription in class Runner
+
+
+ +
Returns:
a Description showing the tests to be run by the receiver
+
+
+
+ +

+run

+
+public void run(RunNotifier notifier)
+
+
Description copied from class: Runner
+
Run the tests for this runner. +

+

+
Specified by:
run in class Runner
+
+
+
Parameters:
notifier - will be notified of events while tests are being run--tests being + started, finishing, and failing
+
+
+
+ +

+filter

+
+public void filter(Filter filter)
+            throws NoTestsRemainException
+
+
Description copied from interface: Filterable
+
Remove tests that don't pass the parameter filter. +

+

+
Specified by:
filter in interface Filterable
+
+
+
Parameters:
filter - the Filter to apply +
Throws: +
NoTestsRemainException - if all tests are filtered out
+
+
+
+ +

+sort

+
+public void sort(Sorter sorter)
+
+
Description copied from interface: Sortable
+
Sorts the tests using sorter +

+

+
Specified by:
sort in interface Sortable
+
+
+
Parameters:
sorter - the Sorter to use for sorting the tests
+
+
+
+ +

+setScheduler

+
+public void setScheduler(RunnerScheduler scheduler)
+
+
Sets a scheduler that determines the order and parallelization + of children. Highly experimental feature that may change. +

+

+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/Suite.SuiteClasses.html b/javadoc/4.10/org/junit/runners/Suite.SuiteClasses.html new file mode 100644 index 000000000000..a4a44431cef1 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/Suite.SuiteClasses.html @@ -0,0 +1,214 @@ + + + + + + +Suite.SuiteClasses (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Annotation Type Suite.SuiteClasses

+
+
+
@Retention(value=RUNTIME)
+@Target(value=TYPE)
+@Inherited
+public static @interface Suite.SuiteClasses
+ + +

+The SuiteClasses annotation specifies the classes to be run when a class + annotated with @RunWith(Suite.class) is run. +

+ +

+


+ +

+ + + + + + + + + + + +
+Required Element Summary
+ Class<?>[]value + +
+           
+  +

+ + + + + + + + +
+Element Detail
+ +

+value

+
+public abstract Class<?>[] value
+
+
+
+
+
+ +
Returns:
the classes to be run
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/Suite.html b/javadoc/4.10/org/junit/runners/Suite.html new file mode 100644 index 000000000000..9009c89e15b8 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/Suite.html @@ -0,0 +1,502 @@ + + + + + + +Suite (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners +
+Class Suite

+
+java.lang.Object
+  extended by org.junit.runner.Runner
+      extended by org.junit.runners.ParentRunner<Runner>
+          extended by org.junit.runners.Suite
+
+
+
All Implemented Interfaces:
Describable, Filterable, Sortable
+
+
+
Direct Known Subclasses:
Categories, Enclosed, Parameterized
+
+
+
+
public class Suite
extends ParentRunner<Runner>
+ + +

+Using Suite as a runner allows you to manually + build a suite containing tests from many classes. It is the JUnit 4 equivalent of the JUnit 3.8.x + static Test suite() method. To use it, annotate a class + with @RunWith(Suite.class) and @SuiteClasses({TestClass1.class, ...}). + When you run this class, it will run all the tests in all the suite classes. +

+ +

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static interfaceSuite.SuiteClasses + +
+          The SuiteClasses annotation specifies the classes to be run when a class + annotated with @RunWith(Suite.class) is run.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected Suite(Class<?> klass, + Class<?>[] suiteClasses) + +
+          Call this when the default builder is good enough.
+protected Suite(Class<?> klass, + List<Runner> runners) + +
+          Called by this class and subclasses once the runners making up the suite have been determined
+ Suite(Class<?> klass, + RunnerBuilder builder) + +
+          Called reflectively on classes annotated with @RunWith(Suite.class)
+ Suite(RunnerBuilder builder, + Class<?>[] classes) + +
+          Call this when there is no single root class (for example, multiple class names + passed on the command line to JUnitCore
+protected Suite(RunnerBuilder builder, + Class<?> klass, + Class<?>[] suiteClasses) + +
+          Called by this class and subclasses once the classes making up the suite have been determined
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  DescriptiondescribeChild(Runner child) + +
+          Returns a Description for child, which can be assumed to + be an element of the list returned by ParentRunner.getChildren()
+static RunneremptySuite() + +
+          Returns an empty suite.
+protected  List<Runner>getChildren() + +
+          Returns a list of objects that define the children of this Runner.
+protected  voidrunChild(Runner runner, + RunNotifier notifier) + +
+          Runs the test corresponding to child, which can be assumed to be + an element of the list returned by ParentRunner.getChildren().
+ + + + + + + +
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses
+ + + + + + + +
Methods inherited from class org.junit.runner.Runner
testCount
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Suite

+
+public Suite(Class<?> klass,
+             RunnerBuilder builder)
+      throws InitializationError
+
+
Called reflectively on classes annotated with @RunWith(Suite.class) +

+

+
Parameters:
klass - the root class
builder - builds runners for classes in the suite +
Throws: +
InitializationError
+
+
+ +

+Suite

+
+public Suite(RunnerBuilder builder,
+             Class<?>[] classes)
+      throws InitializationError
+
+
Call this when there is no single root class (for example, multiple class names + passed on the command line to JUnitCore +

+

+
Parameters:
builder - builds runners for classes in the suite
classes - the classes in the suite +
Throws: +
InitializationError
+
+
+ +

+Suite

+
+protected Suite(Class<?> klass,
+                Class<?>[] suiteClasses)
+         throws InitializationError
+
+
Call this when the default builder is good enough. Left in for compatibility with JUnit 4.4. +

+

+
Parameters:
klass - the root of the suite
suiteClasses - the classes in the suite +
Throws: +
InitializationError
+
+
+ +

+Suite

+
+protected Suite(RunnerBuilder builder,
+                Class<?> klass,
+                Class<?>[] suiteClasses)
+         throws InitializationError
+
+
Called by this class and subclasses once the classes making up the suite have been determined +

+

+
Parameters:
builder - builds runners for classes in the suite
klass - the root of the suite
suiteClasses - the classes in the suite +
Throws: +
InitializationError
+
+
+ +

+Suite

+
+protected Suite(Class<?> klass,
+                List<Runner> runners)
+         throws InitializationError
+
+
Called by this class and subclasses once the runners making up the suite have been determined +

+

+
Parameters:
klass - root of the suite
runners - for each class in the suite, a Runner +
Throws: +
InitializationError
+
+ + + + + + + + +
+Method Detail
+ +

+emptySuite

+
+public static Runner emptySuite()
+
+
Returns an empty suite. +

+

+
+
+
+
+ +

+getChildren

+
+protected List<Runner> getChildren()
+
+
Description copied from class: ParentRunner
+
Returns a list of objects that define the children of this Runner. +

+

+
Specified by:
getChildren in class ParentRunner<Runner>
+
+
+
+
+
+
+ +

+describeChild

+
+protected Description describeChild(Runner child)
+
+
Description copied from class: ParentRunner
+
Returns a Description for child, which can be assumed to + be an element of the list returned by ParentRunner.getChildren() +

+

+
Specified by:
describeChild in class ParentRunner<Runner>
+
+
+
+
+
+
+ +

+runChild

+
+protected void runChild(Runner runner,
+                        RunNotifier notifier)
+
+
Description copied from class: ParentRunner
+
Runs the test corresponding to child, which can be assumed to be + an element of the list returned by ParentRunner.getChildren(). + Subclasses are responsible for making sure that relevant test events are + reported through notifier +

+

+
Specified by:
runChild in class ParentRunner<Runner>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/FrameworkField.html b/javadoc/4.10/org/junit/runners/model/FrameworkField.html new file mode 100644 index 000000000000..f9638b1e3e97 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/FrameworkField.html @@ -0,0 +1,372 @@ + + + + + + +FrameworkField (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class FrameworkField

+
+java.lang.Object
+  extended by org.junit.runners.model.FrameworkField
+
+
+
+
public class FrameworkField
extends Object
+ + +

+Represents a field on a test class (currently used only for Rules in + BlockJUnit4ClassRunner, but custom runners can make other uses) +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Objectget(Object target) + +
+          Attempts to retrieve the value of this field on target
+ Annotation[]getAnnotations() + +
+          Returns the annotations on this method
+ FieldgetField() + +
+           
+ StringgetName() + +
+           
+ Class<?>getType() + +
+           
+ booleanisPublic() + +
+           
+ booleanisShadowedBy(FrameworkField otherMember) + +
+           
+ booleanisStatic() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
Returns the annotations on this method +

+

+
+
+
+
+
+
+
+ +

+isPublic

+
+public boolean isPublic()
+
+
+
+
+
+
+ +

+isShadowedBy

+
+public boolean isShadowedBy(FrameworkField otherMember)
+
+
+
+
+
+
+
+
+
+ +

+isStatic

+
+public boolean isStatic()
+
+
+
+
+
+
+ +

+getField

+
+public Field getField()
+
+
+ +
Returns:
the underlying java Field
+
+
+
+ +

+getType

+
+public Class<?> getType()
+
+
+ +
Returns:
the underlying Java Field type
See Also:
Field.getType()
+
+
+
+ +

+get

+
+public Object get(Object target)
+           throws IllegalArgumentException,
+                  IllegalAccessException
+
+
Attempts to retrieve the value of this field on target +

+

+ +
Throws: +
IllegalArgumentException +
IllegalAccessException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/FrameworkMethod.html b/javadoc/4.10/org/junit/runners/model/FrameworkMethod.html new file mode 100644 index 000000000000..a0a0ac8e6735 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/FrameworkMethod.html @@ -0,0 +1,551 @@ + + + + + + +FrameworkMethod (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class FrameworkMethod

+
+java.lang.Object
+  extended by org.junit.runners.model.FrameworkMethod
+
+
+
+
public class FrameworkMethod
extends Object
+ + +

+Represents a method on a test class to be invoked at the appropriate point in + test execution. These methods are usually marked with an annotation (such as + @Test, @Before, @After, @BeforeClass, + @AfterClass, etc.) +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
FrameworkMethod(Method method) + +
+          Returns a new FrameworkMethod for method
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ + + + + +
+<T extends Annotation> +
+T
+
getAnnotation(Class<T> annotationType) + +
+          Returns the annotation of type annotationType on this method, if + one exists.
+ Annotation[]getAnnotations() + +
+          Returns the annotations on this method
+ MethodgetMethod() + +
+          Returns the underlying Java method
+ StringgetName() + +
+          Returns the method's name
+ inthashCode() + +
+           
+ ObjectinvokeExplosively(Object target, + Object... params) + +
+          Returns the result of invoking this method on target with + parameters params.
+ booleanisShadowedBy(FrameworkMethod other) + +
+           
+ booleanproducesType(Type type) + +
+          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.
+ voidvalidateNoTypeParametersOnArgs(List<Throwable> errors) + +
+           
+ voidvalidatePublicVoid(boolean isStatic, + List<Throwable> errors) + +
+          Adds to errors if this method: + + is not public, or + returns something other than void, or + is static (given isStatic is false), or + is not static (given isStatic is true).
+ voidvalidatePublicVoidNoArg(boolean isStatic, + List<Throwable> errors) + +
+          Adds to errors if this method: + + is not public, or + takes parameters, or + returns something other than void, or + is static (given isStatic is false), or + is not static (given isStatic is true).
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FrameworkMethod

+
+public FrameworkMethod(Method method)
+
+
Returns a new FrameworkMethod for method +

+

+ + + + + + + + +
+Method Detail
+ +

+getMethod

+
+public Method getMethod()
+
+
Returns the underlying Java method +

+

+
+
+
+
+ +

+invokeExplosively

+
+public Object invokeExplosively(Object target,
+                                Object... params)
+                         throws Throwable
+
+
Returns the result of invoking this method on target with + parameters params. InvocationTargetExceptions thrown are + unwrapped, and their causes rethrown. +

+

+ +
Throws: +
Throwable
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the method's name +

+

+
+
+
+
+ +

+validatePublicVoidNoArg

+
+public void validatePublicVoidNoArg(boolean isStatic,
+                                    List<Throwable> errors)
+
+
Adds to errors if this method: +
    +
  • is not public, or +
  • takes parameters, or +
  • returns something other than void, or +
  • is static (given isStatic is false), or +
  • is not static (given isStatic is true). +

    +

    +
    +
    +
+
+ +

+validatePublicVoid

+
+public void validatePublicVoid(boolean isStatic,
+                               List<Throwable> errors)
+
+
Adds to errors if this method: +
    +
  • is not public, or +
  • returns something other than void, or +
  • is static (given isStatic is false), or +
  • is not static (given isStatic is true). +

    +

    +
    +
    +
+
+ +

+validateNoTypeParametersOnArgs

+
+public void validateNoTypeParametersOnArgs(List<Throwable> errors)
+
+
+
+
+
+
+ +

+isShadowedBy

+
+public boolean isShadowedBy(FrameworkMethod other)
+
+
+
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+producesType

+
+@Deprecated
+public boolean producesType(Type type)
+
+
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. +

+

Returns true iff this is a no-arg method that returns a value assignable + to type +

+

+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
Returns the annotations on this method +

+

+
+
+
+
+
+
+
+ +

+getAnnotation

+
+public <T extends Annotation> T getAnnotation(Class<T> annotationType)
+
+
Returns the annotation of type annotationType on this method, if + one exists. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/InitializationError.html b/javadoc/4.10/org/junit/runners/model/InitializationError.html new file mode 100644 index 000000000000..d7edb4cd5320 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/InitializationError.html @@ -0,0 +1,308 @@ + + + + + + +InitializationError (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class InitializationError

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.junit.runners.model.InitializationError
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class InitializationError
extends Exception
+ + +

+Represents one or more problems encountered while initializing a Runner +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
InitializationError(List<Throwable> errors) + +
+          Construct a new InitializationError with one or more + errors errors as causes
InitializationError(String string) + +
+          Construct a new InitializationError with one cause + with message string
InitializationError(Throwable error) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ List<Throwable>getCauses() + +
+          Returns one or more Throwables that led to this initialization error.
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+InitializationError

+
+public InitializationError(List<Throwable> errors)
+
+
Construct a new InitializationError with one or more + errors errors as causes +

+

+
+ +

+InitializationError

+
+public InitializationError(Throwable error)
+
+
+
+ +

+InitializationError

+
+public InitializationError(String string)
+
+
Construct a new InitializationError with one cause + with message string +

+

+ + + + + + + + +
+Method Detail
+ +

+getCauses

+
+public List<Throwable> getCauses()
+
+
Returns one or more Throwables that led to this initialization error. +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/MultipleFailureException.html b/javadoc/4.10/org/junit/runners/model/MultipleFailureException.html new file mode 100644 index 000000000000..d263ee5101cc --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/MultipleFailureException.html @@ -0,0 +1,319 @@ + + + + + + +MultipleFailureException (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class MultipleFailureException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by org.junit.runners.model.MultipleFailureException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class MultipleFailureException
extends Exception
+ + +

+Collects multiple Throwables into one exception. +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
MultipleFailureException(List<Throwable> errors) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidassertEmpty(List<Throwable> errors) + +
+          Asserts that a list of throwables is empty.
+ List<Throwable>getFailures() + +
+           
+ StringgetMessage() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+MultipleFailureException

+
+public MultipleFailureException(List<Throwable> errors)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getFailures

+
+public List<Throwable> getFailures()
+
+
+
+
+
+
+ +

+getMessage

+
+public String getMessage()
+
+
+
Overrides:
getMessage in class Throwable
+
+
+
+
+
+
+ +

+assertEmpty

+
+public static void assertEmpty(List<Throwable> errors)
+                        throws Throwable
+
+
Asserts that a list of throwables is empty. If it isn't empty, + will throw MultipleFailureException (if there are + multiple throwables in the list) or the first element in the list + (if there is only one element). +

+

+
Parameters:
errors - list to check +
Throws: +
Throwable - if the list is not empty
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/RunnerBuilder.html b/javadoc/4.10/org/junit/runners/model/RunnerBuilder.html new file mode 100644 index 000000000000..5339b1590dab --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/RunnerBuilder.html @@ -0,0 +1,360 @@ + + + + + + +RunnerBuilder (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class RunnerBuilder

+
+java.lang.Object
+  extended by org.junit.runners.model.RunnerBuilder
+
+
+
+
public abstract class RunnerBuilder
extends Object
+ + +

+A RunnerBuilder is a strategy for constructing runners for classes. + + Only writers of custom runners should use RunnerBuilders. A custom runner class with a constructor taking + a RunnerBuilder parameter will be passed the instance of RunnerBuilder used to build that runner itself. + For example, + imagine a custom runner that builds suites based on a list of classes in a text file: + +

+ \@RunWith(TextFileSuite.class)
+ \@SuiteSpecFile("mysuite.txt")
+ class MySuite {}
+ 
+ + The implementation of TextFileSuite might include: + +
+ public TextFileSuite(Class testClass, RunnerBuilder builder) {
+   // ...
+   for (String className : readClassNames())
+     addRunner(builder.runnerForClass(Class.forName(className)));
+   // ...
+ }
+ 
+

+ +

+

+
See Also:
Suite
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RunnerBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract  RunnerrunnerForClass(Class<?> testClass) + +
+          Override to calculate the correct runner for a test class at runtime.
+ List<Runner>runners(Class<?> parent, + Class<?>[] children) + +
+          Constructs and returns a list of Runners, one for each child class in + children.
+ List<Runner>runners(Class<?> parent, + List<Class<?>> children) + +
+           
+ RunnersafeRunnerForClass(Class<?> testClass) + +
+          Always returns a runner, even if it is just one that prints an error instead of running tests.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RunnerBuilder

+
+public RunnerBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+runnerForClass

+
+public abstract Runner runnerForClass(Class<?> testClass)
+                               throws Throwable
+
+
Override to calculate the correct runner for a test class at runtime. +

+

+
Parameters:
testClass - class to be run +
Returns:
a Runner +
Throws: +
Throwable - if a runner cannot be constructed
+
+
+
+ +

+safeRunnerForClass

+
+public Runner safeRunnerForClass(Class<?> testClass)
+
+
Always returns a runner, even if it is just one that prints an error instead of running tests. +

+

+
Parameters:
testClass - class to be run +
Returns:
a Runner
+
+
+
+ +

+runners

+
+public List<Runner> runners(Class<?> parent,
+                            Class<?>[] children)
+                     throws InitializationError
+
+
Constructs and returns a list of Runners, one for each child class in + children. Care is taken to avoid infinite recursion: + this builder will throw an exception if it is requested for another + runner for parent before this call completes. +

+

+ +
Throws: +
InitializationError
+
+
+
+ +

+runners

+
+public List<Runner> runners(Class<?> parent,
+                            List<Class<?>> children)
+                     throws InitializationError
+
+
+ +
Throws: +
InitializationError
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/RunnerScheduler.html b/javadoc/4.10/org/junit/runners/model/RunnerScheduler.html new file mode 100644 index 000000000000..58a5fa83591b --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/RunnerScheduler.html @@ -0,0 +1,238 @@ + + + + + + +RunnerScheduler (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Interface RunnerScheduler

+
+
+
public interface RunnerScheduler
+ + +

+Represents a strategy for scheduling when individual test methods + should be run (in serial or parallel) + + WARNING: still experimental, may go away. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidfinished() + +
+          Override to implement any behavior that must occur + after all children have been scheduled (for example, + waiting for them all to finish)
+ voidschedule(Runnable childStatement) + +
+          Schedule a child statement to run
+  +

+ + + + + + + + +
+Method Detail
+ +

+schedule

+
+void schedule(Runnable childStatement)
+
+
Schedule a child statement to run +

+

+
+
+
+
+ +

+finished

+
+void finished()
+
+
Override to implement any behavior that must occur + after all children have been scheduled (for example, + waiting for them all to finish) +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/Statement.html b/javadoc/4.10/org/junit/runners/model/Statement.html new file mode 100644 index 000000000000..e3a0c6441fb8 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/Statement.html @@ -0,0 +1,263 @@ + + + + + + +Statement (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class Statement

+
+java.lang.Object
+  extended by org.junit.runners.model.Statement
+
+
+
Direct Known Subclasses:
RunRules, Theories.TheoryAnchor
+
+
+
+
public abstract class Statement
extends Object
+ + +

+Represents one or more actions to be taken at runtime in the course + of running a JUnit test suite. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Statement() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+abstract  voidevaluate() + +
+          Run the action, throwing a Throwable if anything goes wrong.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Statement

+
+public Statement()
+
+
+ + + + + + + + +
+Method Detail
+ +

+evaluate

+
+public abstract void evaluate()
+                       throws Throwable
+
+
Run the action, throwing a Throwable if anything goes wrong. +

+

+ +
Throws: +
Throwable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/TestClass.html b/javadoc/4.10/org/junit/runners/model/TestClass.html new file mode 100644 index 000000000000..43cb1519c603 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/TestClass.html @@ -0,0 +1,419 @@ + + + + + + +TestClass (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.runners.model +
+Class TestClass

+
+java.lang.Object
+  extended by org.junit.runners.model.TestClass
+
+
+
+
public class TestClass
extends Object
+ + +

+Wraps a class to be run, providing method validation and annotation searching +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
TestClass(Class<?> klass) + +
+          Creates a TestClass wrapping klass.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ List<FrameworkField>getAnnotatedFields(Class<? extends Annotation> annotationClass) + +
+          Returns, efficiently, all the non-overridden fields in this class and its + superclasses that are annotated with annotationClass.
+ + + + + +
+<T> List<T>
+
getAnnotatedFieldValues(Object test, + Class<? extends Annotation> annotationClass, + Class<T> valueClass) + +
+           
+ List<FrameworkMethod>getAnnotatedMethods(Class<? extends Annotation> annotationClass) + +
+          Returns, efficiently, all the non-overridden methods in this class and + its superclasses that are annotated with annotationClass.
+ Annotation[]getAnnotations() + +
+          Returns the annotations on this class
+ Class<?>getJavaClass() + +
+          Returns the underlying Java class.
+ StringgetName() + +
+          Returns the class's name.
+ Constructor<?>getOnlyConstructor() + +
+          Returns the only public constructor in the class, or throws an AssertionError if there are more or less than one.
+ booleanisANonStaticInnerClass() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TestClass

+
+public TestClass(Class<?> klass)
+
+
Creates a TestClass wrapping klass. Each time this + constructor executes, the class is scanned for annotations, which can be + an expensive process (we hope in future JDK's it will not be.) Therefore, + try to share instances of TestClass where possible. +

+

+ + + + + + + + +
+Method Detail
+ +

+getAnnotatedMethods

+
+public List<FrameworkMethod> getAnnotatedMethods(Class<? extends Annotation> annotationClass)
+
+
Returns, efficiently, all the non-overridden methods in this class and + its superclasses that are annotated with annotationClass. +

+

+
+
+
+
+ +

+getAnnotatedFields

+
+public List<FrameworkField> getAnnotatedFields(Class<? extends Annotation> annotationClass)
+
+
Returns, efficiently, all the non-overridden fields in this class and its + superclasses that are annotated with annotationClass. +

+

+
+
+
+
+ +

+getJavaClass

+
+public Class<?> getJavaClass()
+
+
Returns the underlying Java class. +

+

+
+
+
+
+ +

+getName

+
+public String getName()
+
+
Returns the class's name. +

+

+
+
+
+
+ +

+getOnlyConstructor

+
+public Constructor<?> getOnlyConstructor()
+
+
Returns the only public constructor in the class, or throws an AssertionError if there are more or less than one. +

+

+
+
+
+
+ +

+getAnnotations

+
+public Annotation[] getAnnotations()
+
+
Returns the annotations on this class +

+

+
+
+
+
+ +

+getAnnotatedFieldValues

+
+public <T> List<T> getAnnotatedFieldValues(Object test,
+                                           Class<? extends Annotation> annotationClass,
+                                           Class<T> valueClass)
+
+
+
+
+
+
+ +

+isANonStaticInnerClass

+
+public boolean isANonStaticInnerClass()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/package-frame.html b/javadoc/4.10/org/junit/runners/model/package-frame.html new file mode 100644 index 000000000000..d537a1a980e0 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/package-frame.html @@ -0,0 +1,64 @@ + + + + + + +org.junit.runners.model (JUnit API) + + + + + + + + + + + +org.junit.runners.model + + + + +
+Interfaces  + +
+RunnerScheduler
+ + + + + + +
+Classes  + +
+FrameworkField +
+FrameworkMethod +
+RunnerBuilder +
+Statement +
+TestClass
+ + + + + + +
+Exceptions  + +
+InitializationError +
+MultipleFailureException
+ + + + diff --git a/javadoc/4.10/org/junit/runners/model/package-summary.html b/javadoc/4.10/org/junit/runners/model/package-summary.html new file mode 100644 index 000000000000..b94828aa78b0 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/package-summary.html @@ -0,0 +1,209 @@ + + + + + + +org.junit.runners.model (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.runners.model +

+ + + + + + + + + +
+Interface Summary
RunnerSchedulerRepresents a strategy for scheduling when individual test methods + should be run (in serial or parallel) + + WARNING: still experimental, may go away.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
FrameworkFieldRepresents a field on a test class (currently used only for Rules in + BlockJUnit4ClassRunner, but custom runners can make other uses)
FrameworkMethodRepresents a method on a test class to be invoked at the appropriate point in + test execution.
RunnerBuilderA RunnerBuilder is a strategy for constructing runners for classes.
StatementRepresents one or more actions to be taken at runtime in the course + of running a JUnit test suite.
TestClassWraps a class to be run, providing method validation and annotation searching
+  + +

+ + + + + + + + + + + + + +
+Exception Summary
InitializationErrorRepresents one or more problems encountered while initializing a Runner
MultipleFailureExceptionCollects multiple Throwables into one exception.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/model/package-tree.html b/javadoc/4.10/org/junit/runners/model/package-tree.html new file mode 100644 index 000000000000..b9e7e506b17a --- /dev/null +++ b/javadoc/4.10/org/junit/runners/model/package-tree.html @@ -0,0 +1,161 @@ + + + + + + +org.junit.runners.model Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.runners.model +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/package-frame.html b/javadoc/4.10/org/junit/runners/package-frame.html new file mode 100644 index 000000000000..81514b0bb66c --- /dev/null +++ b/javadoc/4.10/org/junit/runners/package-frame.html @@ -0,0 +1,55 @@ + + + + + + +org.junit.runners (JUnit API) + + + + + + + + + + + +org.junit.runners + + + + +
+Classes  + +
+AllTests +
+BlockJUnit4ClassRunner +
+JUnit4 +
+Parameterized +
+ParentRunner +
+Suite
+ + + + + + +
+Annotation Types  + +
+Parameterized.Parameters +
+Suite.SuiteClasses
+ + + + diff --git a/javadoc/4.10/org/junit/runners/package-summary.html b/javadoc/4.10/org/junit/runners/package-summary.html new file mode 100644 index 000000000000..d343a55aae62 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/package-summary.html @@ -0,0 +1,220 @@ + + + + + + +org.junit.runners (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.junit.runners +

+Provides standard Runner implementations. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AllTestsRunner for use with JUnit 3.8.x-style AllTests classes + (those that only implement a static suite() + method).
BlockJUnit4ClassRunnerImplements the JUnit 4 standard test case class model, as defined by the + annotations in the org.junit package.
JUnit4Aliases the current default JUnit 4 class runner, for future-proofing.
Parameterized + The custom runner Parameterized implements parameterized tests.
ParentRunner<T>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 + type T.
SuiteUsing Suite as a runner allows you to manually + build a suite containing tests from many classes.
+  + +

+ + + + + + + + + + + + + +
+Annotation Types Summary
Parameterized.ParametersAnnotation for a method which provides parameters to be injected into the + test class constructor by Parameterized
Suite.SuiteClassesThe SuiteClasses annotation specifies the classes to be run when a class + annotated with @RunWith(Suite.class) is run.
+  + +

+

+Package org.junit.runners Description +

+ +

+Provides standard Runner implementations. +

+ +

+

+
Since:
+
4.0
+
See Also:
Runner, +BlockJUnit4ClassRunner
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/org/junit/runners/package-tree.html b/javadoc/4.10/org/junit/runners/package-tree.html new file mode 100644 index 000000000000..9c3f83395d09 --- /dev/null +++ b/javadoc/4.10/org/junit/runners/package-tree.html @@ -0,0 +1,173 @@ + + + + + + +org.junit.runners Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.junit.runners +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/overview-frame.html b/javadoc/4.10/overview-frame.html new file mode 100644 index 000000000000..89d389b76a26 --- /dev/null +++ b/javadoc/4.10/overview-frame.html @@ -0,0 +1,76 @@ + + + + + + +Overview List (JUnit API) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+org.hamcrest +
+org.hamcrest.core +
+org.hamcrest.internal +
+org.junit +
+org.junit.experimental +
+org.junit.experimental.categories +
+org.junit.experimental.max +
+org.junit.experimental.results +
+org.junit.experimental.runners +
+org.junit.experimental.theories +
+org.junit.experimental.theories.suppliers +
+org.junit.matchers +
+org.junit.rules +
+org.junit.runner +
+org.junit.runner.manipulation +
+org.junit.runner.notification +
+org.junit.runners +
+org.junit.runners.model +
+

+ +

+  + + diff --git a/javadoc/4.10/overview-summary.html b/javadoc/4.10/overview-summary.html new file mode 100644 index 000000000000..4e5f0cc2d488 --- /dev/null +++ b/javadoc/4.10/overview-summary.html @@ -0,0 +1,219 @@ + + + + + + +Overview (JUnit API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes.
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers.
org.hamcrest.internal 
org.junitProvides JUnit core classes and annotations.
org.junit.experimental 
org.junit.experimental.categories 
org.junit.experimental.max 
org.junit.experimental.results 
org.junit.experimental.runners 
org.junit.experimental.theories 
org.junit.experimental.theories.suppliers 
org.junit.matchersProvides useful additional Matchers for use with + the Assert.assertThat(Object, org.hamcrest.Matcher) + statement
org.junit.rules 
org.junit.runnerProvides classes used to describe, collect, run and analyze multiple tests.
org.junit.runner.manipulationProvides classes to filter or sort tests.
org.junit.runner.notificationProvides information about a test run.
org.junit.runnersProvides standard Runner implementations.
org.junit.runners.model 
+ +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/overview-tree.html b/javadoc/4.10/overview-tree.html new file mode 100644 index 000000000000..e5902f9125ed --- /dev/null +++ b/javadoc/4.10/overview-tree.html @@ -0,0 +1,243 @@ + + + + + + +Class Hierarchy (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
org.hamcrest, org.hamcrest.core, org.hamcrest.internal, org.junit, org.junit.experimental, org.junit.experimental.categories, org.junit.experimental.max, org.junit.experimental.results, org.junit.experimental.runners, org.junit.experimental.theories, org.junit.experimental.theories.suppliers, org.junit.matchers, org.junit.rules, org.junit.runner, org.junit.runner.manipulation, org.junit.runner.notification, org.junit.runners, org.junit.runners.model
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/package-list b/javadoc/4.10/package-list new file mode 100644 index 000000000000..8171efbbca52 --- /dev/null +++ b/javadoc/4.10/package-list @@ -0,0 +1,18 @@ +org.hamcrest +org.hamcrest.core +org.hamcrest.internal +org.junit +org.junit.experimental +org.junit.experimental.categories +org.junit.experimental.max +org.junit.experimental.results +org.junit.experimental.runners +org.junit.experimental.theories +org.junit.experimental.theories.suppliers +org.junit.matchers +org.junit.rules +org.junit.runner +org.junit.runner.manipulation +org.junit.runner.notification +org.junit.runners +org.junit.runners.model diff --git a/javadoc/4.10/resources/inherit.gif b/javadoc/4.10/resources/inherit.gif new file mode 100644 index 0000000000000000000000000000000000000000..c814867a13deb0ca7ea2156c6ca1d5a03372af7e GIT binary patch literal 57 zcmZ?wbhEHbIIT!9-C*e{wE9>Kx3D)-;0v)C; KYxQGgum%9JOA&7X literal 0 HcmV?d00001 diff --git a/javadoc/4.10/serialized-form.html b/javadoc/4.10/serialized-form.html new file mode 100644 index 000000000000..f684d372c4dc --- /dev/null +++ b/javadoc/4.10/serialized-form.html @@ -0,0 +1,568 @@ + + + + + + +Serialized Form (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+Package org.junit
+ +

+ + + + + +
+Class org.junit.ComparisonFailure extends AssertionError implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fExpected

+
+String fExpected
+
+
+
+
+
+

+fActual

+
+String fActual
+
+
+
+
+ +

+ + + + + +
+Class org.junit.Test.None extends Throwable implements Serializable
+ +

+serialVersionUID: 1L + +

+


+ + + + + +
+Package org.junit.experimental.max
+ +

+ + + + + +
+Class org.junit.experimental.max.CouldNotReadCoreException extends Exception implements Serializable
+ +

+serialVersionUID: 1L + +

+ +

+ + + + + +
+Class org.junit.experimental.max.MaxHistory extends Object implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fDurations

+
+Map<K,V> fDurations
+
+
+
+
+
+

+fFailureTimestamps

+
+Map<K,V> fFailureTimestamps
+
+
+
+
+
+

+fHistoryStore

+
+File fHistoryStore
+
+
+
+
+
+ + + + + +
+Package org.junit.experimental.theories
+ +

+ + + + + +
+Class org.junit.experimental.theories.PotentialAssignment.CouldNotGenerateValueException extends Exception implements Serializable
+ +

+serialVersionUID: 1L + +

+


+ + + + + +
+Package org.junit.runner
+ +

+ + + + + +
+Class org.junit.runner.Description extends Object implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fChildren

+
+ArrayList<E> fChildren
+
+
+
+
+
+

+fDisplayName

+
+String fDisplayName
+
+
+
+
+
+

+fAnnotations

+
+Annotation[] fAnnotations
+
+
+
+
+ +

+ + + + + +
+Class org.junit.runner.Result extends Object implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fCount

+
+AtomicInteger fCount
+
+
+
+
+
+

+fIgnoreCount

+
+AtomicInteger fIgnoreCount
+
+
+
+
+
+

+fFailures

+
+List<E> fFailures
+
+
+
+
+
+

+fRunTime

+
+long fRunTime
+
+
+
+
+
+

+fStartTime

+
+long fStartTime
+
+
+
+
+
+ + + + + +
+Package org.junit.runner.manipulation
+ +

+ + + + + +
+Class org.junit.runner.manipulation.NoTestsRemainException extends Exception implements Serializable
+ +

+serialVersionUID: 1L + +

+


+ + + + + +
+Package org.junit.runner.notification
+ +

+ + + + + +
+Class org.junit.runner.notification.Failure extends Object implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fDescription

+
+Description fDescription
+
+
+
+
+
+

+fThrownException

+
+Throwable fThrownException
+
+
+
+
+ +

+ + + + + +
+Class org.junit.runner.notification.StoppedByUserException extends RuntimeException implements Serializable
+ +

+serialVersionUID: 1L + +

+


+ + + + + +
+Package org.junit.runners.model
+ +

+ + + + + +
+Class org.junit.runners.model.InitializationError extends Exception implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fErrors

+
+List<E> fErrors
+
+
+
+
+ +

+ + + + + +
+Class org.junit.runners.model.MultipleFailureException extends Exception implements Serializable
+ +

+serialVersionUID: 1L + +

+ + + + + +
+Serialized Fields
+ +

+fErrors

+
+List<E> fErrors
+
+
+
+
+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/4.10/stylesheet.css b/javadoc/4.10/stylesheet.css new file mode 100644 index 000000000000..032b85c98c6e --- /dev/null +++ b/javadoc/4.10/stylesheet.css @@ -0,0 +1 @@ +/* Javadoc style sheet */ /* makes unvisted linkes red (red bad) */ A {color:red;} /* makes visted linkes the same green as the toolbar (green good) */ A:visited {color:#03A35D;} /* Define colors, fonts and other style attributes here to override the defaults */ /* Page background color */ body { background-color: #FFFFFF } /* Table colors */ .TableHeadingColor { background: #03A35D} /* Green */ .TableSubHeadingColor { background: #03A35D } /* Green */ .TableRowColor { background: #FFFFFF } /* White */ /* Font used in left-hand frame lists */ .FrameTitleFont { font-size: normal; font-family: normal } .FrameHeadingFont { font-size: normal; font-family: normal } .FrameItemFont { font-size: normal; font-family: normal } /* Example of smaller, sans-serif font in frames */ /* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */ /* Navigation bar fonts and colors */ .NavBarCell1 { background-color:#03A35D;}/* Green */ .NavBarCell1Rev { background-color:#006400;}/* Dark green */ .NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;} .NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;} .NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} .NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;} \ No newline at end of file diff --git a/javadoc/latest/allclasses-frame.html b/javadoc/latest/allclasses-frame.html index e1b3ffba173c..66b24f0d8d19 100644 --- a/javadoc/latest/allclasses-frame.html +++ b/javadoc/latest/allclasses-frame.html @@ -2,12 +2,12 @@ - + All Classes (JUnit API) - + @@ -163,6 +163,8 @@
Rule
+RuleChain +
RunListener
Runner diff --git a/javadoc/latest/allclasses-noframe.html b/javadoc/latest/allclasses-noframe.html index 97891e6c3c95..794486c950ea 100644 --- a/javadoc/latest/allclasses-noframe.html +++ b/javadoc/latest/allclasses-noframe.html @@ -2,12 +2,12 @@ - + All Classes (JUnit API) - + @@ -163,6 +163,8 @@
Rule
+RuleChain +
RunListener
Runner diff --git a/javadoc/latest/constant-values.html b/javadoc/latest/constant-values.html index 5472a87039ea..d8f63bf17fff 100644 --- a/javadoc/latest/constant-values.html +++ b/javadoc/latest/constant-values.html @@ -2,12 +2,12 @@ - + Constant Field Values (JUnit API) - + diff --git a/javadoc/latest/deprecated-list.html b/javadoc/latest/deprecated-list.html index b0fa1359f51e..79c3e5c18061 100644 --- a/javadoc/latest/deprecated-list.html +++ b/javadoc/latest/deprecated-list.html @@ -2,12 +2,12 @@ - + Deprecated List (JUnit API) - + @@ -164,6 +164,14 @@

          Will be private soon: use Rules instead  +org.junit.runners.model.FrameworkMethod.producesType(Type) +
+          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.  + + org.junit.runners.BlockJUnit4ClassRunner.rules(Object)
          MethodRule is a deprecated interface. Port to diff --git a/javadoc/latest/help-doc.html b/javadoc/latest/help-doc.html index 04e18c61e3ab..93903d7fa8b1 100644 --- a/javadoc/latest/help-doc.html +++ b/javadoc/latest/help-doc.html @@ -2,12 +2,12 @@ - + API Help (JUnit API) - + diff --git a/javadoc/latest/index-all.html b/javadoc/latest/index-all.html index 0dff0cb4cffa..dd0fbd8cd3e8 100644 --- a/javadoc/latest/index-all.html +++ b/javadoc/latest/index-all.html @@ -2,12 +2,12 @@ - + Index (JUnit API) - + @@ -223,6 +223,10 @@ Method in interface org.junit.rules.MethodRule
Deprecated. Modifies the method-running Statement to implement an additional test-running rule. +
apply(Statement, Description) - +Method in class org.junit.rules.RuleChain +
Modifies the method-running Statement to implement this + test-running rule.
apply(Statement, Description) - Method in interface org.junit.rules.TestRule
Modifies the method-running Statement to implement this @@ -246,6 +250,10 @@
apply(Object) - Method in class org.junit.runner.manipulation.Sorter
Sorts the test in runner using comparator +
around(TestRule) - +Method in class org.junit.rules.RuleChain +
Create a new RuleChain, which encloses the nextRule with + the rules of the current RuleChain.
ArrayIterator - Class in org.hamcrest.internal
 
ArrayIterator(Object) - Constructor for class org.hamcrest.internal.ArrayIterator
  @@ -450,6 +458,10 @@
checkThat(T, Matcher<T>) - Method in class org.junit.rules.ErrorCollector
Adds a failure to the table if matcher does not match value. +
checkThat(String, T, Matcher<T>) - +Method in class org.junit.rules.ErrorCollector +
Adds a failure with the given reason + to the table if matcher does not match value.
childlessCopy() - Method in class org.junit.runner.Description
  @@ -613,6 +625,9 @@
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 a RuleChain without a TestRule.
emptySuite() - Static method in class org.junit.runners.Suite
Returns an empty suite. @@ -928,6 +943,9 @@
getRunner() - Method in class org.junit.runner.Request
Returns a Runner for this Request +
getRunnerAnnotations() - +Method in class org.junit.runners.ParentRunner +
 
getRunTime() - Method in class org.junit.runner.Result
  @@ -1072,6 +1090,9 @@
is(Class<?>) - Static method in class org.hamcrest.CoreMatchers
This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). +
isANonStaticInnerClass() - +Method in class org.junit.runners.model.TestClass +
 
IsAnything<T> - Class in org.hamcrest.core
A matcher that always returns true.
IsAnything() - Constructor for class org.hamcrest.core.IsAnything
  @@ -1218,9 +1239,16 @@
newFile(String) - Method in class org.junit.rules.TemporaryFolder
Returns a new fresh file with the given name under the temporary folder. -
newFolder(String) - +
newFile() - +Method in class org.junit.rules.TemporaryFolder +
Returns a new fresh file 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() - +Method in class org.junit.rules.TemporaryFolder +
Returns a new fresh folder with a random name under the temporary + folder.
next() - Method in class org.hamcrest.internal.ArrayIterator
  @@ -1279,7 +1307,10 @@
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.suppliers - package org.junit.experimental.theories.suppliers
 
org.junit.matchers - package org.junit.matchers
Provides useful additional Matchers for use with the Assert.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
Provides classes to filter or sort tests.
org.junit.runner.notification - package org.junit.runner.notification
Provides information about a test run.
org.junit.runners - package org.junit.runners
Provides standard Runner implementations.
org.junit.runners.model - package org.junit.runners.model
 
+ 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
Provides classes to filter or sort tests.
org.junit.runner.notification - package org.junit.runner.notification
Provides information about a test run.
org.junit.runners - package org.junit.runners
Provides standard Runner implementations.
org.junit.runners.model - package org.junit.runners.model
 
outerRule(TestRule) - +Static method in class org.junit.rules.RuleChain +
Returns a RuleChain with a single TestRule. +

P

@@ -1315,10 +1346,12 @@
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 given failures -
producesType(Class<?>) - +
producesType(Type) - Method in class org.junit.runners.model.FrameworkMethod -
Returns true iff this is a no-arg method that returns a value assignable - to type +
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.

@@ -1349,7 +1382,7 @@
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
  -
Rule - Annotation Type in org.junit
Annotates fields that contain rules.
rules(Object) - +
Rule - Annotation Type in org.junit
Annotates fields that contain rules.
RuleChain - Class in org.junit.rules
The RuleChain rule allows ordering of TestRules.
rules(Object) - Method in class org.junit.runners.BlockJUnit4ClassRunner
Deprecated. MethodRule is a deprecated interface. Port to TestRule and @@ -1683,6 +1716,12 @@
validateInstanceMethods(List<Throwable>) - Method in class org.junit.runners.BlockJUnit4ClassRunner
Deprecated. unused API, will go away in future version +
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 to errors if the test class has more than one constructor diff --git a/javadoc/latest/index.html b/javadoc/latest/index.html index 062d0e8febf6..a0186112c0c7 100644 --- a/javadoc/latest/index.html +++ b/javadoc/latest/index.html @@ -2,7 +2,7 @@ - + JUnit API diff --git a/javadoc/latest/org/hamcrest/BaseDescription.html b/javadoc/latest/org/hamcrest/BaseDescription.html index 17dabe2f9a70..12391a8751ad 100644 --- a/javadoc/latest/org/hamcrest/BaseDescription.html +++ b/javadoc/latest/org/hamcrest/BaseDescription.html @@ -2,12 +2,12 @@ - + BaseDescription (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/BaseMatcher.html b/javadoc/latest/org/hamcrest/BaseMatcher.html index 406b12d1a38a..d9884ecf58c3 100644 --- a/javadoc/latest/org/hamcrest/BaseMatcher.html +++ b/javadoc/latest/org/hamcrest/BaseMatcher.html @@ -2,12 +2,12 @@ - + BaseMatcher (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/CoreMatchers.html b/javadoc/latest/org/hamcrest/CoreMatchers.html index cabcc00a36a3..a9a2e670851e 100644 --- a/javadoc/latest/org/hamcrest/CoreMatchers.html +++ b/javadoc/latest/org/hamcrest/CoreMatchers.html @@ -2,12 +2,12 @@ - + CoreMatchers (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/Description.html b/javadoc/latest/org/hamcrest/Description.html index d608df1ee7a0..484738d9b004 100644 --- a/javadoc/latest/org/hamcrest/Description.html +++ b/javadoc/latest/org/hamcrest/Description.html @@ -2,12 +2,12 @@ - + Description (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/Factory.html b/javadoc/latest/org/hamcrest/Factory.html index 366f5c3a7a0a..e3844c836caf 100644 --- a/javadoc/latest/org/hamcrest/Factory.html +++ b/javadoc/latest/org/hamcrest/Factory.html @@ -2,12 +2,12 @@ - + Factory (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/Matcher.html b/javadoc/latest/org/hamcrest/Matcher.html index c47940bf16e1..b2c6a3bd013c 100644 --- a/javadoc/latest/org/hamcrest/Matcher.html +++ b/javadoc/latest/org/hamcrest/Matcher.html @@ -2,12 +2,12 @@ - + Matcher (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/SelfDescribing.html b/javadoc/latest/org/hamcrest/SelfDescribing.html index 95f8fcd242cd..36cbd8110833 100644 --- a/javadoc/latest/org/hamcrest/SelfDescribing.html +++ b/javadoc/latest/org/hamcrest/SelfDescribing.html @@ -2,12 +2,12 @@ - + SelfDescribing (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/StringDescription.html b/javadoc/latest/org/hamcrest/StringDescription.html index 6d7be9f5f668..cd0d1de641c5 100644 --- a/javadoc/latest/org/hamcrest/StringDescription.html +++ b/javadoc/latest/org/hamcrest/StringDescription.html @@ -2,12 +2,12 @@ - + StringDescription (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/AllOf.html b/javadoc/latest/org/hamcrest/core/AllOf.html index 638bd6c4c1da..67dbede63d8c 100644 --- a/javadoc/latest/org/hamcrest/core/AllOf.html +++ b/javadoc/latest/org/hamcrest/core/AllOf.html @@ -2,12 +2,12 @@ - + AllOf (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/AnyOf.html b/javadoc/latest/org/hamcrest/core/AnyOf.html index 4c73fa1779c0..de0eebbf4cc8 100644 --- a/javadoc/latest/org/hamcrest/core/AnyOf.html +++ b/javadoc/latest/org/hamcrest/core/AnyOf.html @@ -2,12 +2,12 @@ - + AnyOf (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/DescribedAs.html b/javadoc/latest/org/hamcrest/core/DescribedAs.html index c5b313af76ef..e96059f9a952 100644 --- a/javadoc/latest/org/hamcrest/core/DescribedAs.html +++ b/javadoc/latest/org/hamcrest/core/DescribedAs.html @@ -2,12 +2,12 @@ - + DescribedAs (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/Is.html b/javadoc/latest/org/hamcrest/core/Is.html index d5a2086d2dad..191a9c47fa16 100644 --- a/javadoc/latest/org/hamcrest/core/Is.html +++ b/javadoc/latest/org/hamcrest/core/Is.html @@ -2,12 +2,12 @@ - + Is (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/IsAnything.html b/javadoc/latest/org/hamcrest/core/IsAnything.html index 5246739a5280..96be8ceb3496 100644 --- a/javadoc/latest/org/hamcrest/core/IsAnything.html +++ b/javadoc/latest/org/hamcrest/core/IsAnything.html @@ -2,12 +2,12 @@ - + IsAnything (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/IsEqual.html b/javadoc/latest/org/hamcrest/core/IsEqual.html index c3db37afa78d..6ac7a208921d 100644 --- a/javadoc/latest/org/hamcrest/core/IsEqual.html +++ b/javadoc/latest/org/hamcrest/core/IsEqual.html @@ -2,12 +2,12 @@ - + IsEqual (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/IsInstanceOf.html b/javadoc/latest/org/hamcrest/core/IsInstanceOf.html index c063e72d579c..4babcb91d506 100644 --- a/javadoc/latest/org/hamcrest/core/IsInstanceOf.html +++ b/javadoc/latest/org/hamcrest/core/IsInstanceOf.html @@ -2,12 +2,12 @@ - + IsInstanceOf (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/IsNot.html b/javadoc/latest/org/hamcrest/core/IsNot.html index 8744b2006b07..35475db2ad35 100644 --- a/javadoc/latest/org/hamcrest/core/IsNot.html +++ b/javadoc/latest/org/hamcrest/core/IsNot.html @@ -2,12 +2,12 @@ - + IsNot (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/IsNull.html b/javadoc/latest/org/hamcrest/core/IsNull.html index 3801af7d9fdb..dcfcfa56a352 100644 --- a/javadoc/latest/org/hamcrest/core/IsNull.html +++ b/javadoc/latest/org/hamcrest/core/IsNull.html @@ -2,12 +2,12 @@ - + IsNull (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/IsSame.html b/javadoc/latest/org/hamcrest/core/IsSame.html index e08be292b5b3..b1f05f764fa4 100644 --- a/javadoc/latest/org/hamcrest/core/IsSame.html +++ b/javadoc/latest/org/hamcrest/core/IsSame.html @@ -2,12 +2,12 @@ - + IsSame (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/package-frame.html b/javadoc/latest/org/hamcrest/core/package-frame.html index e6d7063142b9..7fad875c9904 100644 --- a/javadoc/latest/org/hamcrest/core/package-frame.html +++ b/javadoc/latest/org/hamcrest/core/package-frame.html @@ -2,12 +2,12 @@ - + org.hamcrest.core (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/package-summary.html b/javadoc/latest/org/hamcrest/core/package-summary.html index 9915a97b240f..18be90f4ca77 100644 --- a/javadoc/latest/org/hamcrest/core/package-summary.html +++ b/javadoc/latest/org/hamcrest/core/package-summary.html @@ -2,12 +2,12 @@ - + org.hamcrest.core (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/core/package-tree.html b/javadoc/latest/org/hamcrest/core/package-tree.html index e136a9f5b035..53f92b6223a1 100644 --- a/javadoc/latest/org/hamcrest/core/package-tree.html +++ b/javadoc/latest/org/hamcrest/core/package-tree.html @@ -2,12 +2,12 @@ - + org.hamcrest.core Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/internal/ArrayIterator.html b/javadoc/latest/org/hamcrest/internal/ArrayIterator.html index b56caec3ada9..9022d27a5f5c 100644 --- a/javadoc/latest/org/hamcrest/internal/ArrayIterator.html +++ b/javadoc/latest/org/hamcrest/internal/ArrayIterator.html @@ -2,12 +2,12 @@ - + ArrayIterator (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/internal/SelfDescribingValue.html b/javadoc/latest/org/hamcrest/internal/SelfDescribingValue.html index 46a2c7928055..ff1250f515af 100644 --- a/javadoc/latest/org/hamcrest/internal/SelfDescribingValue.html +++ b/javadoc/latest/org/hamcrest/internal/SelfDescribingValue.html @@ -2,12 +2,12 @@ - + SelfDescribingValue (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/internal/SelfDescribingValueIterator.html b/javadoc/latest/org/hamcrest/internal/SelfDescribingValueIterator.html index 263b6be1d668..1c923d0a4ac5 100644 --- a/javadoc/latest/org/hamcrest/internal/SelfDescribingValueIterator.html +++ b/javadoc/latest/org/hamcrest/internal/SelfDescribingValueIterator.html @@ -2,12 +2,12 @@ - + SelfDescribingValueIterator (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/internal/package-frame.html b/javadoc/latest/org/hamcrest/internal/package-frame.html index 1bd060fa508f..6ea63422fc7f 100644 --- a/javadoc/latest/org/hamcrest/internal/package-frame.html +++ b/javadoc/latest/org/hamcrest/internal/package-frame.html @@ -2,12 +2,12 @@ - + org.hamcrest.internal (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/internal/package-summary.html b/javadoc/latest/org/hamcrest/internal/package-summary.html index b27f35cab499..50839ad99f9e 100644 --- a/javadoc/latest/org/hamcrest/internal/package-summary.html +++ b/javadoc/latest/org/hamcrest/internal/package-summary.html @@ -2,12 +2,12 @@ - + org.hamcrest.internal (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/internal/package-tree.html b/javadoc/latest/org/hamcrest/internal/package-tree.html index 52d7c86d3c0a..dd46b753376c 100644 --- a/javadoc/latest/org/hamcrest/internal/package-tree.html +++ b/javadoc/latest/org/hamcrest/internal/package-tree.html @@ -2,12 +2,12 @@ - + org.hamcrest.internal Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/package-frame.html b/javadoc/latest/org/hamcrest/package-frame.html index 49dd9ef42166..872a7ec8f377 100644 --- a/javadoc/latest/org/hamcrest/package-frame.html +++ b/javadoc/latest/org/hamcrest/package-frame.html @@ -2,12 +2,12 @@ - + org.hamcrest (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/package-summary.html b/javadoc/latest/org/hamcrest/package-summary.html index dd7866bb5523..3c2490c9a4c5 100644 --- a/javadoc/latest/org/hamcrest/package-summary.html +++ b/javadoc/latest/org/hamcrest/package-summary.html @@ -2,12 +2,12 @@ - + org.hamcrest (JUnit API) - + diff --git a/javadoc/latest/org/hamcrest/package-tree.html b/javadoc/latest/org/hamcrest/package-tree.html index 44999cba693a..fc7f80b58ef4 100644 --- a/javadoc/latest/org/hamcrest/package-tree.html +++ b/javadoc/latest/org/hamcrest/package-tree.html @@ -2,12 +2,12 @@ - + org.hamcrest Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/After.html b/javadoc/latest/org/junit/After.html index 2c3b720f5e6b..1c187e5f50db 100644 --- a/javadoc/latest/org/junit/After.html +++ b/javadoc/latest/org/junit/After.html @@ -2,12 +2,12 @@ - + After (JUnit API) - + diff --git a/javadoc/latest/org/junit/AfterClass.html b/javadoc/latest/org/junit/AfterClass.html index d7d4996cd034..206a04dbf519 100644 --- a/javadoc/latest/org/junit/AfterClass.html +++ b/javadoc/latest/org/junit/AfterClass.html @@ -2,12 +2,12 @@ - + AfterClass (JUnit API) - + diff --git a/javadoc/latest/org/junit/Assert.html b/javadoc/latest/org/junit/Assert.html index 93c44c719db3..ff2baf885819 100644 --- a/javadoc/latest/org/junit/Assert.html +++ b/javadoc/latest/org/junit/Assert.html @@ -2,12 +2,12 @@ - + Assert (JUnit API) - + diff --git a/javadoc/latest/org/junit/Assume.html b/javadoc/latest/org/junit/Assume.html index 2a8f17db4e65..a7fe25e7d22d 100644 --- a/javadoc/latest/org/junit/Assume.html +++ b/javadoc/latest/org/junit/Assume.html @@ -2,12 +2,12 @@ - + Assume (JUnit API) - + diff --git a/javadoc/latest/org/junit/Before.html b/javadoc/latest/org/junit/Before.html index 95a347614f0b..92ed10721066 100644 --- a/javadoc/latest/org/junit/Before.html +++ b/javadoc/latest/org/junit/Before.html @@ -2,12 +2,12 @@ - + Before (JUnit API) - + diff --git a/javadoc/latest/org/junit/BeforeClass.html b/javadoc/latest/org/junit/BeforeClass.html index 66b44f25d894..4b402407e8dc 100644 --- a/javadoc/latest/org/junit/BeforeClass.html +++ b/javadoc/latest/org/junit/BeforeClass.html @@ -2,12 +2,12 @@ - + BeforeClass (JUnit API) - + diff --git a/javadoc/latest/org/junit/ClassRule.html b/javadoc/latest/org/junit/ClassRule.html index 929f8e717358..43ea7879333d 100644 --- a/javadoc/latest/org/junit/ClassRule.html +++ b/javadoc/latest/org/junit/ClassRule.html @@ -2,12 +2,12 @@ - + ClassRule (JUnit API) - + diff --git a/javadoc/latest/org/junit/ComparisonFailure.html b/javadoc/latest/org/junit/ComparisonFailure.html index 1ceb06934c09..a260a7092b6a 100644 --- a/javadoc/latest/org/junit/ComparisonFailure.html +++ b/javadoc/latest/org/junit/ComparisonFailure.html @@ -2,12 +2,12 @@ - + ComparisonFailure (JUnit API) - + diff --git a/javadoc/latest/org/junit/Ignore.html b/javadoc/latest/org/junit/Ignore.html index ede3e4c8d377..eb9b9acdfba2 100644 --- a/javadoc/latest/org/junit/Ignore.html +++ b/javadoc/latest/org/junit/Ignore.html @@ -2,12 +2,12 @@ - + Ignore (JUnit API) - + diff --git a/javadoc/latest/org/junit/Rule.html b/javadoc/latest/org/junit/Rule.html index 8007250e2b5b..0e265d50b4bc 100644 --- a/javadoc/latest/org/junit/Rule.html +++ b/javadoc/latest/org/junit/Rule.html @@ -2,12 +2,12 @@ - + Rule (JUnit API) - + diff --git a/javadoc/latest/org/junit/Test.None.html b/javadoc/latest/org/junit/Test.None.html index 37104d88dd50..53a81c1ba3f1 100644 --- a/javadoc/latest/org/junit/Test.None.html +++ b/javadoc/latest/org/junit/Test.None.html @@ -2,12 +2,12 @@ - + Test.None (JUnit API) - + diff --git a/javadoc/latest/org/junit/Test.html b/javadoc/latest/org/junit/Test.html index 7e35f5dba698..cf5f5d5217d9 100644 --- a/javadoc/latest/org/junit/Test.html +++ b/javadoc/latest/org/junit/Test.html @@ -2,12 +2,12 @@ - + Test (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/ParallelComputer.html b/javadoc/latest/org/junit/experimental/ParallelComputer.html index dfa2488b8433..fc11cf58f297 100644 --- a/javadoc/latest/org/junit/experimental/ParallelComputer.html +++ b/javadoc/latest/org/junit/experimental/ParallelComputer.html @@ -2,12 +2,12 @@ - + ParallelComputer (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/Categories.CategoryFilter.html b/javadoc/latest/org/junit/experimental/categories/Categories.CategoryFilter.html index a429f8a14f83..3464f7384839 100644 --- a/javadoc/latest/org/junit/experimental/categories/Categories.CategoryFilter.html +++ b/javadoc/latest/org/junit/experimental/categories/Categories.CategoryFilter.html @@ -2,12 +2,12 @@ - + Categories.CategoryFilter (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/Categories.ExcludeCategory.html b/javadoc/latest/org/junit/experimental/categories/Categories.ExcludeCategory.html index dc2788e32655..86578af4bec3 100644 --- a/javadoc/latest/org/junit/experimental/categories/Categories.ExcludeCategory.html +++ b/javadoc/latest/org/junit/experimental/categories/Categories.ExcludeCategory.html @@ -2,12 +2,12 @@ - + Categories.ExcludeCategory (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/Categories.IncludeCategory.html b/javadoc/latest/org/junit/experimental/categories/Categories.IncludeCategory.html index 07e5f1cb008a..5e1936653b5a 100644 --- a/javadoc/latest/org/junit/experimental/categories/Categories.IncludeCategory.html +++ b/javadoc/latest/org/junit/experimental/categories/Categories.IncludeCategory.html @@ -2,12 +2,12 @@ - + Categories.IncludeCategory (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/Categories.html b/javadoc/latest/org/junit/experimental/categories/Categories.html index b1e2d14c6f64..9a8f0f97b641 100644 --- a/javadoc/latest/org/junit/experimental/categories/Categories.html +++ b/javadoc/latest/org/junit/experimental/categories/Categories.html @@ -2,12 +2,12 @@ - + Categories (JUnit API) - + @@ -240,7 +240,7 @@

Methods inherited from class org.junit.runners.ParentRunner -childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses +childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses   diff --git a/javadoc/latest/org/junit/experimental/categories/Category.html b/javadoc/latest/org/junit/experimental/categories/Category.html index 4c8af76a43b3..d08be9ab7163 100644 --- a/javadoc/latest/org/junit/experimental/categories/Category.html +++ b/javadoc/latest/org/junit/experimental/categories/Category.html @@ -2,12 +2,12 @@ - + Category (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/package-frame.html b/javadoc/latest/org/junit/experimental/categories/package-frame.html index a2ba6c4b1be8..be6847815161 100644 --- a/javadoc/latest/org/junit/experimental/categories/package-frame.html +++ b/javadoc/latest/org/junit/experimental/categories/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental.categories (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/package-summary.html b/javadoc/latest/org/junit/experimental/categories/package-summary.html index a5f4d5f1ddb2..8bccfcf52fcc 100644 --- a/javadoc/latest/org/junit/experimental/categories/package-summary.html +++ b/javadoc/latest/org/junit/experimental/categories/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental.categories (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/categories/package-tree.html b/javadoc/latest/org/junit/experimental/categories/package-tree.html index 20d51acaeb64..79042e86183c 100644 --- a/javadoc/latest/org/junit/experimental/categories/package-tree.html +++ b/javadoc/latest/org/junit/experimental/categories/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental.categories Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/max/CouldNotReadCoreException.html b/javadoc/latest/org/junit/experimental/max/CouldNotReadCoreException.html index 4a79c1c62c38..ada486808669 100644 --- a/javadoc/latest/org/junit/experimental/max/CouldNotReadCoreException.html +++ b/javadoc/latest/org/junit/experimental/max/CouldNotReadCoreException.html @@ -2,12 +2,12 @@ - + CouldNotReadCoreException (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/max/MaxCore.html b/javadoc/latest/org/junit/experimental/max/MaxCore.html index 662c3928d5d0..53c282d004be 100644 --- a/javadoc/latest/org/junit/experimental/max/MaxCore.html +++ b/javadoc/latest/org/junit/experimental/max/MaxCore.html @@ -2,12 +2,12 @@ - + MaxCore (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/max/MaxHistory.html b/javadoc/latest/org/junit/experimental/max/MaxHistory.html index 23058d1a52b0..6ee9994d3516 100644 --- a/javadoc/latest/org/junit/experimental/max/MaxHistory.html +++ b/javadoc/latest/org/junit/experimental/max/MaxHistory.html @@ -2,12 +2,12 @@ - + MaxHistory (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/max/package-frame.html b/javadoc/latest/org/junit/experimental/max/package-frame.html index f191dfbdd1e7..77a45cd16d21 100644 --- a/javadoc/latest/org/junit/experimental/max/package-frame.html +++ b/javadoc/latest/org/junit/experimental/max/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental.max (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/max/package-summary.html b/javadoc/latest/org/junit/experimental/max/package-summary.html index 6a4664088d01..a8802157bb0d 100644 --- a/javadoc/latest/org/junit/experimental/max/package-summary.html +++ b/javadoc/latest/org/junit/experimental/max/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental.max (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/max/package-tree.html b/javadoc/latest/org/junit/experimental/max/package-tree.html index d79474f87f5c..533a6f13588c 100644 --- a/javadoc/latest/org/junit/experimental/max/package-tree.html +++ b/javadoc/latest/org/junit/experimental/max/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental.max Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/package-frame.html b/javadoc/latest/org/junit/experimental/package-frame.html index 3bc546d5d498..84f7cf58e289 100644 --- a/javadoc/latest/org/junit/experimental/package-frame.html +++ b/javadoc/latest/org/junit/experimental/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/package-summary.html b/javadoc/latest/org/junit/experimental/package-summary.html index b7c2734feef0..19b923f0b4bd 100644 --- a/javadoc/latest/org/junit/experimental/package-summary.html +++ b/javadoc/latest/org/junit/experimental/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/package-tree.html b/javadoc/latest/org/junit/experimental/package-tree.html index 5a76823e4924..4dc72b350cee 100644 --- a/javadoc/latest/org/junit/experimental/package-tree.html +++ b/javadoc/latest/org/junit/experimental/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/results/PrintableResult.html b/javadoc/latest/org/junit/experimental/results/PrintableResult.html index 7ed552890394..78e9ff513c90 100644 --- a/javadoc/latest/org/junit/experimental/results/PrintableResult.html +++ b/javadoc/latest/org/junit/experimental/results/PrintableResult.html @@ -2,12 +2,12 @@ - + PrintableResult (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/results/ResultMatchers.html b/javadoc/latest/org/junit/experimental/results/ResultMatchers.html index 5b06a45a1e46..5cf366c5f25f 100644 --- a/javadoc/latest/org/junit/experimental/results/ResultMatchers.html +++ b/javadoc/latest/org/junit/experimental/results/ResultMatchers.html @@ -2,12 +2,12 @@ - + ResultMatchers (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/results/package-frame.html b/javadoc/latest/org/junit/experimental/results/package-frame.html index 20003c5f917a..be73fffa013e 100644 --- a/javadoc/latest/org/junit/experimental/results/package-frame.html +++ b/javadoc/latest/org/junit/experimental/results/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental.results (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/results/package-summary.html b/javadoc/latest/org/junit/experimental/results/package-summary.html index 2ca42f95f3f0..c2914d586cd1 100644 --- a/javadoc/latest/org/junit/experimental/results/package-summary.html +++ b/javadoc/latest/org/junit/experimental/results/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental.results (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/results/package-tree.html b/javadoc/latest/org/junit/experimental/results/package-tree.html index 32501f83b630..6965ce8efdcf 100644 --- a/javadoc/latest/org/junit/experimental/results/package-tree.html +++ b/javadoc/latest/org/junit/experimental/results/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental.results Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/runners/Enclosed.html b/javadoc/latest/org/junit/experimental/runners/Enclosed.html index 9fb13d647f82..4ea889c94a5b 100644 --- a/javadoc/latest/org/junit/experimental/runners/Enclosed.html +++ b/javadoc/latest/org/junit/experimental/runners/Enclosed.html @@ -2,12 +2,12 @@ - + Enclosed (JUnit API) - + @@ -188,7 +188,7 @@

Methods inherited from class org.junit.runners.ParentRunner -childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses +childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses   diff --git a/javadoc/latest/org/junit/experimental/runners/package-frame.html b/javadoc/latest/org/junit/experimental/runners/package-frame.html index 32aa00c7a0a1..f52ac1ad24a4 100644 --- a/javadoc/latest/org/junit/experimental/runners/package-frame.html +++ b/javadoc/latest/org/junit/experimental/runners/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental.runners (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/runners/package-summary.html b/javadoc/latest/org/junit/experimental/runners/package-summary.html index 88f822ad706d..0eb038e68f0d 100644 --- a/javadoc/latest/org/junit/experimental/runners/package-summary.html +++ b/javadoc/latest/org/junit/experimental/runners/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental.runners (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/runners/package-tree.html b/javadoc/latest/org/junit/experimental/runners/package-tree.html index 744bcd8da52f..a40cb2e06426 100644 --- a/javadoc/latest/org/junit/experimental/runners/package-tree.html +++ b/javadoc/latest/org/junit/experimental/runners/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental.runners Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/DataPoint.html b/javadoc/latest/org/junit/experimental/theories/DataPoint.html index d706825a942d..8a0693087c7a 100644 --- a/javadoc/latest/org/junit/experimental/theories/DataPoint.html +++ b/javadoc/latest/org/junit/experimental/theories/DataPoint.html @@ -2,12 +2,12 @@ - + DataPoint (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/DataPoints.html b/javadoc/latest/org/junit/experimental/theories/DataPoints.html index 55f2afea4a9a..5013befa0f9a 100644 --- a/javadoc/latest/org/junit/experimental/theories/DataPoints.html +++ b/javadoc/latest/org/junit/experimental/theories/DataPoints.html @@ -2,12 +2,12 @@ - + DataPoints (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/ParameterSignature.html b/javadoc/latest/org/junit/experimental/theories/ParameterSignature.html index fc042b9b1b49..0aa43dce1a77 100644 --- a/javadoc/latest/org/junit/experimental/theories/ParameterSignature.html +++ b/javadoc/latest/org/junit/experimental/theories/ParameterSignature.html @@ -2,12 +2,12 @@ - + ParameterSignature (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/ParameterSupplier.html b/javadoc/latest/org/junit/experimental/theories/ParameterSupplier.html index 08be60bf1531..cb403db097d2 100644 --- a/javadoc/latest/org/junit/experimental/theories/ParameterSupplier.html +++ b/javadoc/latest/org/junit/experimental/theories/ParameterSupplier.html @@ -2,12 +2,12 @@ - + ParameterSupplier (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/ParametersSuppliedBy.html b/javadoc/latest/org/junit/experimental/theories/ParametersSuppliedBy.html index 42b86bf4bdae..b4c7766c8df9 100644 --- a/javadoc/latest/org/junit/experimental/theories/ParametersSuppliedBy.html +++ b/javadoc/latest/org/junit/experimental/theories/ParametersSuppliedBy.html @@ -2,12 +2,12 @@ - + ParametersSuppliedBy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html b/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html index 5607b5e3c129..731808f6c4fd 100644 --- a/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html +++ b/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.CouldNotGenerateValueException.html @@ -2,12 +2,12 @@ - + PotentialAssignment.CouldNotGenerateValueException (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.html b/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.html index 73d6d97e3059..06083be876b3 100644 --- a/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.html +++ b/javadoc/latest/org/junit/experimental/theories/PotentialAssignment.html @@ -2,12 +2,12 @@ - + PotentialAssignment (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/Theories.TheoryAnchor.html b/javadoc/latest/org/junit/experimental/theories/Theories.TheoryAnchor.html index 0291724044cf..63a741fb819f 100644 --- a/javadoc/latest/org/junit/experimental/theories/Theories.TheoryAnchor.html +++ b/javadoc/latest/org/junit/experimental/theories/Theories.TheoryAnchor.html @@ -2,12 +2,12 @@ - + Theories.TheoryAnchor (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/Theories.html b/javadoc/latest/org/junit/experimental/theories/Theories.html index 1f8338bdcdb5..8ff3043bb1a7 100644 --- a/javadoc/latest/org/junit/experimental/theories/Theories.html +++ b/javadoc/latest/org/junit/experimental/theories/Theories.html @@ -2,12 +2,12 @@ - + Theories (JUnit API) - + @@ -201,7 +201,7 @@

Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner -createTest, describeChild, getChildren, getTestRules, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateInstanceMethods, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout +createTest, describeChild, getChildren, getTestRules, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout   @@ -210,7 +210,7 @@

Methods inherited from class org.junit.runners.ParentRunner -childrenInvoker, classBlock, classRules, filter, getDescription, getName, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses +childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses   diff --git a/javadoc/latest/org/junit/experimental/theories/Theory.html b/javadoc/latest/org/junit/experimental/theories/Theory.html index e06cd3c08a6e..7a6dcfa407ea 100644 --- a/javadoc/latest/org/junit/experimental/theories/Theory.html +++ b/javadoc/latest/org/junit/experimental/theories/Theory.html @@ -2,12 +2,12 @@ - + Theory (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/package-frame.html b/javadoc/latest/org/junit/experimental/theories/package-frame.html index b889948fd695..cca70416dd8a 100644 --- a/javadoc/latest/org/junit/experimental/theories/package-frame.html +++ b/javadoc/latest/org/junit/experimental/theories/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental.theories (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/package-summary.html b/javadoc/latest/org/junit/experimental/theories/package-summary.html index 956c694d400c..09da4fc980ae 100644 --- a/javadoc/latest/org/junit/experimental/theories/package-summary.html +++ b/javadoc/latest/org/junit/experimental/theories/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental.theories (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/package-tree.html b/javadoc/latest/org/junit/experimental/theories/package-tree.html index ecd5a1b7f038..24834db69002 100644 --- a/javadoc/latest/org/junit/experimental/theories/package-tree.html +++ b/javadoc/latest/org/junit/experimental/theories/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental.theories Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOn.html b/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOn.html index 748392d3f5f7..09d097afdf8b 100644 --- a/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOn.html +++ b/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOn.html @@ -2,12 +2,12 @@ - + TestedOn (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOnSupplier.html b/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOnSupplier.html index 2cae0af52a7a..529e345e3a46 100644 --- a/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOnSupplier.html +++ b/javadoc/latest/org/junit/experimental/theories/suppliers/TestedOnSupplier.html @@ -2,12 +2,12 @@ - + TestedOnSupplier (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/suppliers/package-frame.html b/javadoc/latest/org/junit/experimental/theories/suppliers/package-frame.html index 79a2cf5d93c0..68c3e5f9adbd 100644 --- a/javadoc/latest/org/junit/experimental/theories/suppliers/package-frame.html +++ b/javadoc/latest/org/junit/experimental/theories/suppliers/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.experimental.theories.suppliers (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/suppliers/package-summary.html b/javadoc/latest/org/junit/experimental/theories/suppliers/package-summary.html index 4915a1de69c5..bf6976147de4 100644 --- a/javadoc/latest/org/junit/experimental/theories/suppliers/package-summary.html +++ b/javadoc/latest/org/junit/experimental/theories/suppliers/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.experimental.theories.suppliers (JUnit API) - + diff --git a/javadoc/latest/org/junit/experimental/theories/suppliers/package-tree.html b/javadoc/latest/org/junit/experimental/theories/suppliers/package-tree.html index 94679cfcfc59..dc93c7645f72 100644 --- a/javadoc/latest/org/junit/experimental/theories/suppliers/package-tree.html +++ b/javadoc/latest/org/junit/experimental/theories/suppliers/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.experimental.theories.suppliers Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/matchers/JUnitMatchers.html b/javadoc/latest/org/junit/matchers/JUnitMatchers.html index 21e6205fff9a..1f521ff6a954 100644 --- a/javadoc/latest/org/junit/matchers/JUnitMatchers.html +++ b/javadoc/latest/org/junit/matchers/JUnitMatchers.html @@ -2,12 +2,12 @@ - + JUnitMatchers (JUnit API) - + diff --git a/javadoc/latest/org/junit/matchers/package-frame.html b/javadoc/latest/org/junit/matchers/package-frame.html index 64d0c647c963..280a208a7d64 100644 --- a/javadoc/latest/org/junit/matchers/package-frame.html +++ b/javadoc/latest/org/junit/matchers/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.matchers (JUnit API) - + diff --git a/javadoc/latest/org/junit/matchers/package-summary.html b/javadoc/latest/org/junit/matchers/package-summary.html index e6afd08cfb21..963e73bca6ec 100644 --- a/javadoc/latest/org/junit/matchers/package-summary.html +++ b/javadoc/latest/org/junit/matchers/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.matchers (JUnit API) - + diff --git a/javadoc/latest/org/junit/matchers/package-tree.html b/javadoc/latest/org/junit/matchers/package-tree.html index 0eac7e295322..b151a37e4771 100644 --- a/javadoc/latest/org/junit/matchers/package-tree.html +++ b/javadoc/latest/org/junit/matchers/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.matchers Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/package-frame.html b/javadoc/latest/org/junit/package-frame.html index 505a83312e47..c3cbf5dc1388 100644 --- a/javadoc/latest/org/junit/package-frame.html +++ b/javadoc/latest/org/junit/package-frame.html @@ -2,12 +2,12 @@ - + org.junit (JUnit API) - + diff --git a/javadoc/latest/org/junit/package-summary.html b/javadoc/latest/org/junit/package-summary.html index a5fe875a598b..eacadba0fbc8 100644 --- a/javadoc/latest/org/junit/package-summary.html +++ b/javadoc/latest/org/junit/package-summary.html @@ -2,12 +2,12 @@ - + org.junit (JUnit API) - + diff --git a/javadoc/latest/org/junit/package-tree.html b/javadoc/latest/org/junit/package-tree.html index 9a03115fca9d..8616717fa469 100644 --- a/javadoc/latest/org/junit/package-tree.html +++ b/javadoc/latest/org/junit/package-tree.html @@ -2,12 +2,12 @@ - + org.junit Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/ErrorCollector.html b/javadoc/latest/org/junit/rules/ErrorCollector.html index 79e58f884df7..c91b85a2cdd0 100644 --- a/javadoc/latest/org/junit/rules/ErrorCollector.html +++ b/javadoc/latest/org/junit/rules/ErrorCollector.html @@ -2,12 +2,12 @@ - + ErrorCollector (JUnit API) - + @@ -179,6 +179,24 @@

+checkThat(String reason, + T value, + Matcher<T> matcher) + +
+          Adds a failure with the given reason + to the table if matcher does not match value. + + + + + + + + +
+<T> void
+
checkThat(T value, Matcher<T> matcher) @@ -291,14 +309,31 @@


+

+checkThat

+
+public <T> void checkThat(String reason,
+                          T value,
+                          Matcher<T> matcher)
+
+
Adds a failure with the given reason + to the table if matcher does not match value. + Execution continues, but the test will fail at the end if the match fails. +

+

+
+
+
+
+

checkSucceeds

 public Object checkSucceeds(Callable<Object> callable)
-
Adds to the table the exception, if any, thrown from callable. - Execution continues, but the test will fail at the end if callable - threw an exception. +
Adds to the table the exception, if any, thrown from callable. + Execution continues, but the test will fail at the end if + callable threw an exception.

diff --git a/javadoc/latest/org/junit/rules/ExpectedException.html b/javadoc/latest/org/junit/rules/ExpectedException.html index b3f1661cad59..d0166ee0c062 100644 --- a/javadoc/latest/org/junit/rules/ExpectedException.html +++ b/javadoc/latest/org/junit/rules/ExpectedException.html @@ -2,12 +2,12 @@ - + ExpectedException (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/ExternalResource.html b/javadoc/latest/org/junit/rules/ExternalResource.html index 3842c4ff7303..badd3a174467 100644 --- a/javadoc/latest/org/junit/rules/ExternalResource.html +++ b/javadoc/latest/org/junit/rules/ExternalResource.html @@ -2,12 +2,12 @@ - + ExternalResource (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/MethodRule.html b/javadoc/latest/org/junit/rules/MethodRule.html index 4e0fadc0ebe6..347f7d4a2b19 100644 --- a/javadoc/latest/org/junit/rules/MethodRule.html +++ b/javadoc/latest/org/junit/rules/MethodRule.html @@ -2,12 +2,12 @@ - + MethodRule (JUnit API) - + @@ -55,7 +55,7 @@  PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   @@ -207,7 +207,7 @@

 PREV CLASS  - NEXT CLASSNEXT CLASS FRAMES    NO FRAMES   diff --git a/javadoc/latest/org/junit/rules/RuleChain.html b/javadoc/latest/org/junit/rules/RuleChain.html new file mode 100644 index 000000000000..51141bf41fb8 --- /dev/null +++ b/javadoc/latest/org/junit/rules/RuleChain.html @@ -0,0 +1,342 @@ + + + + + + +RuleChain (JUnit API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.junit.rules +
+Class RuleChain

+
+java.lang.Object
+  extended by org.junit.rules.RuleChain
+
+
+
All Implemented Interfaces:
TestRule
+
+
+
+
public class RuleChain
extends Object
implements TestRule
+ + +

+The RuleChain rule allows ordering of TestRules. You create a + RuleChain with outerRule(TestRule) and subsequent calls of + around(TestRule): + +

+ public static class UseRuleChain {
+        @Rule
+        public TestRule chain= RuleChain
+                               .outerRule(new LoggingRule("outer rule")
+                               .around(new LoggingRule("middle rule")
+                               .around(new LoggingRule("inner rule");
+ 
+        @Test
+        public void example() {
+                assertTrue(true);
+        }
+ }
+ 
+ + writes the log + +
+ starting outer rule
+ starting middle rule
+ starting inner rule
+ finished inner rule
+ finished middle rule
+ finished outer rule
+ 
+

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Statementapply(Statement base, + Description description) + +
+          Modifies the method-running Statement to implement this + test-running rule.
+ RuleChainaround(TestRule enclosedRule) + +
+          Create a new RuleChain, which encloses the nextRule with + the rules of the current RuleChain.
+static RuleChainemptyRuleChain() + +
+          Returns a RuleChain without a TestRule.
+static RuleChainouterRule(TestRule outerRule) + +
+          Returns a RuleChain with a single TestRule.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Method Detail
+ +

+emptyRuleChain

+
+public static RuleChain emptyRuleChain()
+
+
Returns a RuleChain without a TestRule. This method may + be the starting point of a RuleChain. +

+

+
+
+
+ +
Returns:
a RuleChain without a TestRule.
+
+
+
+ +

+outerRule

+
+public static RuleChain outerRule(TestRule outerRule)
+
+
Returns a RuleChain with a single TestRule. This method + is the usual starting point of a RuleChain. +

+

+
+
+
+
Parameters:
outerRule - the outer rule of the RuleChain. +
Returns:
a RuleChain with a single TestRule.
+
+
+
+ +

+around

+
+public RuleChain around(TestRule enclosedRule)
+
+
Create a new RuleChain, which encloses the nextRule with + the rules of the current RuleChain. +

+

+
+
+
+
Parameters:
enclosedRule - the rule to enclose. +
Returns:
a new RuleChain.
+
+
+
+ +

+apply

+
+public Statement apply(Statement base,
+                       Description description)
+
+
Modifies the method-running Statement to implement this + test-running rule. +

+

+
Specified by:
apply in interface TestRule
+
+
+
Parameters:
base - The Statement to be modified
description - A Description of the test implemented in base +
Returns:
a new statement, which may be the same as base, + a wrapper around base, or a completely new Statement.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/latest/org/junit/rules/RunRules.html b/javadoc/latest/org/junit/rules/RunRules.html index fcfbbff92bcb..9becc7c8862c 100644 --- a/javadoc/latest/org/junit/rules/RunRules.html +++ b/javadoc/latest/org/junit/rules/RunRules.html @@ -2,12 +2,12 @@ - + RunRules (JUnit API) - + @@ -54,7 +54,7 @@ PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   @@ -233,7 +233,7 @@

PREV CLASS  + PREV CLASS   NEXT CLASS FRAMES   diff --git a/javadoc/latest/org/junit/rules/TemporaryFolder.html b/javadoc/latest/org/junit/rules/TemporaryFolder.html index 4afd89008312..2a6484f8ad32 100644 --- a/javadoc/latest/org/junit/rules/TemporaryFolder.html +++ b/javadoc/latest/org/junit/rules/TemporaryFolder.html @@ -2,12 +2,12 @@ - + TemporaryFolder (JUnit API) - + @@ -195,6 +195,14 @@

 File +newFile() + +
+          Returns a new fresh file with a random name under the temporary folder. + + + + File newFile(String fileName)
@@ -203,7 +211,16 @@

 File -newFolder(String folderName) +newFolder() + +
+          Returns a new fresh folder with a random name under the temporary + folder. + + + + File +newFolder(String... folderNames)
          Returns a new fresh folder with the given name under the temporary folder. @@ -326,10 +343,26 @@


-

+

+newFile

+
+public File newFile()
+             throws IOException
+
+
Returns a new fresh file with a random name under the temporary folder. +

+

+ +
Throws: +
IOException
+
+
+
+ +

newFolder

-public File newFolder(String folderName)
+public File newFolder(String... folderNames)
Returns a new fresh folder with the given name under the temporary folder.

@@ -339,6 +372,23 @@


+

+newFolder

+
+public File newFolder()
+               throws IOException
+
+
Returns a new fresh folder with a random name under the temporary + folder. +

+

+ +
Throws: +
IOException
+
+
+
+

getRoot

@@ -357,7 +407,7 @@ 

public void delete()

Delete all files and folders under the temporary folder. - Usually not called directly, since it is automatically applied + Usually not called directly, since it is automatically applied by the Rule

diff --git a/javadoc/latest/org/junit/rules/TestName.html b/javadoc/latest/org/junit/rules/TestName.html index 144724ebd89a..66bfef108bf1 100644 --- a/javadoc/latest/org/junit/rules/TestName.html +++ b/javadoc/latest/org/junit/rules/TestName.html @@ -2,12 +2,12 @@ - + TestName (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/TestRule.html b/javadoc/latest/org/junit/rules/TestRule.html index cef1b8281fb9..077c44a0a892 100644 --- a/javadoc/latest/org/junit/rules/TestRule.html +++ b/javadoc/latest/org/junit/rules/TestRule.html @@ -2,12 +2,12 @@ - + TestRule (JUnit API) - + @@ -91,7 +91,7 @@


Interface TestRule

-
All Known Implementing Classes:
ErrorCollector, ExpectedException, ExternalResource, TemporaryFolder, TestName, TestWatcher, Timeout, Verifier
+
All Known Implementing Classes:
ErrorCollector, ExpectedException, ExternalResource, RuleChain, TemporaryFolder, TestName, TestWatcher, Timeout, Verifier

diff --git a/javadoc/latest/org/junit/rules/TestWatcher.html b/javadoc/latest/org/junit/rules/TestWatcher.html index 29d121789f84..13aa7dcb7fb0 100644 --- a/javadoc/latest/org/junit/rules/TestWatcher.html +++ b/javadoc/latest/org/junit/rules/TestWatcher.html @@ -2,12 +2,12 @@ - + TestWatcher (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/TestWatchman.html b/javadoc/latest/org/junit/rules/TestWatchman.html index 1a6d64408621..a1a093a54524 100644 --- a/javadoc/latest/org/junit/rules/TestWatchman.html +++ b/javadoc/latest/org/junit/rules/TestWatchman.html @@ -2,12 +2,12 @@ - + TestWatchman (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/Timeout.html b/javadoc/latest/org/junit/rules/Timeout.html index f4a375439a57..06b6b14dded8 100644 --- a/javadoc/latest/org/junit/rules/Timeout.html +++ b/javadoc/latest/org/junit/rules/Timeout.html @@ -2,12 +2,12 @@ - + Timeout (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/Verifier.html b/javadoc/latest/org/junit/rules/Verifier.html index 85de79a07f58..974eb44bb8d9 100644 --- a/javadoc/latest/org/junit/rules/Verifier.html +++ b/javadoc/latest/org/junit/rules/Verifier.html @@ -2,12 +2,12 @@ - + Verifier (JUnit API) - + diff --git a/javadoc/latest/org/junit/rules/package-frame.html b/javadoc/latest/org/junit/rules/package-frame.html index 25e30639083b..bcefcb876729 100644 --- a/javadoc/latest/org/junit/rules/package-frame.html +++ b/javadoc/latest/org/junit/rules/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.rules (JUnit API) - + @@ -42,6 +42,8 @@
ExternalResource
+RuleChain +
RunRules
TemporaryFolder diff --git a/javadoc/latest/org/junit/rules/package-summary.html b/javadoc/latest/org/junit/rules/package-summary.html index 5ebeb3a0bfc4..0c00341f3842 100644 --- a/javadoc/latest/org/junit/rules/package-summary.html +++ b/javadoc/latest/org/junit/rules/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.rules (JUnit API) - + @@ -124,6 +124,10 @@

and guarantee to tear it down afterward: +RuleChain +The RuleChain rule allows ordering of TestRules. + + RunRules Runs a collection of rules on a statement. diff --git a/javadoc/latest/org/junit/rules/package-tree.html b/javadoc/latest/org/junit/rules/package-tree.html index 47d814bb0a23..3fd527d3edee 100644 --- a/javadoc/latest/org/junit/rules/package-tree.html +++ b/javadoc/latest/org/junit/rules/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.rules Class Hierarchy (JUnit API) - + @@ -95,6 +95,7 @@

  • org.junit.rules.ExternalResource (implements org.junit.rules.TestRule) +
  • org.junit.rules.RuleChain (implements org.junit.rules.TestRule)
  • org.junit.runners.model.Statement
  • org.junit.rules.TestWatcher (implements org.junit.rules.TestRule) diff --git a/javadoc/latest/org/junit/runner/Computer.html b/javadoc/latest/org/junit/runner/Computer.html index e61c91bb48cf..ba562d839e7e 100644 --- a/javadoc/latest/org/junit/runner/Computer.html +++ b/javadoc/latest/org/junit/runner/Computer.html @@ -2,12 +2,12 @@ - + Computer (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/Describable.html b/javadoc/latest/org/junit/runner/Describable.html index 07bde2c0101b..fec4c830da13 100644 --- a/javadoc/latest/org/junit/runner/Describable.html +++ b/javadoc/latest/org/junit/runner/Describable.html @@ -2,12 +2,12 @@ - + Describable (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/Description.html b/javadoc/latest/org/junit/runner/Description.html index 7ced1affaa5a..a91854d37ef9 100644 --- a/javadoc/latest/org/junit/runner/Description.html +++ b/javadoc/latest/org/junit/runner/Description.html @@ -2,12 +2,12 @@ - + Description (JUnit API) - + @@ -94,9 +94,12 @@

    java.lang.Object extended by org.junit.runner.Description +
    +
    All Implemented Interfaces:
    Serializable
    +

    -
    public class Description
    extends Object
    +
    public class Description
    extends Object
    implements Serializable

  • @@ -117,7 +120,8 @@

    See Also:
    Request, -Runner
    +Runner, +Serialized Form


    @@ -398,6 +402,9 @@

    Generally, you will add children to this Description.

    +
    +
    +
    Parameters:
    name - the name of the Description
    annotations -
    Returns:
    a Description named name
    @@ -415,6 +422,9 @@

    Generally, this will be a leaf Description.

    +
    +
    +
    Parameters:
    clazz - the class of the test
    name - the name of the test (a method name for test annotated with Test)
    annotations - meta-data about the test, for downstream interpreters
    Returns:
    a Description named name
    @@ -432,6 +442,9 @@

    (This remains for binary compatibility with clients of JUnit 4.3)

    +
    +
    +
    Parameters:
    clazz - the class of the test
    name - the name of the test (a method name for test annotated with Test)
    Returns:
    a Description named name
    @@ -446,6 +459,9 @@

    Create a Description named after testClass

    +
    +
    +
    Parameters:
    testClass - A Class containing tests
    Returns:
    a Description of testClass
    @@ -458,6 +474,9 @@

    public String getDisplayName()
    +
    +
    +
    Returns:
    a user-understandable label
    @@ -472,6 +491,9 @@

    Add Description as a child of the receiver.

    +
    +
    +
    Parameters:
    description - the soon-to-be child.

    @@ -483,6 +505,9 @@

    public ArrayList<Description> getChildren()
    +
    +
    +
    Returns:
    the receiver's children, if any
    @@ -495,6 +520,9 @@

    public boolean isSuite()
    +
    +
    +
    Returns:
    true if the receiver is a suite
    @@ -507,6 +535,9 @@

    public boolean isTest()
    +
    +
    +
    Returns:
    true if the receiver is an atomic test
    @@ -519,6 +550,9 @@

    public int testCount()
    +
    +
    +
    Returns:
    the total number of atomic tests in the receiver
    @@ -573,6 +607,9 @@

    public boolean isEmpty()
    +
    +
    +
    Returns:
    true if this is a description of a Runner that runs no tests
    @@ -585,6 +622,9 @@

    public Description childlessCopy()
    +
    +
    +
    Returns:
    a copy of this description, with no children (on the assumption that some of the children will be added back)
    @@ -598,6 +638,9 @@

    public <T extends Annotation> T getAnnotation(Class<T> annotationType)
    +
    +
    +
    Returns:
    the annotation of type annotationType that is attached to this description node, or null if none exists
    @@ -611,6 +654,9 @@

    public Collection<Annotation> getAnnotations()
    +
    +
    +
    Returns:
    all of the annotations attached to this description node
    @@ -623,6 +669,9 @@

    public Class<?> getTestClass()
    +
    +
    +
    Returns:
    If this describes a method invocation, the class of the test instance.
    @@ -636,6 +685,9 @@

    public String getClassName()
    +
    +
    +
    Returns:
    If this describes a method invocation, the name of the class of the test instance
    @@ -649,6 +701,9 @@

    public String getMethodName()
    +
    +
    +
    Returns:
    If this describes a method invocation, the name of the method (or null if not)
    diff --git a/javadoc/latest/org/junit/runner/JUnitCore.html b/javadoc/latest/org/junit/runner/JUnitCore.html index 126a67bf240b..000f997f96c3 100644 --- a/javadoc/latest/org/junit/runner/JUnitCore.html +++ b/javadoc/latest/org/junit/runner/JUnitCore.html @@ -2,12 +2,12 @@ - + JUnitCore (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/Request.html b/javadoc/latest/org/junit/runner/Request.html index 7e6ec8caa171..ff0af0ab241c 100644 --- a/javadoc/latest/org/junit/runner/Request.html +++ b/javadoc/latest/org/junit/runner/Request.html @@ -2,12 +2,12 @@ - + Request (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/Result.html b/javadoc/latest/org/junit/runner/Result.html index f5a49ad5026a..66d30fb10241 100644 --- a/javadoc/latest/org/junit/runner/Result.html +++ b/javadoc/latest/org/junit/runner/Result.html @@ -2,12 +2,12 @@ - + Result (JUnit API) - + @@ -94,9 +94,12 @@

    java.lang.Object extended by org.junit.runner.Result +
    +
    All Implemented Interfaces:
    Serializable
    +

    -
    public class Result
    extends Object
    +
    public class Result
    extends Object
    implements Serializable

    @@ -106,6 +109,8 @@

    +

    +
    See Also:
    Serialized Form

    @@ -236,6 +241,9 @@

    public int getRunCount()
    +
    +
    +
    Returns:
    the number of tests run
    @@ -248,6 +256,9 @@

    public int getFailureCount()
    +
    +
    +
    Returns:
    the number of tests that failed during the run
    @@ -260,6 +271,9 @@

    public long getRunTime()
    +
    +
    +
    Returns:
    the number of milliseconds it took to run the entire suite to run
    @@ -272,6 +286,9 @@

    public List<Failure> getFailures()
    +
    +
    +
    Returns:
    the Failures describing tests that failed and the problems they encountered
    @@ -284,6 +301,9 @@

    public int getIgnoreCount()
    +
    +
    +
    Returns:
    the number of tests ignored during the run
    @@ -296,6 +316,9 @@

    public boolean wasSuccessful()
    +
    +
    +
    Returns:
    true if all tests succeeded
    @@ -312,6 +335,9 @@

    +
    +
    +


    diff --git a/javadoc/latest/org/junit/runner/RunWith.html b/javadoc/latest/org/junit/runner/RunWith.html index fc4564e6a841..7d990d0d8e5b 100644 --- a/javadoc/latest/org/junit/runner/RunWith.html +++ b/javadoc/latest/org/junit/runner/RunWith.html @@ -2,12 +2,12 @@ - + RunWith (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/Runner.html b/javadoc/latest/org/junit/runner/Runner.html index f4332cd77344..33023fffd73a 100644 --- a/javadoc/latest/org/junit/runner/Runner.html +++ b/javadoc/latest/org/junit/runner/Runner.html @@ -2,12 +2,12 @@ - + Runner (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/Filter.html b/javadoc/latest/org/junit/runner/manipulation/Filter.html index 7e428bc3ab0a..914c1d3c342b 100644 --- a/javadoc/latest/org/junit/runner/manipulation/Filter.html +++ b/javadoc/latest/org/junit/runner/manipulation/Filter.html @@ -2,12 +2,12 @@ - + Filter (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/Filterable.html b/javadoc/latest/org/junit/runner/manipulation/Filterable.html index 527c3ed31f26..b272d36f8c46 100644 --- a/javadoc/latest/org/junit/runner/manipulation/Filterable.html +++ b/javadoc/latest/org/junit/runner/manipulation/Filterable.html @@ -2,12 +2,12 @@ - + Filterable (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/NoTestsRemainException.html b/javadoc/latest/org/junit/runner/manipulation/NoTestsRemainException.html index fdabc21e1ab7..59dd549045b0 100644 --- a/javadoc/latest/org/junit/runner/manipulation/NoTestsRemainException.html +++ b/javadoc/latest/org/junit/runner/manipulation/NoTestsRemainException.html @@ -2,12 +2,12 @@ - + NoTestsRemainException (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/Sortable.html b/javadoc/latest/org/junit/runner/manipulation/Sortable.html index f5a5737b2c5b..ac90c23e175d 100644 --- a/javadoc/latest/org/junit/runner/manipulation/Sortable.html +++ b/javadoc/latest/org/junit/runner/manipulation/Sortable.html @@ -2,12 +2,12 @@ - + Sortable (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/Sorter.html b/javadoc/latest/org/junit/runner/manipulation/Sorter.html index e7d29bfd4bc1..d25aa5b8c47a 100644 --- a/javadoc/latest/org/junit/runner/manipulation/Sorter.html +++ b/javadoc/latest/org/junit/runner/manipulation/Sorter.html @@ -2,12 +2,12 @@ - + Sorter (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/package-frame.html b/javadoc/latest/org/junit/runner/manipulation/package-frame.html index 72a0da993b51..20dce8ebef64 100644 --- a/javadoc/latest/org/junit/runner/manipulation/package-frame.html +++ b/javadoc/latest/org/junit/runner/manipulation/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.runner.manipulation (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/package-summary.html b/javadoc/latest/org/junit/runner/manipulation/package-summary.html index 380f30687dc2..1646622f848a 100644 --- a/javadoc/latest/org/junit/runner/manipulation/package-summary.html +++ b/javadoc/latest/org/junit/runner/manipulation/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.runner.manipulation (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/manipulation/package-tree.html b/javadoc/latest/org/junit/runner/manipulation/package-tree.html index d8cdc6c80894..1ac3113faa16 100644 --- a/javadoc/latest/org/junit/runner/manipulation/package-tree.html +++ b/javadoc/latest/org/junit/runner/manipulation/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.runner.manipulation Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/notification/Failure.html b/javadoc/latest/org/junit/runner/notification/Failure.html index 27cf04d42f5d..1014a1975c14 100644 --- a/javadoc/latest/org/junit/runner/notification/Failure.html +++ b/javadoc/latest/org/junit/runner/notification/Failure.html @@ -2,12 +2,12 @@ - + Failure (JUnit API) - + @@ -94,9 +94,12 @@

    java.lang.Object extended by org.junit.runner.notification.Failure +
    +
    All Implemented Interfaces:
    Serializable
    +

    -
    public class Failure
    extends Object
    +
    public class Failure
    extends Object
    implements Serializable

    @@ -108,6 +111,8 @@

    +

    +
    See Also:
    Serialized Form

    @@ -236,6 +241,9 @@

    public String getTestHeader()
    +
    +
    +
    Returns:
    a user-understandable label for the test
    @@ -248,6 +256,9 @@

    public Description getDescription()
    +
    +
    +
    Returns:
    the raw description of the context of the failure.
    @@ -260,6 +271,9 @@

    public Throwable getException()
    +
    +
    +
    Returns:
    the exception thrown
    @@ -288,6 +302,9 @@

    Convenience method

    +
    +
    +
    Returns:
    the printed form of the exception
    @@ -302,6 +319,9 @@

    Convenience method

    +
    +
    +
    Returns:
    the message of the thrown exception
    diff --git a/javadoc/latest/org/junit/runner/notification/RunListener.html b/javadoc/latest/org/junit/runner/notification/RunListener.html index c1cc5dd3834b..2e6c4aea0bf0 100644 --- a/javadoc/latest/org/junit/runner/notification/RunListener.html +++ b/javadoc/latest/org/junit/runner/notification/RunListener.html @@ -2,12 +2,12 @@ - + RunListener (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/notification/RunNotifier.html b/javadoc/latest/org/junit/runner/notification/RunNotifier.html index 883b8affa640..4abc8ea77306 100644 --- a/javadoc/latest/org/junit/runner/notification/RunNotifier.html +++ b/javadoc/latest/org/junit/runner/notification/RunNotifier.html @@ -2,12 +2,12 @@ - + RunNotifier (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/notification/StoppedByUserException.html b/javadoc/latest/org/junit/runner/notification/StoppedByUserException.html index 2622dfc575e6..6573b3f4835f 100644 --- a/javadoc/latest/org/junit/runner/notification/StoppedByUserException.html +++ b/javadoc/latest/org/junit/runner/notification/StoppedByUserException.html @@ -2,12 +2,12 @@ - + StoppedByUserException (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/notification/package-frame.html b/javadoc/latest/org/junit/runner/notification/package-frame.html index bc106470dbdd..00260e665be6 100644 --- a/javadoc/latest/org/junit/runner/notification/package-frame.html +++ b/javadoc/latest/org/junit/runner/notification/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.runner.notification (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/notification/package-summary.html b/javadoc/latest/org/junit/runner/notification/package-summary.html index aec8c23914a4..c78b6c20d532 100644 --- a/javadoc/latest/org/junit/runner/notification/package-summary.html +++ b/javadoc/latest/org/junit/runner/notification/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.runner.notification (JUnit API) - + diff --git a/javadoc/latest/org/junit/runner/notification/package-tree.html b/javadoc/latest/org/junit/runner/notification/package-tree.html index 6ff6223a0768..47e2e9144d21 100644 --- a/javadoc/latest/org/junit/runner/notification/package-tree.html +++ b/javadoc/latest/org/junit/runner/notification/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.runner.notification Class Hierarchy (JUnit API) - + @@ -91,7 +91,8 @@


    +

    +validateNoNonStaticInnerClass

    +
    +protected void validateNoNonStaticInnerClass(List<Throwable> errors)
    +
    +
    +
    +
    +
    +
    +

    validateConstructor

    diff --git a/javadoc/latest/org/junit/runners/JUnit4.html b/javadoc/latest/org/junit/runners/JUnit4.html
    index 36df93d3ff44..2f021f4b0234 100644
    --- a/javadoc/latest/org/junit/runners/JUnit4.html
    +++ b/javadoc/latest/org/junit/runners/JUnit4.html
    @@ -2,12 +2,12 @@
     
     
     
    -
    +
     
     JUnit4 (JUnit API)
     
     
    -
    +
     
     
     
    @@ -152,7 +152,7 @@ 

    Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner -collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout +collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout   @@ -161,7 +161,7 @@

    Methods inherited from class org.junit.runners.ParentRunner -childrenInvoker, classBlock, classRules, filter, getDescription, getName, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses +childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses   diff --git a/javadoc/latest/org/junit/runners/Parameterized.Parameters.html b/javadoc/latest/org/junit/runners/Parameterized.Parameters.html index 164d7b761e4e..be9f61d889c3 100644 --- a/javadoc/latest/org/junit/runners/Parameterized.Parameters.html +++ b/javadoc/latest/org/junit/runners/Parameterized.Parameters.html @@ -2,12 +2,12 @@ - + Parameterized.Parameters (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/Parameterized.html b/javadoc/latest/org/junit/runners/Parameterized.html index b7d454c77d42..3668ae3c0041 100644 --- a/javadoc/latest/org/junit/runners/Parameterized.html +++ b/javadoc/latest/org/junit/runners/Parameterized.html @@ -2,12 +2,12 @@ - + Parameterized (JUnit API) - + @@ -120,8 +120,8 @@

    @Parameters public static List<Object[]> data() { return Arrays.asList(new Object[][] { - { { 0, 0 }, { 1, 1 }, { 2, 1 }, { 3, 2 }, { 4, 3 }, { 5, 5 }, - { 6, 8 } } }); + { 0, 0 }, { 1, 1 }, { 2, 1 }, { 3, 2 }, { 4, 3 }, { 5, 5 }, { 6, 8 } + }); } private int fInput; @@ -228,7 +228,7 @@

    Methods inherited from class org.junit.runners.ParentRunner -childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses +childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses   diff --git a/javadoc/latest/org/junit/runners/ParentRunner.html b/javadoc/latest/org/junit/runners/ParentRunner.html index 9eb7148ff870..0d07f127d813 100644 --- a/javadoc/latest/org/junit/runners/ParentRunner.html +++ b/javadoc/latest/org/junit/runners/ParentRunner.html @@ -2,12 +2,12 @@ - + ParentRunner (JUnit API) - + @@ -226,6 +226,14 @@

    +protected  Annotation[] +getRunnerAnnotations() + +
    +            + + +  TestClass getTestClass() @@ -620,6 +628,22 @@


    +

    +getRunnerAnnotations

    +
    +protected Annotation[] getRunnerAnnotations()
    +
    +
    +
    +
    +
    + +
    Returns:
    the annotations that should be attached to this runner's + description.
    +
    +
    +
    +

    getDescription

    diff --git a/javadoc/latest/org/junit/runners/Suite.SuiteClasses.html b/javadoc/latest/org/junit/runners/Suite.SuiteClasses.html
    index 53d2aa71c0be..a4a44431cef1 100644
    --- a/javadoc/latest/org/junit/runners/Suite.SuiteClasses.html
    +++ b/javadoc/latest/org/junit/runners/Suite.SuiteClasses.html
    @@ -2,12 +2,12 @@
     
     
     
    -
    +
     
     Suite.SuiteClasses (JUnit API)
     
     
    -
    +
     
     
     
    diff --git a/javadoc/latest/org/junit/runners/Suite.html b/javadoc/latest/org/junit/runners/Suite.html
    index 064f5426af6b..9009c89e15b8 100644
    --- a/javadoc/latest/org/junit/runners/Suite.html
    +++ b/javadoc/latest/org/junit/runners/Suite.html
    @@ -2,12 +2,12 @@
     
     
     
    -
    +
     
     Suite (JUnit API)
     
     
    -
    +
     
     
     
    @@ -245,7 +245,7 @@ 

    Methods inherited from class org.junit.runners.ParentRunner -childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses +childrenInvoker, classBlock, classRules, collectInitializationErrors, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses   diff --git a/javadoc/latest/org/junit/runners/model/FrameworkField.html b/javadoc/latest/org/junit/runners/model/FrameworkField.html index 8f13b0b67d4d..f9638b1e3e97 100644 --- a/javadoc/latest/org/junit/runners/model/FrameworkField.html +++ b/javadoc/latest/org/junit/runners/model/FrameworkField.html @@ -2,12 +2,12 @@ - + FrameworkField (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/FrameworkMethod.html b/javadoc/latest/org/junit/runners/model/FrameworkMethod.html index bb42b9ece8ec..a0a0ac8e6735 100644 --- a/javadoc/latest/org/junit/runners/model/FrameworkMethod.html +++ b/javadoc/latest/org/junit/runners/model/FrameworkMethod.html @@ -2,12 +2,12 @@ - + FrameworkMethod (JUnit API) - + @@ -214,11 +214,21 @@

     boolean -producesType(Class<?> type) +producesType(Type type)
    -          Returns true iff this is a no-arg method that returns a value assignable - to type +          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. + + + + void +validateNoTypeParametersOnArgs(List<Throwable> errors) + +
    +            @@ -375,6 +385,17 @@


    +

    +validateNoTypeParametersOnArgs

    +
    +public void validateNoTypeParametersOnArgs(List<Throwable> errors)
    +
    +
    +
    +
    +
    +
    +

    isShadowedBy

    @@ -417,11 +438,17 @@ 


    -

    +

    producesType

    -public boolean producesType(Class<?> type)
    +@Deprecated +public boolean producesType(Type type)
    +
    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. +

    Returns true iff this is a no-arg method that returns a value assignable to type

    diff --git a/javadoc/latest/org/junit/runners/model/InitializationError.html b/javadoc/latest/org/junit/runners/model/InitializationError.html index 132863eac2fb..d7edb4cd5320 100644 --- a/javadoc/latest/org/junit/runners/model/InitializationError.html +++ b/javadoc/latest/org/junit/runners/model/InitializationError.html @@ -2,12 +2,12 @@ - + InitializationError (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/MultipleFailureException.html b/javadoc/latest/org/junit/runners/model/MultipleFailureException.html index 8af50138f3f8..d263ee5101cc 100644 --- a/javadoc/latest/org/junit/runners/model/MultipleFailureException.html +++ b/javadoc/latest/org/junit/runners/model/MultipleFailureException.html @@ -2,12 +2,12 @@ - + MultipleFailureException (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/RunnerBuilder.html b/javadoc/latest/org/junit/runners/model/RunnerBuilder.html index 890ccab0fe17..5339b1590dab 100644 --- a/javadoc/latest/org/junit/runners/model/RunnerBuilder.html +++ b/javadoc/latest/org/junit/runners/model/RunnerBuilder.html @@ -2,12 +2,12 @@ - + RunnerBuilder (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/RunnerScheduler.html b/javadoc/latest/org/junit/runners/model/RunnerScheduler.html index b0f6e5566778..58a5fa83591b 100644 --- a/javadoc/latest/org/junit/runners/model/RunnerScheduler.html +++ b/javadoc/latest/org/junit/runners/model/RunnerScheduler.html @@ -2,12 +2,12 @@ - + RunnerScheduler (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/Statement.html b/javadoc/latest/org/junit/runners/model/Statement.html index 21b262045b90..e3a0c6441fb8 100644 --- a/javadoc/latest/org/junit/runners/model/Statement.html +++ b/javadoc/latest/org/junit/runners/model/Statement.html @@ -2,12 +2,12 @@ - + Statement (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/TestClass.html b/javadoc/latest/org/junit/runners/model/TestClass.html index 34116c3a91c5..43cb1519c603 100644 --- a/javadoc/latest/org/junit/runners/model/TestClass.html +++ b/javadoc/latest/org/junit/runners/model/TestClass.html @@ -2,12 +2,12 @@ - + TestClass (JUnit API) - + @@ -199,6 +199,14 @@


              Returns the only public constructor in the class, or throws an AssertionError if there are more or less than one. + + + boolean +isANonStaticInnerClass() + +
    +            +   @@ -335,6 +343,17 @@

    +
    + +

    +isANonStaticInnerClass

    +
    +public boolean isANonStaticInnerClass()
    +
    +
    +
    +
    +

    diff --git a/javadoc/latest/org/junit/runners/model/package-frame.html b/javadoc/latest/org/junit/runners/model/package-frame.html index 8a31fb564c5d..d537a1a980e0 100644 --- a/javadoc/latest/org/junit/runners/model/package-frame.html +++ b/javadoc/latest/org/junit/runners/model/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.runners.model (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/package-summary.html b/javadoc/latest/org/junit/runners/model/package-summary.html index fb5fcd93baba..b94828aa78b0 100644 --- a/javadoc/latest/org/junit/runners/model/package-summary.html +++ b/javadoc/latest/org/junit/runners/model/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.runners.model (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/model/package-tree.html b/javadoc/latest/org/junit/runners/model/package-tree.html index 3342d15f42ab..b9e7e506b17a 100644 --- a/javadoc/latest/org/junit/runners/model/package-tree.html +++ b/javadoc/latest/org/junit/runners/model/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.runners.model Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/package-frame.html b/javadoc/latest/org/junit/runners/package-frame.html index de8497efa063..81514b0bb66c 100644 --- a/javadoc/latest/org/junit/runners/package-frame.html +++ b/javadoc/latest/org/junit/runners/package-frame.html @@ -2,12 +2,12 @@ - + org.junit.runners (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/package-summary.html b/javadoc/latest/org/junit/runners/package-summary.html index 35b9c7f5516a..d343a55aae62 100644 --- a/javadoc/latest/org/junit/runners/package-summary.html +++ b/javadoc/latest/org/junit/runners/package-summary.html @@ -2,12 +2,12 @@ - + org.junit.runners (JUnit API) - + diff --git a/javadoc/latest/org/junit/runners/package-tree.html b/javadoc/latest/org/junit/runners/package-tree.html index e3f98fbdf143..9c3f83395d09 100644 --- a/javadoc/latest/org/junit/runners/package-tree.html +++ b/javadoc/latest/org/junit/runners/package-tree.html @@ -2,12 +2,12 @@ - + org.junit.runners Class Hierarchy (JUnit API) - + diff --git a/javadoc/latest/overview-frame.html b/javadoc/latest/overview-frame.html index 39ef525c7bc6..89d389b76a26 100644 --- a/javadoc/latest/overview-frame.html +++ b/javadoc/latest/overview-frame.html @@ -2,12 +2,12 @@ - + Overview List (JUnit API) - + diff --git a/javadoc/latest/overview-summary.html b/javadoc/latest/overview-summary.html index 57dcc289fb3a..4e5f0cc2d488 100644 --- a/javadoc/latest/overview-summary.html +++ b/javadoc/latest/overview-summary.html @@ -2,12 +2,12 @@ - + Overview (JUnit API) - + diff --git a/javadoc/latest/overview-tree.html b/javadoc/latest/overview-tree.html index 932cb0289ca2..e5902f9125ed 100644 --- a/javadoc/latest/overview-tree.html +++ b/javadoc/latest/overview-tree.html @@ -2,12 +2,12 @@ - + Class Hierarchy (JUnit API) - + @@ -99,16 +99,20 @@

  • org.hamcrest.core.AllOf<T>
  • org.hamcrest.core.AnyOf<T>
  • org.hamcrest.core.DescribedAs<T>
  • org.hamcrest.core.Is<T>
  • org.hamcrest.core.IsAnything<T>
  • org.hamcrest.core.IsEqual<T>
  • org.hamcrest.core.IsInstanceOf
  • org.hamcrest.core.IsNot<T>
  • org.hamcrest.core.IsNull<T>
  • org.hamcrest.core.IsSame<T>
  • org.junit.runner.Computer -
  • org.hamcrest.CoreMatchers
  • org.junit.runner.Description
  • org.junit.rules.ExpectedException (implements org.junit.rules.TestRule) +
  • org.hamcrest.CoreMatchers
  • org.junit.runner.Description (implements java.io.Serializable) +
  • org.junit.rules.ExpectedException (implements org.junit.rules.TestRule)
  • org.junit.rules.ExternalResource (implements org.junit.rules.TestRule) -
  • org.junit.runner.notification.Failure
  • org.junit.runner.manipulation.Filter
  • + + + +
    +Package org.junit.runner
    + +

    + + + + + +
    +Class org.junit.runner.Description extends Object implements Serializable
    + +

    +serialVersionUID: 1L + +

    + + + + + +
    +Serialized Fields
    + +

    +fChildren

    +
    +ArrayList<E> fChildren
    +
    +
    +
    +
    +
    +

    +fDisplayName

    +
    +String fDisplayName
    +
    +
    +
    +
    +
    +

    +fAnnotations

    +
    +Annotation[] fAnnotations
    +
    +
    +
    +
    + +

    + + + + + +
    +Class org.junit.runner.Result extends Object implements Serializable
    + +

    +serialVersionUID: 1L + +

    + + + + + +
    +Serialized Fields
    + +

    +fCount

    +
    +AtomicInteger fCount
    +
    +
    +
    +
    +
    +

    +fIgnoreCount

    +
    +AtomicInteger fIgnoreCount
    +
    +
    +
    +
    +
    +

    +fFailures

    +
    +List<E> fFailures
    +
    +
    +
    +
    +
    +

    +fRunTime

    +
    +long fRunTime
    +
    +
    +
    +
    +
    +

    +fStartTime

    +
    +long fStartTime
    +
    +
    +
    +
    +
    +
    @@ -266,6 +388,45 @@

    +

    + + + + + +
    +Class org.junit.runner.notification.Failure extends Object implements Serializable
    + +

    +serialVersionUID: 1L + +

    + + + + + +
    +Serialized Fields
    + +

    +fDescription

    +
    +Description fDescription
    +
    +
    +
    +
    +
    +

    +fThrownException

    +
    +Throwable fThrownException
    +
    +
    +
    +
    +