From 4ec050966446ade767bebeace11f269521984067 Mon Sep 17 00:00:00 2001 From: scarytom Date: Sat, 1 Sep 2012 13:15:20 +0100 Subject: [PATCH 001/303] Initial index.html for JavaHamcrest specific site. --- index.html | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 000000000..add59164e --- /dev/null +++ b/index.html @@ -0,0 +1,96 @@ + + + + + + + + + + Java Hamcrest + + + + +
+

Java Hamcrest

+

Matchers that can be combined to create flexible expressions of intent

+

Downloads

+ +

Documentation

+ +

User Support

+ + +
+ Fork me on GitHub + + + From bb0ec49416ffe4cd4bd1e29e0c4f6b71f85bd1a7 Mon Sep 17 00:00:00 2001 From: scarytom Date: Sat, 1 Sep 2012 13:15:34 +0100 Subject: [PATCH 002/303] add .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..87694cec3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.swp +*.*~ \ No newline at end of file From ce80d630670e695e69332976904214267fe47554 Mon Sep 17 00:00:00 2001 From: scarytom Date: Sat, 1 Sep 2012 13:16:15 +0100 Subject: [PATCH 003/303] add Javadoc for 1.3 --- javadoc/1.3/allclasses-frame.html | 181 + javadoc/1.3/allclasses-noframe.html | 181 + javadoc/1.3/constant-values.html | 146 + javadoc/1.3/deprecated-list.html | 191 + javadoc/1.3/help-doc.html | 223 + javadoc/1.3/index-all.html | 2032 +++++ javadoc/1.3/index.html | 39 + javadoc/1.3/org/hamcrest/BaseDescription.html | 514 ++ javadoc/1.3/org/hamcrest/BaseMatcher.html | 346 + javadoc/1.3/org/hamcrest/Condition.Step.html | 211 + javadoc/1.3/org/hamcrest/Condition.html | 412 + javadoc/1.3/org/hamcrest/CoreMatchers.html | 1629 ++++ javadoc/1.3/org/hamcrest/CustomMatcher.html | 302 + .../org/hamcrest/CustomTypeSafeMatcher.html | 305 + .../hamcrest/Description.NullDescription.html | 482 + javadoc/1.3/org/hamcrest/Description.html | 412 + .../1.3/org/hamcrest/DiagnosingMatcher.html | 344 + .../1.3/org/hamcrest/EasyMock2Matchers.html | 256 + javadoc/1.3/org/hamcrest/Factory.html | 178 + javadoc/1.3/org/hamcrest/FeatureMatcher.html | 348 + javadoc/1.3/org/hamcrest/JMock1Matchers.html | 252 + .../org/hamcrest/JavaLangMatcherAssert.html | 240 + javadoc/1.3/org/hamcrest/Matcher.html | 310 + javadoc/1.3/org/hamcrest/MatcherAssert.html | 312 + javadoc/1.3/org/hamcrest/Matchers.html | 3658 ++++++++ javadoc/1.3/org/hamcrest/SelfDescribing.html | 220 + .../1.3/org/hamcrest/StringDescription.html | 420 + .../hamcrest/TypeSafeDiagnosingMatcher.html | 402 + javadoc/1.3/org/hamcrest/TypeSafeMatcher.html | 416 + .../1.3/org/hamcrest/beans/HasProperty.html | 377 + .../hamcrest/beans/HasPropertyWithValue.html | 397 + .../1.3/org/hamcrest/beans/PropertyUtil.html | 338 + .../SamePropertyValuesAs.PropertyMatcher.html | 309 + .../hamcrest/beans/SamePropertyValuesAs.html | 360 + .../hamcrest/beans/class-use/HasProperty.html | 144 + .../beans/class-use/HasPropertyWithValue.html | 144 + .../beans/class-use/PropertyUtil.html | 144 + .../SamePropertyValuesAs.PropertyMatcher.html | 144 + .../beans/class-use/SamePropertyValuesAs.html | 144 + .../1.3/org/hamcrest/beans/package-frame.html | 40 + .../org/hamcrest/beans/package-summary.html | 190 + .../1.3/org/hamcrest/beans/package-tree.html | 162 + .../1.3/org/hamcrest/beans/package-use.html | 144 + .../hamcrest/class-use/BaseDescription.html | 180 + .../org/hamcrest/class-use/BaseMatcher.html | 733 ++ .../hamcrest/class-use/Condition.Step.html | 202 + .../1.3/org/hamcrest/class-use/Condition.html | 242 + .../org/hamcrest/class-use/CoreMatchers.html | 144 + .../org/hamcrest/class-use/CustomMatcher.html | 144 + .../class-use/CustomTypeSafeMatcher.html | 144 + .../Description.NullDescription.html | 144 + .../org/hamcrest/class-use/Description.html | 1330 +++ .../hamcrest/class-use/DiagnosingMatcher.html | 217 + .../hamcrest/class-use/EasyMock2Matchers.html | 144 + .../1.3/org/hamcrest/class-use/Factory.html | 1851 ++++ .../hamcrest/class-use/FeatureMatcher.html | 225 + .../hamcrest/class-use/JMock1Matchers.html | 144 + .../class-use/JavaLangMatcherAssert.html | 144 + .../1.3/org/hamcrest/class-use/Matcher.html | 8051 +++++++++++++++++ .../org/hamcrest/class-use/MatcherAssert.html | 144 + .../1.3/org/hamcrest/class-use/Matchers.html | 144 + .../hamcrest/class-use/SelfDescribing.html | 892 ++ .../hamcrest/class-use/StringDescription.html | 144 + .../class-use/TypeSafeDiagnosingMatcher.html | 390 + .../hamcrest/class-use/TypeSafeMatcher.html | 460 + .../1.3/org/hamcrest/collection/IsArray.html | 444 + .../collection/IsArrayContaining.html | 405 + .../IsArrayContainingInAnyOrder.html | 451 + .../collection/IsArrayContainingInOrder.html | 436 + .../hamcrest/collection/IsArrayWithSize.html | 395 + .../collection/IsCollectionWithSize.html | 362 + .../collection/IsEmptyCollection.html | 404 + .../hamcrest/collection/IsEmptyIterable.html | 400 + javadoc/1.3/org/hamcrest/collection/IsIn.html | 411 + .../IsIterableContainingInAnyOrder.html | 465 + .../IsIterableContainingInOrder.html | 452 + .../collection/IsIterableWithSize.html | 362 + .../hamcrest/collection/IsMapContaining.html | 542 ++ .../collection/class-use/IsArray.html | 223 + .../class-use/IsArrayContaining.html | 144 + .../IsArrayContainingInAnyOrder.html | 144 + .../class-use/IsArrayContainingInOrder.html | 144 + .../collection/class-use/IsArrayWithSize.html | 144 + .../class-use/IsCollectionWithSize.html | 144 + .../class-use/IsEmptyCollection.html | 144 + .../collection/class-use/IsEmptyIterable.html | 144 + .../hamcrest/collection/class-use/IsIn.html | 144 + .../IsIterableContainingInAnyOrder.html | 144 + .../IsIterableContainingInOrder.html | 144 + .../class-use/IsIterableWithSize.html | 144 + .../collection/class-use/IsMapContaining.html | 144 + .../hamcrest/collection/package-frame.html | 56 + .../hamcrest/collection/package-summary.html | 220 + .../org/hamcrest/collection/package-tree.html | 162 + .../org/hamcrest/collection/package-use.html | 189 + javadoc/1.3/org/hamcrest/core/AllOf.html | 556 ++ javadoc/1.3/org/hamcrest/core/AnyOf.html | 598 ++ ...mbinableMatcher.CombinableBothMatcher.html | 255 + ...inableMatcher.CombinableEitherMatcher.html | 255 + .../org/hamcrest/core/CombinableMatcher.html | 433 + .../1.3/org/hamcrest/core/DescribedAs.html | 373 + javadoc/1.3/org/hamcrest/core/Every.html | 343 + javadoc/1.3/org/hamcrest/core/Is.html | 474 + javadoc/1.3/org/hamcrest/core/IsAnything.html | 360 + .../hamcrest/core/IsCollectionContaining.html | 452 + javadoc/1.3/org/hamcrest/core/IsEqual.html | 352 + .../1.3/org/hamcrest/core/IsInstanceOf.html | 390 + javadoc/1.3/org/hamcrest/core/IsNot.html | 368 + javadoc/1.3/org/hamcrest/core/IsNull.html | 418 + javadoc/1.3/org/hamcrest/core/IsSame.html | 362 + .../1.3/org/hamcrest/core/StringContains.html | 358 + .../1.3/org/hamcrest/core/StringEndsWith.html | 358 + .../org/hamcrest/core/StringStartsWith.html | 358 + .../org/hamcrest/core/SubstringMatcher.html | 413 + .../org/hamcrest/core/class-use/AllOf.html | 144 + .../org/hamcrest/core/class-use/AnyOf.html | 553 ++ ...mbinableMatcher.CombinableBothMatcher.html | 238 + ...inableMatcher.CombinableEitherMatcher.html | 238 + .../core/class-use/CombinableMatcher.html | 204 + .../hamcrest/core/class-use/DescribedAs.html | 144 + .../org/hamcrest/core/class-use/Every.html | 144 + .../1.3/org/hamcrest/core/class-use/Is.html | 144 + .../hamcrest/core/class-use/IsAnything.html | 144 + .../class-use/IsCollectionContaining.html | 144 + .../org/hamcrest/core/class-use/IsEqual.html | 144 + .../hamcrest/core/class-use/IsInstanceOf.html | 144 + .../org/hamcrest/core/class-use/IsNot.html | 144 + .../org/hamcrest/core/class-use/IsNull.html | 144 + .../org/hamcrest/core/class-use/IsSame.html | 144 + .../core/class-use/StringContains.html | 144 + .../core/class-use/StringEndsWith.html | 144 + .../core/class-use/StringStartsWith.html | 144 + .../core/class-use/SubstringMatcher.html | 196 + .../1.3/org/hamcrest/core/package-frame.html | 68 + .../org/hamcrest/core/package-summary.html | 246 + .../1.3/org/hamcrest/core/package-tree.html | 164 + .../1.3/org/hamcrest/core/package-use.html | 225 + .../integration/EasyMock2Adapter.html | 319 + .../hamcrest/integration/JMock1Adapter.html | 319 + .../class-use/EasyMock2Adapter.html | 144 + .../integration/class-use/JMock1Adapter.html | 144 + .../hamcrest/integration/package-frame.html | 34 + .../hamcrest/integration/package-summary.html | 163 + .../hamcrest/integration/package-tree.html | 155 + .../org/hamcrest/integration/package-use.html | 144 + .../org/hamcrest/internal/ArrayIterator.html | 302 + .../internal/ReflectiveTypeFinder.html | 296 + .../internal/SelfDescribingValue.html | 263 + .../internal/SelfDescribingValueIterator.html | 302 + .../internal/class-use/ArrayIterator.html | 144 + .../class-use/ReflectiveTypeFinder.html | 186 + .../class-use/SelfDescribingValue.html | 144 + .../SelfDescribingValueIterator.html | 144 + .../org/hamcrest/internal/package-frame.html | 38 + .../hamcrest/internal/package-summary.html | 169 + .../org/hamcrest/internal/package-tree.html | 156 + .../org/hamcrest/internal/package-use.html | 170 + .../hamcrest/number/BigDecimalCloseTo.html | 365 + .../1.3/org/hamcrest/number/IsCloseTo.html | 369 + .../hamcrest/number/OrderingComparison.html | 490 + .../number/class-use/BigDecimalCloseTo.html | 144 + .../hamcrest/number/class-use/IsCloseTo.html | 144 + .../number/class-use/OrderingComparison.html | 144 + .../org/hamcrest/number/package-frame.html | 36 + .../org/hamcrest/number/package-summary.html | 181 + .../1.3/org/hamcrest/number/package-tree.html | 158 + .../1.3/org/hamcrest/number/package-use.html | 144 + .../1.3/org/hamcrest/object/HasToString.html | 358 + .../org/hamcrest/object/IsCompatibleType.html | 367 + .../1.3/org/hamcrest/object/IsEventFrom.html | 368 + .../object/class-use/HasToString.html | 144 + .../object/class-use/IsCompatibleType.html | 144 + .../object/class-use/IsEventFrom.html | 144 + .../org/hamcrest/object/package-frame.html | 36 + .../org/hamcrest/object/package-summary.html | 180 + .../1.3/org/hamcrest/object/package-tree.html | 162 + .../1.3/org/hamcrest/object/package-use.html | 144 + javadoc/1.3/org/hamcrest/package-frame.html | 92 + javadoc/1.3/org/hamcrest/package-summary.html | 279 + javadoc/1.3/org/hamcrest/package-tree.html | 177 + javadoc/1.3/org/hamcrest/package-use.html | 659 ++ .../1.3/org/hamcrest/text/IsEmptyString.html | 352 + .../hamcrest/text/IsEqualIgnoringCase.html | 364 + .../text/IsEqualIgnoringWhiteSpace.html | 388 + .../hamcrest/text/StringContainsInOrder.html | 360 + .../text/class-use/IsEmptyString.html | 144 + .../text/class-use/IsEqualIgnoringCase.html | 144 + .../class-use/IsEqualIgnoringWhiteSpace.html | 144 + .../text/class-use/StringContainsInOrder.html | 144 + .../1.3/org/hamcrest/text/package-frame.html | 38 + .../org/hamcrest/text/package-summary.html | 184 + .../1.3/org/hamcrest/text/package-tree.html | 158 + .../1.3/org/hamcrest/text/package-use.html | 144 + javadoc/1.3/org/hamcrest/xml/HasXPath.html | 492 + .../org/hamcrest/xml/class-use/HasXPath.html | 144 + .../1.3/org/hamcrest/xml/package-frame.html | 32 + .../1.3/org/hamcrest/xml/package-summary.html | 172 + .../1.3/org/hamcrest/xml/package-tree.html | 158 + javadoc/1.3/org/hamcrest/xml/package-use.html | 144 + javadoc/1.3/overview-frame.html | 60 + javadoc/1.3/overview-summary.html | 221 + javadoc/1.3/overview-tree.html | 187 + javadoc/1.3/package-list | 10 + javadoc/1.3/resources/inherit.gif | Bin 0 -> 57 bytes javadoc/1.3/stylesheet.css | 29 + javadoc/javadoc.html | 82 + 206 files changed, 67403 insertions(+) create mode 100644 javadoc/1.3/allclasses-frame.html create mode 100644 javadoc/1.3/allclasses-noframe.html create mode 100644 javadoc/1.3/constant-values.html create mode 100644 javadoc/1.3/deprecated-list.html create mode 100644 javadoc/1.3/help-doc.html create mode 100644 javadoc/1.3/index-all.html create mode 100644 javadoc/1.3/index.html create mode 100644 javadoc/1.3/org/hamcrest/BaseDescription.html create mode 100644 javadoc/1.3/org/hamcrest/BaseMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/Condition.Step.html create mode 100644 javadoc/1.3/org/hamcrest/Condition.html create mode 100644 javadoc/1.3/org/hamcrest/CoreMatchers.html create mode 100644 javadoc/1.3/org/hamcrest/CustomMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/CustomTypeSafeMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/Description.NullDescription.html create mode 100644 javadoc/1.3/org/hamcrest/Description.html create mode 100644 javadoc/1.3/org/hamcrest/DiagnosingMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/EasyMock2Matchers.html create mode 100644 javadoc/1.3/org/hamcrest/Factory.html create mode 100644 javadoc/1.3/org/hamcrest/FeatureMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/JMock1Matchers.html create mode 100644 javadoc/1.3/org/hamcrest/JavaLangMatcherAssert.html create mode 100644 javadoc/1.3/org/hamcrest/Matcher.html create mode 100644 javadoc/1.3/org/hamcrest/MatcherAssert.html create mode 100644 javadoc/1.3/org/hamcrest/Matchers.html create mode 100644 javadoc/1.3/org/hamcrest/SelfDescribing.html create mode 100644 javadoc/1.3/org/hamcrest/StringDescription.html create mode 100644 javadoc/1.3/org/hamcrest/TypeSafeDiagnosingMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/TypeSafeMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/beans/HasProperty.html create mode 100644 javadoc/1.3/org/hamcrest/beans/HasPropertyWithValue.html create mode 100644 javadoc/1.3/org/hamcrest/beans/PropertyUtil.html create mode 100644 javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.PropertyMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.html create mode 100644 javadoc/1.3/org/hamcrest/beans/class-use/HasProperty.html create mode 100644 javadoc/1.3/org/hamcrest/beans/class-use/HasPropertyWithValue.html create mode 100644 javadoc/1.3/org/hamcrest/beans/class-use/PropertyUtil.html create mode 100644 javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.PropertyMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.html create mode 100644 javadoc/1.3/org/hamcrest/beans/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/beans/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/beans/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/beans/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/BaseDescription.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/BaseMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Condition.Step.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Condition.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/CoreMatchers.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/CustomMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/CustomTypeSafeMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Description.NullDescription.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Description.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/DiagnosingMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/EasyMock2Matchers.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Factory.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/FeatureMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/JMock1Matchers.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/JavaLangMatcherAssert.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Matcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/MatcherAssert.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/Matchers.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/SelfDescribing.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/StringDescription.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/TypeSafeDiagnosingMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/class-use/TypeSafeMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsArray.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsArrayContaining.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsArrayContainingInAnyOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsArrayContainingInOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsArrayWithSize.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsCollectionWithSize.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsEmptyCollection.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsEmptyIterable.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsIn.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsIterableContainingInAnyOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsIterableContainingInOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsIterableWithSize.html create mode 100644 javadoc/1.3/org/hamcrest/collection/IsMapContaining.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsArray.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContaining.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInAnyOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsArrayWithSize.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsCollectionWithSize.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyCollection.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyIterable.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsIn.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInAnyOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInOrder.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsIterableWithSize.html create mode 100644 javadoc/1.3/org/hamcrest/collection/class-use/IsMapContaining.html create mode 100644 javadoc/1.3/org/hamcrest/collection/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/collection/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/collection/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/collection/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/core/AllOf.html create mode 100644 javadoc/1.3/org/hamcrest/core/AnyOf.html create mode 100644 javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableBothMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/CombinableMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/DescribedAs.html create mode 100644 javadoc/1.3/org/hamcrest/core/Every.html create mode 100644 javadoc/1.3/org/hamcrest/core/Is.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsAnything.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsCollectionContaining.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsEqual.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsInstanceOf.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsNot.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsNull.html create mode 100644 javadoc/1.3/org/hamcrest/core/IsSame.html create mode 100644 javadoc/1.3/org/hamcrest/core/StringContains.html create mode 100644 javadoc/1.3/org/hamcrest/core/StringEndsWith.html create mode 100644 javadoc/1.3/org/hamcrest/core/StringStartsWith.html create mode 100644 javadoc/1.3/org/hamcrest/core/SubstringMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/AllOf.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/AnyOf.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableBothMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableEitherMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/DescribedAs.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/Every.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/Is.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsAnything.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsCollectionContaining.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsEqual.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsInstanceOf.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsNot.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsNull.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/IsSame.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/StringContains.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/StringEndsWith.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/StringStartsWith.html create mode 100644 javadoc/1.3/org/hamcrest/core/class-use/SubstringMatcher.html create mode 100644 javadoc/1.3/org/hamcrest/core/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/core/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/core/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/core/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/integration/EasyMock2Adapter.html create mode 100644 javadoc/1.3/org/hamcrest/integration/JMock1Adapter.html create mode 100644 javadoc/1.3/org/hamcrest/integration/class-use/EasyMock2Adapter.html create mode 100644 javadoc/1.3/org/hamcrest/integration/class-use/JMock1Adapter.html create mode 100644 javadoc/1.3/org/hamcrest/integration/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/integration/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/integration/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/integration/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/internal/ArrayIterator.html create mode 100644 javadoc/1.3/org/hamcrest/internal/ReflectiveTypeFinder.html create mode 100644 javadoc/1.3/org/hamcrest/internal/SelfDescribingValue.html create mode 100644 javadoc/1.3/org/hamcrest/internal/SelfDescribingValueIterator.html create mode 100644 javadoc/1.3/org/hamcrest/internal/class-use/ArrayIterator.html create mode 100644 javadoc/1.3/org/hamcrest/internal/class-use/ReflectiveTypeFinder.html create mode 100644 javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValue.html create mode 100644 javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValueIterator.html create mode 100644 javadoc/1.3/org/hamcrest/internal/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/internal/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/internal/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/internal/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/number/BigDecimalCloseTo.html create mode 100644 javadoc/1.3/org/hamcrest/number/IsCloseTo.html create mode 100644 javadoc/1.3/org/hamcrest/number/OrderingComparison.html create mode 100644 javadoc/1.3/org/hamcrest/number/class-use/BigDecimalCloseTo.html create mode 100644 javadoc/1.3/org/hamcrest/number/class-use/IsCloseTo.html create mode 100644 javadoc/1.3/org/hamcrest/number/class-use/OrderingComparison.html create mode 100644 javadoc/1.3/org/hamcrest/number/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/number/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/number/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/number/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/object/HasToString.html create mode 100644 javadoc/1.3/org/hamcrest/object/IsCompatibleType.html create mode 100644 javadoc/1.3/org/hamcrest/object/IsEventFrom.html create mode 100644 javadoc/1.3/org/hamcrest/object/class-use/HasToString.html create mode 100644 javadoc/1.3/org/hamcrest/object/class-use/IsCompatibleType.html create mode 100644 javadoc/1.3/org/hamcrest/object/class-use/IsEventFrom.html create mode 100644 javadoc/1.3/org/hamcrest/object/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/object/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/object/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/object/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/text/IsEmptyString.html create mode 100644 javadoc/1.3/org/hamcrest/text/IsEqualIgnoringCase.html create mode 100644 javadoc/1.3/org/hamcrest/text/IsEqualIgnoringWhiteSpace.html create mode 100644 javadoc/1.3/org/hamcrest/text/StringContainsInOrder.html create mode 100644 javadoc/1.3/org/hamcrest/text/class-use/IsEmptyString.html create mode 100644 javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringCase.html create mode 100644 javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringWhiteSpace.html create mode 100644 javadoc/1.3/org/hamcrest/text/class-use/StringContainsInOrder.html create mode 100644 javadoc/1.3/org/hamcrest/text/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/text/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/text/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/text/package-use.html create mode 100644 javadoc/1.3/org/hamcrest/xml/HasXPath.html create mode 100644 javadoc/1.3/org/hamcrest/xml/class-use/HasXPath.html create mode 100644 javadoc/1.3/org/hamcrest/xml/package-frame.html create mode 100644 javadoc/1.3/org/hamcrest/xml/package-summary.html create mode 100644 javadoc/1.3/org/hamcrest/xml/package-tree.html create mode 100644 javadoc/1.3/org/hamcrest/xml/package-use.html create mode 100644 javadoc/1.3/overview-frame.html create mode 100644 javadoc/1.3/overview-summary.html create mode 100644 javadoc/1.3/overview-tree.html create mode 100644 javadoc/1.3/package-list create mode 100644 javadoc/1.3/resources/inherit.gif create mode 100644 javadoc/1.3/stylesheet.css create mode 100644 javadoc/javadoc.html diff --git a/javadoc/1.3/allclasses-frame.html b/javadoc/1.3/allclasses-frame.html new file mode 100644 index 000000000..63ba802ba --- /dev/null +++ b/javadoc/1.3/allclasses-frame.html @@ -0,0 +1,181 @@ + + + + + + +All Classes (Hamcrest) + + + + + + + + + + + +All Classes +
+ + + + + +
AllOf +
+AnyOf +
+ArrayIterator +
+BaseDescription +
+BaseMatcher +
+BigDecimalCloseTo +
+CombinableMatcher +
+CombinableMatcher.CombinableBothMatcher +
+CombinableMatcher.CombinableEitherMatcher +
+Condition +
+Condition.Step +
+CoreMatchers +
+CustomMatcher +
+CustomTypeSafeMatcher +
+DescribedAs +
+Description +
+Description.NullDescription +
+DiagnosingMatcher +
+EasyMock2Adapter +
+EasyMock2Matchers +
+Every +
+Factory +
+FeatureMatcher +
+HasProperty +
+HasPropertyWithValue +
+HasToString +
+HasXPath +
+Is +
+IsAnything +
+IsArray +
+IsArrayContaining +
+IsArrayContainingInAnyOrder +
+IsArrayContainingInOrder +
+IsArrayWithSize +
+IsCloseTo +
+IsCollectionContaining +
+IsCollectionWithSize +
+IsCompatibleType +
+IsEmptyCollection +
+IsEmptyIterable +
+IsEmptyString +
+IsEqual +
+IsEqualIgnoringCase +
+IsEqualIgnoringWhiteSpace +
+IsEventFrom +
+IsIn +
+IsInstanceOf +
+IsIterableContainingInAnyOrder +
+IsIterableContainingInOrder +
+IsIterableWithSize +
+IsMapContaining +
+IsNot +
+IsNull +
+IsSame +
+JavaLangMatcherAssert +
+JMock1Adapter +
+JMock1Matchers +
+Matcher +
+MatcherAssert +
+Matchers +
+OrderingComparison +
+PropertyUtil +
+ReflectiveTypeFinder +
+SamePropertyValuesAs +
+SamePropertyValuesAs.PropertyMatcher +
+SelfDescribing +
+SelfDescribingValue +
+SelfDescribingValueIterator +
+StringContains +
+StringContainsInOrder +
+StringDescription +
+StringEndsWith +
+StringStartsWith +
+SubstringMatcher +
+TypeSafeDiagnosingMatcher +
+TypeSafeMatcher +
+
+ + + diff --git a/javadoc/1.3/allclasses-noframe.html b/javadoc/1.3/allclasses-noframe.html new file mode 100644 index 000000000..f0ab63137 --- /dev/null +++ b/javadoc/1.3/allclasses-noframe.html @@ -0,0 +1,181 @@ + + + + + + +All Classes (Hamcrest) + + + + + + + + + + + +All Classes +
+ + + + + +
AllOf +
+AnyOf +
+ArrayIterator +
+BaseDescription +
+BaseMatcher +
+BigDecimalCloseTo +
+CombinableMatcher +
+CombinableMatcher.CombinableBothMatcher +
+CombinableMatcher.CombinableEitherMatcher +
+Condition +
+Condition.Step +
+CoreMatchers +
+CustomMatcher +
+CustomTypeSafeMatcher +
+DescribedAs +
+Description +
+Description.NullDescription +
+DiagnosingMatcher +
+EasyMock2Adapter +
+EasyMock2Matchers +
+Every +
+Factory +
+FeatureMatcher +
+HasProperty +
+HasPropertyWithValue +
+HasToString +
+HasXPath +
+Is +
+IsAnything +
+IsArray +
+IsArrayContaining +
+IsArrayContainingInAnyOrder +
+IsArrayContainingInOrder +
+IsArrayWithSize +
+IsCloseTo +
+IsCollectionContaining +
+IsCollectionWithSize +
+IsCompatibleType +
+IsEmptyCollection +
+IsEmptyIterable +
+IsEmptyString +
+IsEqual +
+IsEqualIgnoringCase +
+IsEqualIgnoringWhiteSpace +
+IsEventFrom +
+IsIn +
+IsInstanceOf +
+IsIterableContainingInAnyOrder +
+IsIterableContainingInOrder +
+IsIterableWithSize +
+IsMapContaining +
+IsNot +
+IsNull +
+IsSame +
+JavaLangMatcherAssert +
+JMock1Adapter +
+JMock1Matchers +
+Matcher +
+MatcherAssert +
+Matchers +
+OrderingComparison +
+PropertyUtil +
+ReflectiveTypeFinder +
+SamePropertyValuesAs +
+SamePropertyValuesAs.PropertyMatcher +
+SelfDescribing +
+SelfDescribingValue +
+SelfDescribingValueIterator +
+StringContains +
+StringContainsInOrder +
+StringDescription +
+StringEndsWith +
+StringStartsWith +
+SubstringMatcher +
+TypeSafeDiagnosingMatcher +
+TypeSafeMatcher +
+
+ + + diff --git a/javadoc/1.3/constant-values.html b/javadoc/1.3/constant-values.html new file mode 100644 index 000000000..3b472d2aa --- /dev/null +++ b/javadoc/1.3/constant-values.html @@ -0,0 +1,146 @@ + + + + + + +Constant Field Values (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Constant Field Values

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/deprecated-list.html b/javadoc/1.3/deprecated-list.html new file mode 100644 index 000000000..260fc82d1 --- /dev/null +++ b/javadoc/1.3/deprecated-list.html @@ -0,0 +1,191 @@ + + + + + + +Deprecated List (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Deprecated API

+
+
+Contents + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Deprecated Methods
org.hamcrest.Matcher._dont_implement_Matcher___instead_extend_BaseMatcher_() +
+          to make 
org.hamcrest.BaseMatcher._dont_implement_Matcher___instead_extend_BaseMatcher_() +
+           
org.hamcrest.Matchers.containsInAnyOrder(Matcher) +
+          use contains(Matcher itemMatcher) instead 
org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher) +
+          use contains(Matcher itemMatcher) instead 
org.hamcrest.Matchers.is(Class) +
+          use isA(Class type) instead. 
org.hamcrest.CoreMatchers.is(Class) +
+          use isA(Class type) instead. 
org.hamcrest.core.Is.is(Class) +
+          use isA(Class type) instead. 
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/help-doc.html b/javadoc/1.3/help-doc.html new file mode 100644 index 000000000..e7f01c0fb --- /dev/null +++ b/javadoc/1.3/help-doc.html @@ -0,0 +1,223 @@ + + + + + + +API Help (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

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

    +
  • Interfaces (italic)
  • Classes
  • Enums
  • Exceptions
  • Errors
  • Annotation Types
+
+

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

    +
  • Class inheritance diagram
  • Direct Subclasses
  • All Known Subinterfaces
  • All Known Implementing Classes
  • Class/interface declaration
  • Class/interface description +

    +

  • Nested Class Summary
  • Field Summary
  • Constructor Summary
  • Method Summary +

    +

  • Field Detail
  • Constructor Detail
  • Method Detail
+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:

    +
  • Annotation Type declaration
  • Annotation Type description
  • Required Element Summary
  • Optional Element Summary
  • Element Detail
+
+ +

+Enum

+
+ +

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

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+

+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.
    +
  • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
  • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+
+

+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/1.3/index-all.html b/javadoc/1.3/index-all.html new file mode 100644 index 000000000..40ed7de90 --- /dev/null +++ b/javadoc/1.3/index-all.html @@ -0,0 +1,2032 @@ + + + + + + +Index (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +A B C D E F G H I J L M N O P R S T _
+

+A

+
+
adapt(Matcher<?>) - +Static method in class org.hamcrest.integration.EasyMock2Adapter +
Convenience factory method that will adapt a + Hamcrest Matcher to act as an + EasyMock IArgumentMatcher and + report it to EasyMock so it can be kept track of. +
adapt(Matcher<?>) - +Static method in class org.hamcrest.integration.JMock1Adapter +
Convenience factory method that will adapt a + Hamcrest Matcher to act as an + jMock Constraint. +
AllOf<T> - Class in org.hamcrest.core
Calculates the logical conjunction of multiple matchers.
AllOf(Iterable<Matcher<? super T>>) - +Constructor for class org.hamcrest.core.AllOf +
  +
allOf(Iterable<Matcher<? super T>>) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>...) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AllOf +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Iterable<Matcher<? super T>>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>...) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Iterable<Matcher<? super T>>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
allOf(Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +
and(Condition.Step<? super T, U>) - +Method in class org.hamcrest.Condition +
  +
and(Matcher<? super T>) - +Method in class org.hamcrest.core.CombinableMatcher +
  +
and(Matcher<? super X>) - +Method in class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher +
  +
any(Class<T>) - +Static method in class org.hamcrest.core.IsInstanceOf +
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. +
any(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. +
any(Class<T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. +
AnyOf<T> - Class in org.hamcrest.core
Calculates the logical disjunction of multiple matchers.
AnyOf(Iterable<Matcher<? super T>>) - +Constructor for class org.hamcrest.core.AnyOf +
  +
anyOf(Iterable<Matcher<? super T>>) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<? super T>...) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.core.AnyOf +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Iterable<Matcher<? super T>>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<? super T>...) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Iterable<Matcher<? super T>>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<T>, Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anyOf(Matcher<? super T>...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +
anything() - +Static method in class org.hamcrest.core.IsAnything +
Creates a matcher that always matches, regardless of the examined object. +
anything(String) - +Static method in class org.hamcrest.core.IsAnything +
Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String. +
anything() - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that always matches, regardless of the examined object. +
anything(String) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String. +
anything() - +Static method in class org.hamcrest.Matchers +
Creates a matcher that always matches, regardless of the examined object. +
anything(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String. +
append(String) - +Method in class org.hamcrest.BaseDescription +
Append the String str to the description. +
append(char) - +Method in class org.hamcrest.BaseDescription +
Append the char c to the description. +
append(String) - +Method in class org.hamcrest.StringDescription +
  +
append(char) - +Method in class org.hamcrest.StringDescription +
  +
appendDescriptionOf(SelfDescribing) - +Method in class org.hamcrest.BaseDescription +
  +
appendDescriptionOf(SelfDescribing) - +Method in interface org.hamcrest.Description +
Appends the description of a SelfDescribing value to this description. +
appendDescriptionOf(SelfDescribing) - +Method in class org.hamcrest.Description.NullDescription +
  +
appendList(String, String, String, Iterable<? extends SelfDescribing>) - +Method in class org.hamcrest.BaseDescription +
  +
appendList(String, String, String, Iterable<? extends SelfDescribing>) - +Method in interface org.hamcrest.Description +
Appends a list of SelfDescribing objects + to the description. +
appendList(String, String, String, Iterable<? extends SelfDescribing>) - +Method in class org.hamcrest.Description.NullDescription +
  +
appendText(String) - +Method in class org.hamcrest.BaseDescription +
  +
appendText(String) - +Method in interface org.hamcrest.Description +
Appends some plain text to the description. +
appendText(String) - +Method in class org.hamcrest.Description.NullDescription +
  +
appendTo(StringBuffer) - +Method in class org.hamcrest.integration.EasyMock2Adapter +
  +
appendValue(Object) - +Method in class org.hamcrest.BaseDescription +
  +
appendValue(Object) - +Method in interface org.hamcrest.Description +
Appends an arbitary value to the description. +
appendValue(Object) - +Method in class org.hamcrest.Description.NullDescription +
  +
appendValueList(String, String, String, T...) - +Method in class org.hamcrest.BaseDescription +
  +
appendValueList(String, String, String, Iterable<T>) - +Method in class org.hamcrest.BaseDescription +
  +
appendValueList(String, String, String, T...) - +Method in interface org.hamcrest.Description +
Appends a list of values to the description. +
appendValueList(String, String, String, Iterable<T>) - +Method in interface org.hamcrest.Description +
Appends a list of values to the description. +
appendValueList(String, String, String, T...) - +Method in class org.hamcrest.Description.NullDescription +
  +
appendValueList(String, String, String, Iterable<T>) - +Method in class org.hamcrest.Description.NullDescription +
  +
apply(I, Description) - +Method in interface org.hamcrest.Condition.Step +
  +
array(Matcher<? super T>...) - +Static method in class org.hamcrest.collection.IsArray +
Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. +
array(Matcher<? super T>...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. +
arrayContaining(E...) - +Static method in class org.hamcrest.collection.IsArrayContainingInOrder +
Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items. +
arrayContaining(Matcher<? super E>...) - +Static method in class org.hamcrest.collection.IsArrayContainingInOrder +
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers. +
arrayContaining(List<Matcher<? super E>>) - +Static method in class org.hamcrest.collection.IsArrayContainingInOrder +
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers. +
arrayContaining(List<Matcher<? super E>>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers. +
arrayContaining(E...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items. +
arrayContaining(Matcher<? super E>...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers. +
arrayContainingInAnyOrder(Matcher<? super E>...) - +Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder +
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers. +
arrayContainingInAnyOrder(Collection<Matcher<? super E>>) - +Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder +
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers. +
arrayContainingInAnyOrder(E...) - +Static method in class org.hamcrest.collection.IsArrayContainingInAnyOrder +
Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items. +
arrayContainingInAnyOrder(E...) - +Static method in class org.hamcrest.Matchers +
Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items. +
arrayContainingInAnyOrder(Matcher<? super E>...) - +Static method in class org.hamcrest.Matchers +
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers. +
arrayContainingInAnyOrder(Collection<Matcher<? super E>>) - +Static method in class org.hamcrest.Matchers +
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers. +
ArrayIterator - Class in org.hamcrest.internal
 
ArrayIterator(Object) - +Constructor for class org.hamcrest.internal.ArrayIterator +
  +
arrayWithSize(Matcher<? super Integer>) - +Static method in class org.hamcrest.collection.IsArrayWithSize +
Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher. +
arrayWithSize(int) - +Static method in class org.hamcrest.collection.IsArrayWithSize +
Creates a matcher for arrays that matches when the length of the array + equals the specified size. +
arrayWithSize(Matcher<? super Integer>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher. +
arrayWithSize(int) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matches when the length of the array + equals the specified size. +
assertThat(T, Matcher<? super T>) - +Static method in class org.hamcrest.MatcherAssert +
  +
assertThat(String, T, Matcher<? super T>) - +Static method in class org.hamcrest.MatcherAssert +
  +
assertThat(String, boolean) - +Static method in class org.hamcrest.MatcherAssert +
  +
asString(SelfDescribing) - +Static method in class org.hamcrest.StringDescription +
Alias for StringDescription.toString(SelfDescribing). +
+
+

+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 +
  +
BigDecimalCloseTo - Class in org.hamcrest.number
 
BigDecimalCloseTo(BigDecimal, BigDecimal) - +Constructor for class org.hamcrest.number.BigDecimalCloseTo +
  +
both(Matcher<? super LHS>) - +Static method in class org.hamcrest.core.CombinableMatcher +
Creates a matcher that matches when both of the specified matchers match the examined object. +
both(Matcher<? super LHS>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches when both of the specified matchers match the examined object. +
both(Matcher<? super LHS>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when both of the specified matchers match the examined object. +
+
+

+C

+
+
canObtainExpectedTypeFrom(Method) - +Method in class org.hamcrest.internal.ReflectiveTypeFinder +
  +
closeTo(double, double) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error. +
closeTo(BigDecimal, BigDecimal) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error. +
closeTo(BigDecimal, BigDecimal) - +Static method in class org.hamcrest.number.BigDecimalCloseTo +
Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error. +
closeTo(double, double) - +Static method in class org.hamcrest.number.IsCloseTo +
Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error. +
CombinableMatcher<T> - Class in org.hamcrest.core
 
CombinableMatcher(Matcher<? super T>) - +Constructor for class org.hamcrest.core.CombinableMatcher +
  +
CombinableMatcher.CombinableBothMatcher<X> - Class in org.hamcrest.core
 
CombinableMatcher.CombinableBothMatcher(Matcher<? super X>) - +Constructor for class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher +
  +
CombinableMatcher.CombinableEitherMatcher<X> - Class in org.hamcrest.core
 
CombinableMatcher.CombinableEitherMatcher(Matcher<? super X>) - +Constructor for class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher +
  +
comparesEqualTo(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object. +
comparesEqualTo(T) - +Static method in class org.hamcrest.number.OrderingComparison +
Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object. +
Condition<T> - Class in org.hamcrest
A Condition implements part of a multi-step match.
Condition.Step<I,O> - Interface in org.hamcrest
 
contains(E...) - +Static method in class org.hamcrest.collection.IsIterableContainingInOrder +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items. +
contains(Matcher<? super E>) - +Static method in class org.hamcrest.collection.IsIterableContainingInOrder +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher. +
contains(Matcher<? super E>...) - +Static method in class org.hamcrest.collection.IsIterableContainingInOrder +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers. +
contains(List<Matcher<? super E>>) - +Static method in class org.hamcrest.collection.IsIterableContainingInOrder +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers. +
contains(Matcher<? super E>...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers. +
contains(E...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items. +
contains(Matcher<? super E>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher. +
contains(List<Matcher<? super E>>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers. +
containsInAnyOrder(Matcher<? super E>) - +Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder +
Deprecated. use contains(Matcher itemMatcher) instead +
containsInAnyOrder(Matcher<? super T>...) - +Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder +
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers. +
containsInAnyOrder(T...) - +Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder +
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items. +
containsInAnyOrder(Collection<Matcher<? super T>>) - +Static method in class org.hamcrest.collection.IsIterableContainingInAnyOrder +
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers. +
containsInAnyOrder(T...) - +Static method in class org.hamcrest.Matchers +
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items. +
containsInAnyOrder(Collection<Matcher<? super T>>) - +Static method in class org.hamcrest.Matchers +
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers. +
containsInAnyOrder(Matcher<? super T>...) - +Static method in class org.hamcrest.Matchers +
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers. +
containsInAnyOrder(Matcher<? super E>) - +Static method in class org.hamcrest.Matchers +
Deprecated. use contains(Matcher itemMatcher) instead +
containsString(String) - +Static method in class org.hamcrest.core.StringContains +
Creates a matcher that matches if the examined String contains the specified + String anywhere. +
containsString(String) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined String contains the specified + String anywhere. +
containsString(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined String contains the specified + String anywhere. +
CoreMatchers - Class in org.hamcrest
 
CoreMatchers() - +Constructor for class org.hamcrest.CoreMatchers +
  +
CustomMatcher<T> - Class in org.hamcrest
Utility class for writing one off matchers.
CustomMatcher(String) - +Constructor for class org.hamcrest.CustomMatcher +
  +
CustomTypeSafeMatcher<T> - Class in org.hamcrest
Utility class for writing one off matchers.
CustomTypeSafeMatcher(String) - +Constructor for class org.hamcrest.CustomTypeSafeMatcher +
  +
+
+

+D

+
+
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, overriding its description with that specified. +
describedAs(String, Matcher<T>, Object...) - +Static method in class org.hamcrest.CoreMatchers +
Wraps an existing matcher, overriding its description with that specified. +
describedAs(String, Matcher<T>, Object...) - +Static method in class org.hamcrest.Matchers +
Wraps an existing matcher, overriding its description with that specified. +
describeMismatch(Object, Description) - +Method in class org.hamcrest.BaseMatcher +
  +
describeMismatch(Object, Description) - +Method in class org.hamcrest.core.DescribedAs +
  +
describeMismatch(Object, Description) - +Method in class org.hamcrest.core.Is +
  +
describeMismatch(Object, Description) - +Method in class org.hamcrest.DiagnosingMatcher +
  +
describeMismatch(Object, Description) - +Method in interface org.hamcrest.Matcher +
Generate a description of why the matcher has not accepted the item. +
describeMismatch(Object, Description) - +Method in class org.hamcrest.TypeSafeDiagnosingMatcher +
  +
describeMismatch(Object, Description) - +Method in class org.hamcrest.TypeSafeMatcher +
  +
describeMismatchSafely(T, Description) - +Method in class org.hamcrest.beans.HasProperty +
  +
describeMismatchSafely(T[], Description) - +Method in class org.hamcrest.collection.IsArray +
  +
describeMismatchSafely(T[], Description) - +Method in class org.hamcrest.collection.IsArrayContaining +
  +
describeMismatchSafely(E[], Description) - +Method in class org.hamcrest.collection.IsArrayContainingInAnyOrder +
  +
describeMismatchSafely(E[], Description) - +Method in class org.hamcrest.collection.IsArrayContainingInOrder +
  +
describeMismatchSafely(Collection<? extends E>, Description) - +Method in class org.hamcrest.collection.IsEmptyCollection +
  +
describeMismatchSafely(Iterable<? extends E>, Description) - +Method in class org.hamcrest.collection.IsEmptyIterable +
  +
describeMismatchSafely(Map<? extends K, ? extends V>, Description) - +Method in class org.hamcrest.collection.IsMapContaining +
  +
describeMismatchSafely(String, Description) - +Method in class org.hamcrest.core.SubstringMatcher +
  +
describeMismatchSafely(BigDecimal, Description) - +Method in class org.hamcrest.number.BigDecimalCloseTo +
  +
describeMismatchSafely(Double, Description) - +Method in class org.hamcrest.number.IsCloseTo +
  +
describeMismatchSafely(T, Description) - +Method in class org.hamcrest.number.OrderingComparison +
  +
describeMismatchSafely(Class<?>, Description) - +Method in class org.hamcrest.object.IsCompatibleType +
  +
describeMismatchSafely(String, Description) - +Method in class org.hamcrest.text.IsEqualIgnoringCase +
  +
describeMismatchSafely(String, Description) - +Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace +
  +
describeMismatchSafely(String, Description) - +Method in class org.hamcrest.text.StringContainsInOrder +
  +
describeMismatchSafely(T, Description) - +Method in class org.hamcrest.TypeSafeMatcher +
Subclasses should override this. +
describeTo(Description) - +Method in class org.hamcrest.beans.HasProperty +
  +
describeTo(Description) - +Method in class org.hamcrest.beans.HasPropertyWithValue +
  +
describeTo(Description) - +Method in class org.hamcrest.beans.SamePropertyValuesAs +
  +
describeTo(Description) - +Method in class org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsArray +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsArrayContaining +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsArrayContainingInAnyOrder +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsArrayContainingInOrder +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsEmptyCollection +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsEmptyIterable +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsIn +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsIterableContainingInAnyOrder +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsIterableContainingInOrder +
  +
describeTo(Description) - +Method in class org.hamcrest.collection.IsMapContaining +
  +
describeTo(Description) - +Method in class org.hamcrest.core.AllOf +
  +
describeTo(Description) - +Method in class org.hamcrest.core.AnyOf +
  +
describeTo(Description) - +Method in class org.hamcrest.core.CombinableMatcher +
  +
describeTo(Description) - +Method in class org.hamcrest.core.DescribedAs +
  +
describeTo(Description) - +Method in class org.hamcrest.core.Every +
  +
describeTo(Description) - +Method in class org.hamcrest.core.Is +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsAnything +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsCollectionContaining +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsEqual +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsInstanceOf +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsNot +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsNull +
  +
describeTo(Description) - +Method in class org.hamcrest.core.IsSame +
  +
describeTo(Description) - +Method in class org.hamcrest.core.SubstringMatcher +
  +
describeTo(Description) - +Method in class org.hamcrest.CustomMatcher +
  +
describeTo(Description) - +Method in class org.hamcrest.CustomTypeSafeMatcher +
  +
describeTo(Description) - +Method in class org.hamcrest.FeatureMatcher +
  +
describeTo(StringBuffer) - +Method in class org.hamcrest.integration.JMock1Adapter +
  +
describeTo(Description) - +Method in class org.hamcrest.internal.SelfDescribingValue +
  +
describeTo(Description) - +Method in class org.hamcrest.number.BigDecimalCloseTo +
  +
describeTo(Description) - +Method in class org.hamcrest.number.IsCloseTo +
  +
describeTo(Description) - +Method in class org.hamcrest.number.OrderingComparison +
  +
describeTo(Description) - +Method in class org.hamcrest.object.IsCompatibleType +
  +
describeTo(Description) - +Method in class org.hamcrest.object.IsEventFrom +
  +
describeTo(Description) - +Method in interface org.hamcrest.SelfDescribing +
Generates a description of the object. +
describeTo(Description) - +Method in class org.hamcrest.text.IsEmptyString +
  +
describeTo(Description) - +Method in class org.hamcrest.text.IsEqualIgnoringCase +
  +
describeTo(Description) - +Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace +
  +
describeTo(Description) - +Method in class org.hamcrest.text.StringContainsInOrder +
  +
describeTo(Description) - +Method in class org.hamcrest.xml.HasXPath +
  +
Description - Interface in org.hamcrest
A description of a Matcher.
Description.NullDescription - Class in org.hamcrest
 
Description.NullDescription() - +Constructor for class org.hamcrest.Description.NullDescription +
  +
descriptionEnd() - +Method in class org.hamcrest.collection.IsArray +
Returns the string that ends the description. +
descriptionSeparator() - +Method in class org.hamcrest.collection.IsArray +
Returns the string that separates the elements in the description. +
descriptionStart() - +Method in class org.hamcrest.collection.IsArray +
Returns the string that starts the description. +
DiagnosingMatcher<T> - Class in org.hamcrest
TODO(ngd): Document.
DiagnosingMatcher() - +Constructor for class org.hamcrest.DiagnosingMatcher +
  +
+
+

+E

+
+
EasyMock2Adapter - Class in org.hamcrest.integration
An adapter allowing a Hamcrest Matcher + to act as an EasyMock IArgumentMatcher.
EasyMock2Adapter(Matcher<?>) - +Constructor for class org.hamcrest.integration.EasyMock2Adapter +
  +
EasyMock2Matchers - Class in org.hamcrest
 
EasyMock2Matchers() - +Constructor for class org.hamcrest.EasyMock2Matchers +
  +
either(Matcher<? super LHS>) - +Static method in class org.hamcrest.core.CombinableMatcher +
Creates a matcher that matches when either of the specified matchers match the examined object. +
either(Matcher<? super LHS>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches when either of the specified matchers match the examined object. +
either(Matcher<? super LHS>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when either of the specified matchers match the examined object. +
empty() - +Static method in class org.hamcrest.collection.IsEmptyCollection +
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +
empty() - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +
emptyArray() - +Static method in class org.hamcrest.collection.IsArrayWithSize +
Creates a matcher for arrays that matches when the length of the array + is zero. +
emptyArray() - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matches when the length of the array + is zero. +
emptyCollectionOf(Class<E>) - +Static method in class org.hamcrest.collection.IsEmptyCollection +
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +
emptyCollectionOf(Class<E>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +
emptyIterable() - +Static method in class org.hamcrest.collection.IsEmptyIterable +
Creates a matcher for Iterables matching examined iterables that yield no items. +
emptyIterable() - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables matching examined iterables that yield no items. +
emptyIterableOf(Class<E>) - +Static method in class org.hamcrest.collection.IsEmptyIterable +
Creates a matcher for Iterables matching examined iterables that yield no items. +
emptyIterableOf(Class<E>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables matching examined iterables that yield no items. +
endsWith(String) - +Static method in class org.hamcrest.core.StringEndsWith +
Creates a matcher that matches if the examined String ends with the specified + String. +
endsWith(String) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined String ends with the specified + String. +
endsWith(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined String ends with the specified + String. +
equalTo(T) - +Static method in class org.hamcrest.core.IsEqual +
Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object. +
equalTo(T) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object. +
equalTo(String) - +Static method in class org.hamcrest.EasyMock2Matchers +
  +
equalTo(String) - +Static method in class org.hamcrest.JMock1Matchers +
  +
equalTo(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object. +
equalToIgnoringCase(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case. +
equalToIgnoringCase(String) - +Static method in class org.hamcrest.text.IsEqualIgnoringCase +
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case. +
equalToIgnoringWhiteSpace(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored. +
equalToIgnoringWhiteSpace(String) - +Static method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace +
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored. +
eval(Object) - +Method in class org.hamcrest.integration.JMock1Adapter +
  +
evalSubstringOf(String) - +Method in class org.hamcrest.core.StringContains +
  +
evalSubstringOf(String) - +Method in class org.hamcrest.core.StringEndsWith +
  +
evalSubstringOf(String) - +Method in class org.hamcrest.core.StringStartsWith +
  +
evalSubstringOf(String) - +Method in class org.hamcrest.core.SubstringMatcher +
  +
eventFrom(Class<? extends EventObject>, Object) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of EventObject that matches any object + derived from eventClass announced by source. +
eventFrom(Object) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of EventObject that matches any EventObject + announced by source. +
eventFrom(Class<? extends EventObject>, Object) - +Static method in class org.hamcrest.object.IsEventFrom +
Creates a matcher of EventObject that matches any object + derived from eventClass announced by source. +
eventFrom(Object) - +Static method in class org.hamcrest.object.IsEventFrom +
Creates a matcher of EventObject that matches any EventObject + announced by source. +
Every<T> - Class in org.hamcrest.core
 
Every(Matcher<? super T>) - +Constructor for class org.hamcrest.core.Every +
  +
everyItem(Matcher<U>) - +Static method in class org.hamcrest.core.Every +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher. +
everyItem(Matcher<U>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher. +
everyItem(Matcher<U>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher. +
expectedTypeFrom(Method) - +Method in class org.hamcrest.internal.ReflectiveTypeFinder +
  +
+
+

+F

+
+
Factory - Annotation Type in org.hamcrest
Marks a Hamcrest static factory method so tools recognise them.
FeatureMatcher<T,U> - Class in org.hamcrest
Supporting class for matching a feature of an object.
FeatureMatcher(Matcher<? super U>, String, String) - +Constructor for class org.hamcrest.FeatureMatcher +
Constructor +
featureValueOf(E[]) - +Method in class org.hamcrest.collection.IsArrayWithSize +
  +
featureValueOf(Collection<? extends E>) - +Method in class org.hamcrest.collection.IsCollectionWithSize +
  +
featureValueOf(Iterable<E>) - +Method in class org.hamcrest.collection.IsIterableWithSize +
  +
featureValueOf(T) - +Method in class org.hamcrest.FeatureMatcher +
Implement this to extract the interesting feature. +
featureValueOf(T) - +Method in class org.hamcrest.object.HasToString +
  +
findExpectedType(Class<?>) - +Method in class org.hamcrest.internal.ReflectiveTypeFinder +
  +
+
+

+G

+
+
getPropertyDescriptor(String, Object) - +Static method in class org.hamcrest.beans.PropertyUtil +
Returns the description of the property with the provided + name on the provided object's interface. +
greaterThan(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object. +
greaterThan(T) - +Static method in class org.hamcrest.number.OrderingComparison +
Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object. +
greaterThanOrEqualTo(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object. +
greaterThanOrEqualTo(T) - +Static method in class org.hamcrest.number.OrderingComparison +
Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object. +
+
+

+H

+
+
hasEntry(Matcher<? super K>, Matcher<? super V>) - +Static method in class org.hamcrest.collection.IsMapContaining +
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher. +
hasEntry(K, V) - +Static method in class org.hamcrest.collection.IsMapContaining +
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value. +
hasEntry(K, V) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value. +
hasEntry(Matcher<? super K>, Matcher<? super V>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher. +
hasItem(Matcher<? super T>) - +Static method in class org.hamcrest.core.IsCollectionContaining +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher. +
hasItem(T) - +Static method in class org.hamcrest.core.IsCollectionContaining +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item. +
hasItem(T) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item. +
hasItem(Matcher<? super T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher. +
hasItem(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item. +
hasItem(Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher. +
hasItemInArray(Matcher<? super T>) - +Static method in class org.hamcrest.collection.IsArrayContaining +
Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher. +
hasItemInArray(T) - +Static method in class org.hamcrest.collection.IsArrayContaining +
A shortcut to the frequently used hasItemInArray(equalTo(x)). +
hasItemInArray(T) - +Static method in class org.hamcrest.Matchers +
A shortcut to the frequently used hasItemInArray(equalTo(x)). +
hasItemInArray(Matcher<? super T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher. +
hasItems(Matcher<? super T>...) - +Static method in class org.hamcrest.core.IsCollectionContaining +
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers. +
hasItems(T...) - +Static method in class org.hamcrest.core.IsCollectionContaining +
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items. +
hasItems(T...) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items. +
hasItems(Matcher<? super T>...) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers. +
hasItems(T...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items. +
hasItems(Matcher<? super T>...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers. +
hasKey(Matcher<? super K>) - +Static method in class org.hamcrest.collection.IsMapContaining +
Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher. +
hasKey(K) - +Static method in class org.hamcrest.collection.IsMapContaining +
Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key. +
hasKey(Matcher<? super K>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher. +
hasKey(K) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key. +
hasNext() - +Method in class org.hamcrest.internal.ArrayIterator +
  +
hasNext() - +Method in class org.hamcrest.internal.SelfDescribingValueIterator +
  +
HasProperty<T> - Class in org.hamcrest.beans
A Matcher that checks that an object has a JavaBean property + with the specified name.
HasProperty(String) - +Constructor for class org.hamcrest.beans.HasProperty +
  +
hasProperty(String) - +Static method in class org.hamcrest.beans.HasProperty +
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name. +
hasProperty(String, Matcher<?>) - +Static method in class org.hamcrest.beans.HasPropertyWithValue +
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher. +
hasProperty(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name. +
hasProperty(String, Matcher<?>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher. +
HasPropertyWithValue<T> - Class in org.hamcrest.beans
Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher.
HasPropertyWithValue(String, Matcher<?>) - +Constructor for class org.hamcrest.beans.HasPropertyWithValue +
  +
hasSize(Matcher<? super Integer>) - +Static method in class org.hamcrest.collection.IsCollectionWithSize +
Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher. +
hasSize(int) - +Static method in class org.hamcrest.collection.IsCollectionWithSize +
Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size. +
hasSize(Matcher<? super Integer>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher. +
hasSize(int) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size. +
hasToString(Matcher<? super String>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher. +
hasToString(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string. +
HasToString<T> - Class in org.hamcrest.object
 
HasToString(Matcher<? super String>) - +Constructor for class org.hamcrest.object.HasToString +
  +
hasToString(Matcher<? super String>) - +Static method in class org.hamcrest.object.HasToString +
Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher. +
hasToString(String) - +Static method in class org.hamcrest.object.HasToString +
Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string. +
hasValue(Matcher<? super V>) - +Static method in class org.hamcrest.collection.IsMapContaining +
Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher. +
hasValue(V) - +Static method in class org.hamcrest.collection.IsMapContaining +
Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value. +
hasValue(V) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value. +
hasValue(Matcher<? super V>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher. +
hasXPath(String, NamespaceContext) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content. +
hasXPath(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content. +
hasXPath(String, NamespaceContext, Matcher<String>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher. +
hasXPath(String, Matcher<String>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher. +
HasXPath - Class in org.hamcrest.xml
Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
HasXPath(String, Matcher<String>) - +Constructor for class org.hamcrest.xml.HasXPath +
  +
HasXPath(String, NamespaceContext, Matcher<String>) - +Constructor for class org.hamcrest.xml.HasXPath +
  +
hasXPath(String, Matcher<String>) - +Static method in class org.hamcrest.xml.HasXPath +
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher. +
hasXPath(String, NamespaceContext, Matcher<String>) - +Static method in class org.hamcrest.xml.HasXPath +
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher. +
hasXPath(String) - +Static method in class org.hamcrest.xml.HasXPath +
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content. +
hasXPath(String, NamespaceContext) - +Static method in class org.hamcrest.xml.HasXPath +
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content. +
+
+

+I

+
+
instanceOf(Class<?>) - +Static method in class org.hamcrest.core.IsInstanceOf +
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. +
instanceOf(Class<?>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. +
instanceOf(Class<?>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. +
Is<T> - Class in org.hamcrest.core
Decorates another Matcher, retaining the behaviour but allowing tests + to be slightly more expressive.
Is(Matcher<T>) - +Constructor for class org.hamcrest.core.Is +
  +
is(Matcher<T>) - +Static method in class org.hamcrest.core.Is +
Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive. +
is(T) - +Static method in class org.hamcrest.core.Is +
A shortcut to the frequently used is(equalTo(x)). +
is(Class<T>) - +Static method in class org.hamcrest.core.Is +
Deprecated. use isA(Class type) instead. +
is(T) - +Static method in class org.hamcrest.CoreMatchers +
A shortcut to the frequently used is(equalTo(x)). +
is(Matcher<T>) - +Static method in class org.hamcrest.CoreMatchers +
Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive. +
is(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
Deprecated. use isA(Class type) instead. +
is(T) - +Static method in class org.hamcrest.Matchers +
A shortcut to the frequently used is(equalTo(x)). +
is(Matcher<T>) - +Static method in class org.hamcrest.Matchers +
Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive. +
is(Class<T>) - +Static method in class org.hamcrest.Matchers +
Deprecated. use isA(Class type) instead. +
isA(Class<T>) - +Static method in class org.hamcrest.core.Is +
A shortcut to the frequently used is(instanceOf(SomeClass.class)). +
isA(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
A shortcut to the frequently used is(instanceOf(SomeClass.class)). +
isA(Class<T>) - +Static method in class org.hamcrest.Matchers +
A shortcut to the frequently used is(instanceOf(SomeClass.class)). +
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 +
  +
IsArray<T> - Class in org.hamcrest.collection
Matcher for array whose elements satisfy a sequence of matchers.
IsArray(Matcher<? super T>[]) - +Constructor for class org.hamcrest.collection.IsArray +
  +
IsArrayContaining<T> - Class in org.hamcrest.collection
Matches if an array contains an item satisfying a nested matcher.
IsArrayContaining(Matcher<? super T>) - +Constructor for class org.hamcrest.collection.IsArrayContaining +
  +
IsArrayContainingInAnyOrder<E> - Class in org.hamcrest.collection
 
IsArrayContainingInAnyOrder(Collection<Matcher<? super E>>) - +Constructor for class org.hamcrest.collection.IsArrayContainingInAnyOrder +
  +
IsArrayContainingInOrder<E> - Class in org.hamcrest.collection
 
IsArrayContainingInOrder(List<Matcher<? super E>>) - +Constructor for class org.hamcrest.collection.IsArrayContainingInOrder +
  +
IsArrayWithSize<E> - Class in org.hamcrest.collection
Matches if array size satisfies a nested matcher.
IsArrayWithSize(Matcher<? super Integer>) - +Constructor for class org.hamcrest.collection.IsArrayWithSize +
  +
IsCloseTo - Class in org.hamcrest.number
Is the value a number equal to a value within some range of + acceptable error?
IsCloseTo(double, double) - +Constructor for class org.hamcrest.number.IsCloseTo +
  +
IsCollectionContaining<T> - Class in org.hamcrest.core
 
IsCollectionContaining(Matcher<? super T>) - +Constructor for class org.hamcrest.core.IsCollectionContaining +
  +
IsCollectionWithSize<E> - Class in org.hamcrest.collection
Matches if collection size satisfies a nested matcher.
IsCollectionWithSize(Matcher<? super Integer>) - +Constructor for class org.hamcrest.collection.IsCollectionWithSize +
  +
IsCompatibleType<T> - Class in org.hamcrest.object
 
IsCompatibleType(Class<T>) - +Constructor for class org.hamcrest.object.IsCompatibleType +
  +
IsEmptyCollection<E> - Class in org.hamcrest.collection
Tests if collection is empty.
IsEmptyCollection() - +Constructor for class org.hamcrest.collection.IsEmptyCollection +
  +
IsEmptyIterable<E> - Class in org.hamcrest.collection
Tests if collection is empty.
IsEmptyIterable() - +Constructor for class org.hamcrest.collection.IsEmptyIterable +
  +
isEmptyOrNullString() - +Static method in class org.hamcrest.Matchers +
Creates a matcher of String that matches when the examined string is null, or + has zero length. +
isEmptyOrNullString() - +Static method in class org.hamcrest.text.IsEmptyString +
Creates a matcher of String that matches when the examined string is null, or + has zero length. +
isEmptyString() - +Static method in class org.hamcrest.Matchers +
Creates a matcher of String that matches when the examined string has zero length. +
IsEmptyString - Class in org.hamcrest.text
Matches empty Strings (and null).
IsEmptyString() - +Constructor for class org.hamcrest.text.IsEmptyString +
  +
isEmptyString() - +Static method in class org.hamcrest.text.IsEmptyString +
Creates a matcher of String that matches when the examined string has zero length. +
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 +
  +
IsEqualIgnoringCase - Class in org.hamcrest.text
Tests if a string is equal to another string, regardless of the case.
IsEqualIgnoringCase(String) - +Constructor for class org.hamcrest.text.IsEqualIgnoringCase +
  +
IsEqualIgnoringWhiteSpace - Class in org.hamcrest.text
Tests if a string is equal to another string, ignoring any changes in whitespace.
IsEqualIgnoringWhiteSpace(String) - +Constructor for class org.hamcrest.text.IsEqualIgnoringWhiteSpace +
  +
IsEventFrom - Class in org.hamcrest.object
Tests if the value is an event announced by a specific object.
IsEventFrom(Class<?>, Object) - +Constructor for class org.hamcrest.object.IsEventFrom +
  +
IsIn<T> - Class in org.hamcrest.collection
 
IsIn(Collection<T>) - +Constructor for class org.hamcrest.collection.IsIn +
  +
IsIn(T[]) - +Constructor for class org.hamcrest.collection.IsIn +
  +
isIn(Collection<T>) - +Static method in class org.hamcrest.collection.IsIn +
Creates a matcher that matches when the examined object is found within the + specified collection. +
isIn(T[]) - +Static method in class org.hamcrest.collection.IsIn +
Creates a matcher that matches when the examined object is found within the + specified array. +
isIn(Collection<T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object is found within the + specified collection. +
isIn(T[]) - +Static method in class org.hamcrest.Matchers +
  +
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 +
IsIterableContainingInAnyOrder<T> - Class in org.hamcrest.collection
 
IsIterableContainingInAnyOrder(Collection<Matcher<? super T>>) - +Constructor for class org.hamcrest.collection.IsIterableContainingInAnyOrder +
  +
IsIterableContainingInOrder<E> - Class in org.hamcrest.collection
 
IsIterableContainingInOrder(List<Matcher<? super E>>) - +Constructor for class org.hamcrest.collection.IsIterableContainingInOrder +
  +
IsIterableWithSize<E> - Class in org.hamcrest.collection
 
IsIterableWithSize(Matcher<? super Integer>) - +Constructor for class org.hamcrest.collection.IsIterableWithSize +
  +
IsMapContaining<K,V> - Class in org.hamcrest.collection
 
IsMapContaining(Matcher<? super K>, Matcher<? super V>) - +Constructor for class org.hamcrest.collection.IsMapContaining +
  +
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 +
  +
isOneOf(T...) - +Static method in class org.hamcrest.collection.IsIn +
Creates a matcher that matches when the examined object is equal to one of the + specified elements. +
isOneOf(T...) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object is equal to one of the + specified elements. +
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 +
  +
iterableWithSize(Matcher<? super Integer>) - +Static method in class org.hamcrest.collection.IsIterableWithSize +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher. +
iterableWithSize(int) - +Static method in class org.hamcrest.collection.IsIterableWithSize +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument. +
iterableWithSize(Matcher<? super Integer>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher. +
iterableWithSize(int) - +Static method in class org.hamcrest.Matchers +
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument. +
+
+

+J

+
+
JavaLangMatcherAssert - Class in org.hamcrest
Integration method for use with Java's assert keyword.
JMock1Adapter - Class in org.hamcrest.integration
An adapter allowing a Hamcrest Matcher + to act as an jMock1 Constraint.
JMock1Adapter(Matcher<?>) - +Constructor for class org.hamcrest.integration.JMock1Adapter +
  +
JMock1Matchers - Class in org.hamcrest
 
JMock1Matchers() - +Constructor for class org.hamcrest.JMock1Matchers +
  +
+
+

+L

+
+
lessThan(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object. +
lessThan(T) - +Static method in class org.hamcrest.number.OrderingComparison +
Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object. +
lessThanOrEqualTo(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object. +
lessThanOrEqualTo(T) - +Static method in class org.hamcrest.number.OrderingComparison +
Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object. +
+
+

+M

+
+
matched(T, Description) - +Static method in class org.hamcrest.Condition +
  +
Matcher<T> - Interface in org.hamcrest
A matcher over acceptable values.
MatcherAssert - Class in org.hamcrest
 
MatcherAssert() - +Constructor for class org.hamcrest.MatcherAssert +
  +
Matchers - Class in org.hamcrest
 
Matchers() - +Constructor for class org.hamcrest.Matchers +
  +
matches(Object, Description) - +Method in class org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher +
  +
matches(Object) - +Method in class org.hamcrest.collection.IsIn +
  +
matches(Object, Description) - +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, Description) - +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 class org.hamcrest.DiagnosingMatcher +
  +
matches(Object, Description) - +Method in class org.hamcrest.DiagnosingMatcher +
  +
matches(Object) - +Method in class org.hamcrest.integration.EasyMock2Adapter +
  +
matches(Object) - +Method in interface org.hamcrest.Matcher +
Evaluates the matcher for argument item. +
matches(Object) - +Method in class org.hamcrest.text.IsEmptyString +
  +
matches(Object) - +Method in class org.hamcrest.TypeSafeDiagnosingMatcher +
  +
matches(Object) - +Method in class org.hamcrest.TypeSafeMatcher +
Methods made final to prevent accidental override. +
matchesSafely(T) - +Method in class org.hamcrest.beans.HasProperty +
  +
matchesSafely(T, Description) - +Method in class org.hamcrest.beans.HasPropertyWithValue +
  +
matchesSafely(T, Description) - +Method in class org.hamcrest.beans.SamePropertyValuesAs +
  +
matchesSafely(T[]) - +Method in class org.hamcrest.collection.IsArray +
  +
matchesSafely(T[]) - +Method in class org.hamcrest.collection.IsArrayContaining +
  +
matchesSafely(E[]) - +Method in class org.hamcrest.collection.IsArrayContainingInAnyOrder +
  +
matchesSafely(E[]) - +Method in class org.hamcrest.collection.IsArrayContainingInOrder +
  +
matchesSafely(Collection<? extends E>) - +Method in class org.hamcrest.collection.IsEmptyCollection +
  +
matchesSafely(Iterable<? extends E>) - +Method in class org.hamcrest.collection.IsEmptyIterable +
  +
matchesSafely(Iterable<? extends T>, Description) - +Method in class org.hamcrest.collection.IsIterableContainingInAnyOrder +
  +
matchesSafely(Iterable<? extends E>, Description) - +Method in class org.hamcrest.collection.IsIterableContainingInOrder +
  +
matchesSafely(Map<? extends K, ? extends V>) - +Method in class org.hamcrest.collection.IsMapContaining +
  +
matchesSafely(T, Description) - +Method in class org.hamcrest.core.CombinableMatcher +
  +
matchesSafely(Iterable<T>, Description) - +Method in class org.hamcrest.core.Every +
  +
matchesSafely(Iterable<? super T>, Description) - +Method in class org.hamcrest.core.IsCollectionContaining +
  +
matchesSafely(String) - +Method in class org.hamcrest.core.SubstringMatcher +
  +
matchesSafely(T, Description) - +Method in class org.hamcrest.FeatureMatcher +
  +
matchesSafely(BigDecimal) - +Method in class org.hamcrest.number.BigDecimalCloseTo +
  +
matchesSafely(Double) - +Method in class org.hamcrest.number.IsCloseTo +
  +
matchesSafely(T) - +Method in class org.hamcrest.number.OrderingComparison +
  +
matchesSafely(Class<?>) - +Method in class org.hamcrest.object.IsCompatibleType +
  +
matchesSafely(EventObject, Description) - +Method in class org.hamcrest.object.IsEventFrom +
  +
matchesSafely(String) - +Method in class org.hamcrest.text.IsEqualIgnoringCase +
  +
matchesSafely(String) - +Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace +
  +
matchesSafely(String) - +Method in class org.hamcrest.text.StringContainsInOrder +
  +
matchesSafely(T, Description) - +Method in class org.hamcrest.TypeSafeDiagnosingMatcher +
Subclasses should implement this. +
matchesSafely(T) - +Method in class org.hamcrest.TypeSafeMatcher +
Subclasses should implement this. +
matchesSafely(Node, Description) - +Method in class org.hamcrest.xml.HasXPath +
  +
matching(Matcher<T>, String) - +Method in class org.hamcrest.Condition +
  +
matching(Matcher<T>) - +Method in class org.hamcrest.Condition +
  +
+
+

+N

+
+
next() - +Method in class org.hamcrest.internal.ArrayIterator +
  +
next() - +Method in class org.hamcrest.internal.SelfDescribingValueIterator +
  +
NO_ARGUMENTS - +Static variable in class org.hamcrest.beans.PropertyUtil +
  +
NO_NAMESPACE_CONTEXT - +Static variable in class org.hamcrest.xml.HasXPath +
  +
NONE - +Static variable in interface org.hamcrest.Description +
A description that consumes input but does nothing. +
not(Matcher<T>) - +Static method in class org.hamcrest.core.IsNot +
Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match. +
not(T) - +Static method in class org.hamcrest.core.IsNot +
A shortcut to the frequently used not(equalTo(x)). +
not(Matcher<T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match. +
not(T) - +Static method in class org.hamcrest.CoreMatchers +
A shortcut to the frequently used not(equalTo(x)). +
not(Matcher<T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match. +
not(T) - +Static method in class org.hamcrest.Matchers +
A shortcut to the frequently used not(equalTo(x)). +
NOT_MATCHED - +Static variable in class org.hamcrest.Condition +
  +
notMatched() - +Static method in class org.hamcrest.Condition +
  +
notNullValue() - +Static method in class org.hamcrest.core.IsNull +
A shortcut to the frequently used not(nullValue()). +
notNullValue(Class<T>) - +Static method in class org.hamcrest.core.IsNull +
A shortcut to the frequently used not(nullValue(X.class)). +
notNullValue() - +Static method in class org.hamcrest.CoreMatchers +
A shortcut to the frequently used not(nullValue()). +
notNullValue(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
A shortcut to the frequently used not(nullValue(X.class)). +
notNullValue() - +Static method in class org.hamcrest.Matchers +
A shortcut to the frequently used not(nullValue()). +
notNullValue(Class<T>) - +Static method in class org.hamcrest.Matchers +
A shortcut to the frequently used not(nullValue(X.class)). +
nullValue() - +Static method in class org.hamcrest.core.IsNull +
Creates a matcher that matches if examined object is null. +
nullValue(Class<T>) - +Static method in class org.hamcrest.core.IsNull +
Creates a matcher that matches if examined object is null. +
nullValue() - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if examined object is null. +
nullValue(Class<T>) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if examined object is null. +
nullValue() - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if examined object is null. +
nullValue(Class<T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if examined object is null. +
+
+

+O

+
+
or(Matcher<? super X>) - +Method in class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher +
  +
or(Matcher<? super T>) - +Method in class org.hamcrest.core.CombinableMatcher +
  +
OrderingComparison<T extends java.lang.Comparable<T>> - Class in org.hamcrest.number
 
org.hamcrest - package org.hamcrest
The stable API defining Matcher and its associated interfaces and classes.
org.hamcrest.beans - package org.hamcrest.beans
Matchers of Java Bean properties and their values.
org.hamcrest.collection - package org.hamcrest.collection
Matchers of arrays and collections.
org.hamcrest.core - package org.hamcrest.core
Fundamental matchers of objects and values, and composite matchers.
org.hamcrest.integration - package org.hamcrest.integration
 
org.hamcrest.internal - package org.hamcrest.internal
 
org.hamcrest.number - package org.hamcrest.number
Matchers that perform numeric comparisons.
org.hamcrest.object - package org.hamcrest.object
Matchers that inspect objects and classes.
org.hamcrest.text - package org.hamcrest.text
Matchers that perform text comparisons.
org.hamcrest.xml - package org.hamcrest.xml
Matchers of XML documents.
+
+

+P

+
+
propertyDescriptorsFor(Object, Class<Object>) - +Static method in class org.hamcrest.beans.PropertyUtil +
Returns all the property descriptors for the class associated with the given object +
PropertyUtil - Class in org.hamcrest.beans
Utility class for accessing properties on JavaBean objects.
PropertyUtil() - +Constructor for class org.hamcrest.beans.PropertyUtil +
  +
+
+

+R

+
+
ReflectiveTypeFinder - Class in org.hamcrest.internal
 
ReflectiveTypeFinder(String, int, int) - +Constructor for class org.hamcrest.internal.ReflectiveTypeFinder +
  +
relationship() - +Method in class org.hamcrest.core.StringContains +
  +
relationship() - +Method in class org.hamcrest.core.StringEndsWith +
  +
relationship() - +Method in class org.hamcrest.core.StringStartsWith +
  +
relationship() - +Method in class org.hamcrest.core.SubstringMatcher +
  +
remove() - +Method in class org.hamcrest.internal.ArrayIterator +
  +
remove() - +Method in class org.hamcrest.internal.SelfDescribingValueIterator +
  +
+
+

+S

+
+
sameInstance(T) - +Static method in class org.hamcrest.core.IsSame +
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +
sameInstance(T) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +
sameInstance(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +
SamePropertyValuesAs<T> - Class in org.hamcrest.beans
 
SamePropertyValuesAs(T) - +Constructor for class org.hamcrest.beans.SamePropertyValuesAs +
  +
samePropertyValuesAs(T) - +Static method in class org.hamcrest.beans.SamePropertyValuesAs +
Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean. +
samePropertyValuesAs(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean. +
SamePropertyValuesAs.PropertyMatcher - Class in org.hamcrest.beans
 
SamePropertyValuesAs.PropertyMatcher(PropertyDescriptor, Object) - +Constructor for class org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher +
  +
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 +
  +
startsWith(String) - +Static method in class org.hamcrest.core.StringStartsWith +
Creates a matcher that matches if the examined String starts with the specified + String. +
startsWith(String) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches if the examined String starts with the specified + String. +
startsWith(String) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches if the examined String starts with the specified + String. +
StringContains - Class in org.hamcrest.core
Tests if the argument is a string that contains a substring.
StringContains(String) - +Constructor for class org.hamcrest.core.StringContains +
  +
stringContainsInOrder(Iterable<String>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance. +
StringContainsInOrder - Class in org.hamcrest.text
 
StringContainsInOrder(Iterable<String>) - +Constructor for class org.hamcrest.text.StringContainsInOrder +
  +
stringContainsInOrder(Iterable<String>) - +Static method in class org.hamcrest.text.StringContainsInOrder +
Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance. +
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 +
  +
StringEndsWith - Class in org.hamcrest.core
Tests if the argument is a string that contains a substring.
StringEndsWith(String) - +Constructor for class org.hamcrest.core.StringEndsWith +
  +
StringStartsWith - Class in org.hamcrest.core
Tests if the argument is a string that contains a substring.
StringStartsWith(String) - +Constructor for class org.hamcrest.core.StringStartsWith +
  +
stripSpace(String) - +Method in class org.hamcrest.text.IsEqualIgnoringWhiteSpace +
  +
substring - +Variable in class org.hamcrest.core.SubstringMatcher +
  +
SubstringMatcher - Class in org.hamcrest.core
 
SubstringMatcher(String) - +Constructor for class org.hamcrest.core.SubstringMatcher +
  +
+
+

+T

+
+
that(T, Matcher<? super T>) - +Static method in class org.hamcrest.JavaLangMatcherAssert +
  +
theInstance(T) - +Static method in class org.hamcrest.core.IsSame +
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +
theInstance(T) - +Static method in class org.hamcrest.CoreMatchers +
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +
theInstance(T) - +Static method in class org.hamcrest.Matchers +
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +
then(Condition.Step<? super T, U>) - +Method in class org.hamcrest.Condition +
  +
toString() - +Method in class org.hamcrest.BaseMatcher +
  +
toString() - +Method in class org.hamcrest.Description.NullDescription +
  +
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. +
typeCompatibleWith(Class<T>) - +Static method in class org.hamcrest.Matchers +
Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class. +
typeCompatibleWith(Class<T>) - +Static method in class org.hamcrest.object.IsCompatibleType +
Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class. +
TypeSafeDiagnosingMatcher<T> - Class in org.hamcrest
Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeDiagnosingMatcher(Class<?>) - +Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher +
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +
TypeSafeDiagnosingMatcher(ReflectiveTypeFinder) - +Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher +
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +
TypeSafeDiagnosingMatcher() - +Constructor for class org.hamcrest.TypeSafeDiagnosingMatcher +
The default constructor for simple sub types +
TypeSafeMatcher<T> - Class in org.hamcrest
Convenient base class for Matchers that require a non-null value of a specific type.
TypeSafeMatcher() - +Constructor for class org.hamcrest.TypeSafeMatcher +
The default constructor for simple sub types +
TypeSafeMatcher(Class<?>) - +Constructor for class org.hamcrest.TypeSafeMatcher +
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +
TypeSafeMatcher(ReflectiveTypeFinder) - +Constructor for class org.hamcrest.TypeSafeMatcher +
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +
+
+

+_

+
+
_dont_implement_Matcher___instead_extend_BaseMatcher_() - +Method in class org.hamcrest.BaseMatcher +
Deprecated.  +
_dont_implement_Matcher___instead_extend_BaseMatcher_() - +Method in interface org.hamcrest.Matcher +
Deprecated. to make +
+
+A B C D E F G H I J L M N O P R S T _ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/index.html b/javadoc/1.3/index.html new file mode 100644 index 000000000..ff0017d9d --- /dev/null +++ b/javadoc/1.3/index.html @@ -0,0 +1,39 @@ + + + + + + +Hamcrest + + + + + + + + + + + +<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/1.3/org/hamcrest/BaseDescription.html b/javadoc/1.3/org/hamcrest/BaseDescription.html new file mode 100644 index 000000000..7e55aea14 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/BaseDescription.html @@ -0,0 +1,514 @@ + + + + + + +BaseDescription (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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 java.lang.Object
implements Description
+ + +

+A Description that is stored as a string. +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.hamcrest.Description
Description.NullDescription
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from interface org.hamcrest.Description
NONE
+  + + + + + + + + + + +
+Constructor Summary
BaseDescription() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  voidappend(char c) + +
+          Append the char c to the description.
+protected  voidappend(java.lang.String str) + +
+          Append the String str to the description.
+ DescriptionappendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionappendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionappendText(java.lang.String text) + +
+          Appends some plain text to the description.
+ DescriptionappendValue(java.lang.Object value) + +
+          Appends an arbitary value to the description.
+ + + + + +
+<T> Description
+
appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<T> values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.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(java.lang.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(java.lang.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(java.lang.String start,
+                                       java.lang.String separator,
+                                       java.lang.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(java.lang.String start,
+                                       java.lang.String separator,
+                                       java.lang.String end,
+                                       java.lang.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(java.lang.String start,
+                              java.lang.String separator,
+                              java.lang.String end,
+                              java.lang.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(java.lang.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/1.3/org/hamcrest/BaseMatcher.html b/javadoc/1.3/org/hamcrest/BaseMatcher.html new file mode 100644 index 000000000..95500177c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/BaseMatcher.html @@ -0,0 +1,346 @@ + + + + + + +BaseMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

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

+BaseClass for all Matcher implementations. +

+ +

+

+
See Also:
Matcher
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
BaseMatcher() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ void_dont_implement_Matcher___instead_extend_BaseMatcher_() + +
+          Deprecated. 
+ voiddescribeMismatch(java.lang.Object item, + Description description) + +
+          Generate a description of why the matcher has not accepted the item.
+ java.lang.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_

+
+@Deprecated
+public final void _dont_implement_Matcher___instead_extend_BaseMatcher_()
+
+
Deprecated.  +

+

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_()
+
+
+
+ +

+describeMismatch

+
+public void describeMismatch(java.lang.Object item,
+                             Description description)
+
+
Description copied from interface: Matcher
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
Specified by:
describeMismatch in interface Matcher<T>
+
+
+
Parameters:
item - The item that the Matcher has rejected.
description - The description to be built or appended to.
+
+
+
+ +

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Condition.Step.html b/javadoc/1.3/org/hamcrest/Condition.Step.html new file mode 100644 index 000000000..c02ac9f5b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Condition.Step.html @@ -0,0 +1,211 @@ + + + + + + +Condition.Step (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Interface Condition.Step<I,O>

+
+
Enclosing class:
Condition<T>
+
+
+
+
public static interface Condition.Step<I,O>
+ + +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ Condition<O>apply(I value, + Description mismatch) + +
+           
+  +

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

+apply

+
+Condition<O> apply(I value,
+                   Description mismatch)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Condition.html b/javadoc/1.3/org/hamcrest/Condition.html new file mode 100644 index 000000000..768c41749 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Condition.html @@ -0,0 +1,412 @@ + + + + + + +Condition (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+java.lang.Object
+  extended by org.hamcrest.Condition<T>
+
+
+
+
public abstract class Condition<T>
extends java.lang.Object
+ + +

+A Condition implements part of a multi-step match. We sometimes need to write matchers + that have a sequence of steps, where each step depends on the result of the previous + step and we can stop processing as soon as a step fails. These classes provide + infrastructure for writing such a sequence. + + Based on https://github.com/npryce/maybe-java +

+ +

+

+
Author:
+
Steve Freeman 2012 http://www.hamcrest.com
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static interfaceCondition.Step<I,O> + +
+           
+ + + + + + + + + + +
+Field Summary
+static org.hamcrest.Condition.NotMatched<java.lang.Object>NOT_MATCHED + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+abstract + + + + +
+<U> Condition<U>
+
and(Condition.Step<? super T,U> mapping) + +
+           
+static + + + + +
+<T> Condition<T>
+
matched(T theValue, + Description mismatch) + +
+           
+ booleanmatching(Matcher<T> match) + +
+           
+abstract  booleanmatching(Matcher<T> match, + java.lang.String message) + +
+           
+static + + + + +
+<T> Condition<T>
+
notMatched() + +
+           
+ + + + + +
+<U> Condition<U>
+
then(Condition.Step<? super T,U> mapping) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NOT_MATCHED

+
+public static final org.hamcrest.Condition.NotMatched<java.lang.Object> NOT_MATCHED
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+matching

+
+public abstract boolean matching(Matcher<T> match,
+                                 java.lang.String message)
+
+
+
+
+
+
+ +

+and

+
+public abstract <U> Condition<U> and(Condition.Step<? super T,U> mapping)
+
+
+
+
+
+
+ +

+matching

+
+public final boolean matching(Matcher<T> match)
+
+
+
+
+
+
+ +

+then

+
+public final <U> Condition<U> then(Condition.Step<? super T,U> mapping)
+
+
+
+
+
+
+ +

+notMatched

+
+public static <T> Condition<T> notMatched()
+
+
+
+
+
+
+ +

+matched

+
+public static <T> Condition<T> matched(T theValue,
+                                       Description mismatch)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/CoreMatchers.html b/javadoc/1.3/org/hamcrest/CoreMatchers.html new file mode 100644 index 000000000..88aa91665 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/CoreMatchers.html @@ -0,0 +1,1629 @@ + + + + + + +CoreMatchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class CoreMatchers

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CoreMatchers() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static Matcher<java.lang.Object>anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static Matcher<java.lang.String>containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+static + + + + +
+<T> Matcher<T>
+
describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static Matcher<java.lang.String>endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
equalTo(T operand) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+static + + + + +
+<T> Matcher<T>
+
instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static + + + + +
+<T> Matcher<T>
+
not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+static Matcher<java.lang.Object>notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static + + + + +
+<T> Matcher<T>
+
notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static Matcher<java.lang.Object>nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static Matcher<java.lang.String>startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+ + + + + + + +
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
+ +

+allOf

+
+public static <T> Matcher<T> allOf(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T>... matchers)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth,
+                                   Matcher<? super T> fifth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth,
+                                   Matcher<? super T> fifth,
+                                   Matcher<? super T> sixth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth,
+                                 Matcher<? super T> fifth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth,
+                                 Matcher<? super T> fifth,
+                                 Matcher<? super T> sixth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+both

+
+public static <LHS> CombinableMatcher.CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher)
+
+
Creates a matcher that matches when both of the specified matchers match the examined object. +

+ For example: +

assertThat("fab", both(containsString("a")).and(containsString("b")))
+

+

+
+
+
+
+ +

+either

+
+public static <LHS> CombinableMatcher.CombinableEitherMatcher<LHS> either(Matcher<? super LHS> matcher)
+
+
Creates a matcher that matches when either of the specified matchers match the examined object. +

+ For example: +

assertThat("fan", either(containsString("a")).and(containsString("b")))
+

+

+
+
+
+
+ +

+describedAs

+
+public static <T> Matcher<T> describedAs(java.lang.String description,
+                                         Matcher<T> matcher,
+                                         java.lang.Object... values)
+
+
Wraps an existing matcher, overriding its description with that specified. All other functions are + delegated to the decorated matcher, including its mismatch description. +

+ For example: +

describedAs("a big decimal equal to %0", equalTo(myBigDecimal), myBigDecimal.toPlainString())
+

+

+
Parameters:
description - the new description for the wrapped matcher
matcher - the matcher to wrap
values - optional values to insert into the tokenised description
+
+
+
+ +

+everyItem

+
+public static <U> Matcher<java.lang.Iterable<U>> everyItem(Matcher<U> itemMatcher)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher. +

+ For example: +

assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))
+

+

+
Parameters:
itemMatcher - the matcher to apply to every item provided by the examined Iterable
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(T value)
+
+
A shortcut to the frequently used is(equalTo(x)). +

+ For example: +

assertThat(cheese, is(smelly))
+ instead of: +
assertThat(cheese, is(equalTo(smelly)))
+

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(Matcher<T> matcher)
+
+
Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive. +

+ For example: +

assertThat(cheese, is(equalTo(smelly)))
+ instead of: +
assertThat(cheese, equalTo(smelly))
+

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(java.lang.Class<T> type)
+
+
Deprecated. use isA(Class type) instead. +

+

A shortcut to the frequently used is(instanceOf(SomeClass.class)). +

+ For example: +

assertThat(cheese, is(Cheddar.class))
+ instead of: +
assertThat(cheese, is(instanceOf(Cheddar.class)))
+

+

+
+
+
+
+ +

+isA

+
+public static <T> Matcher<T> isA(java.lang.Class<T> type)
+
+
A shortcut to the frequently used is(instanceOf(SomeClass.class)). +

+ For example: +

assertThat(cheese, isA(Cheddar.class))
+ instead of: +
assertThat(cheese, is(instanceOf(Cheddar.class)))
+

+

+
+
+
+
+ +

+anything

+
+public static Matcher<java.lang.Object> anything()
+
+
Creates a matcher that always matches, regardless of the examined object. +

+

+
+
+
+
+ +

+anything

+
+public static Matcher<java.lang.Object> anything(java.lang.String description)
+
+
Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String. +

+

+
Parameters:
description - a meaningful String used when describing itself
+
+
+
+ +

+hasItem

+
+public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(T item)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item. Whilst matching, the traversal of the examined Iterable + will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasItem("bar"))
+

+

+
Parameters:
item - the item to compare against the items provided by the examined Iterable
+
+
+
+ +

+hasItem

+
+public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher. Whilst matching, the traversal of the examined Iterable + will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasItem(startsWith("ba")))
+

+

+
Parameters:
itemMatcher - the matcher to apply to items provided by the examined Iterable
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<java.lang.Iterable<T>> hasItems(T... items)
+
+
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items. Whilst matching, each traversal of the + examined Iterable will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar", "baz"), hasItems("baz", "foo"))
+

+

+
Parameters:
items - the items to compare against the items provided by the examined Iterable
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<java.lang.Iterable<T>> hasItems(Matcher<? super T>... itemMatchers)
+
+
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers. Whilst matching, each traversal of + the examined Iterable will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar", "baz"), hasItems(endsWith("z"), endsWith("o")))
+

+

+
Parameters:
itemMatchers - the matchers to apply to items provided by the examined Iterable
+
+
+
+ +

+equalTo

+
+public static <T> Matcher<T> equalTo(T operand)
+
+
Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object. + +

If the specified operand is null then the created matcher will only match if + the examined object's equals method returns true when passed a + null (which would be a violation of the equals contract), unless the + examined object itself is null, in which case the matcher will return a positive + match.

+ +

The created matcher provides a special behaviour when examining Arrays, whereby + it will match if both the operand and the examined object are arrays of the same length and + contain items that are equal to each other (according to the above rules) in the same + indexes.

+

+ For example: +

+ assertThat("foo", equalTo("foo"));
+ assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));
+ 
+

+

+
+
+
+
+ +

+any

+
+public static <T> Matcher<T> any(java.lang.Class<T> type)
+
+
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. + +

The created matcher forces a relationship between specified type and the examined object, and should be + used when it is necessary to make generics conform, for example in the JMock clause + with(any(Thing.class))

+

+ For example: +

assertThat(new Canoe(), instanceOf(Canoe.class));
+

+

+
+
+
+
+ +

+instanceOf

+
+public static <T> Matcher<T> instanceOf(java.lang.Class<?> type)
+
+
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. + +

The created matcher assumes no relationship between specified type and the examined object.

+

+ For example: +

assertThat(new Canoe(), instanceOf(Paddlable.class));
+

+

+
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(Matcher<T> matcher)
+
+
Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match. +

+ For example: +

assertThat(cheese, is(not(equalTo(smelly))))
+

+

+
Parameters:
matcher - the matcher whose sense should be inverted
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(T value)
+
+
A shortcut to the frequently used not(equalTo(x)). +

+ For example: +

assertThat(cheese, is(not(smelly)))
+ instead of: +
assertThat(cheese, is(not(equalTo(smelly))))
+

+

+
Parameters:
value - the value that any examined object should not equal
+
+
+
+ +

+nullValue

+
+public static Matcher<java.lang.Object> nullValue()
+
+
Creates a matcher that matches if examined object is null. +

+ For example: +

assertThat(cheese, is(nullValue())
+

+

+
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue(java.lang.Class<T> type)
+
+
Creates a matcher that matches if examined object is null. Accepts a + single dummy argument to facilitate type inference. +

+ For example: +

assertThat(cheese, is(nullValue(Cheese.class))
+

+

+
Parameters:
type - dummy parameter used to infer the generic type of the returned matcher
+
+
+
+ +

+notNullValue

+
+public static Matcher<java.lang.Object> notNullValue()
+
+
A shortcut to the frequently used not(nullValue()). +

+ For example: +

assertThat(cheese, is(notNullValue()))
+ instead of: +
assertThat(cheese, is(not(nullValue())))
+

+

+
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue(java.lang.Class<T> type)
+
+
A shortcut to the frequently used not(nullValue(X.class)). Accepts a + single dummy argument to facilitate type inference.. +

+ For example: +

assertThat(cheese, is(notNullValue(X.class)))
+ instead of: +
assertThat(cheese, is(not(nullValue(X.class))))
+

+

+
Parameters:
type - dummy parameter used to infer the generic type of the returned matcher
+
+
+
+ +

+sameInstance

+
+public static <T> Matcher<T> sameInstance(T target)
+
+
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +

+

+
Parameters:
target - the target instance against which others should be assessed
+
+
+
+ +

+theInstance

+
+public static <T> Matcher<T> theInstance(T target)
+
+
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +

+

+
Parameters:
target - the target instance against which others should be assessed
+
+
+
+ +

+containsString

+
+public static Matcher<java.lang.String> containsString(java.lang.String substring)
+
+
Creates a matcher that matches if the examined String contains the specified + String anywhere. +

+ For example: +

assertThat("myStringOfNote", containsString("ring"))
+

+

+
Parameters:
substring - the substring that the returned matcher will expect to find within any examined string
+
+
+
+ +

+startsWith

+
+public static Matcher<java.lang.String> startsWith(java.lang.String prefix)
+
+
Creates a matcher that matches if the examined String starts with the specified + String. +

+ For example: +

assertThat("myStringOfNote", startsWith("my"))
+

+

+
Parameters:
prefix - the substring that the returned matcher will expect at the start of any examined string
+
+
+
+ +

+endsWith

+
+public static Matcher<java.lang.String> endsWith(java.lang.String suffix)
+
+
Creates a matcher that matches if the examined String ends with the specified + String. +

+ For example: +

assertThat("myStringOfNote", endsWith("Note"))
+

+

+
Parameters:
suffix - the substring that the returned matcher will expect at the end of any examined string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/CustomMatcher.html b/javadoc/1.3/org/hamcrest/CustomMatcher.html new file mode 100644 index 000000000..8ddd0c68b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/CustomMatcher.html @@ -0,0 +1,302 @@ + + + + + + +CustomMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.CustomMatcher<T>
+
+
+
Type Parameters:
T - The type of object being matched.
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public abstract class CustomMatcher<T>
extends BaseMatcher<T>
+ + +

+Utility class for writing one off matchers. + For example: +

+ Matcher<String> aNonEmptyString = new CustomMatcher<String>("a non empty string") {
+   public boolean matches(Object object) {
+     return ((object instanceof String) && !((String) object).isEmpty();
+   }
+ };
+ 
+

+ This class is designed for scenarios where an anonymous inner class + matcher makes sense. It should not be used by API designers implementing + matchers. +

+ +

+

+
Author:
+
Neil Dunn
+
See Also:
for a type safe variant of this class that you probably + want to use.
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CustomMatcher(java.lang.String description) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
+ + + + + + + +
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
+  +

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

+CustomMatcher

+
+public CustomMatcher(java.lang.String description)
+
+
+ + + + + + + + +
+Method Detail
+ +

+describeTo

+
+public final 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.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/CustomTypeSafeMatcher.html b/javadoc/1.3/org/hamcrest/CustomTypeSafeMatcher.html new file mode 100644 index 000000000..d9d00a48d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/CustomTypeSafeMatcher.html @@ -0,0 +1,305 @@ + + + + + + +CustomTypeSafeMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<T>
+          extended by org.hamcrest.CustomTypeSafeMatcher<T>
+
+
+
Type Parameters:
T - The type of object being matched
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public abstract class CustomTypeSafeMatcher<T>
extends TypeSafeMatcher<T>
+ + +

+Utility class for writing one off matchers. + For example: +

+ Matcher<String> aNonEmptyString = new CustomTypeSafeMatcher<String>("a non empty string") {
+   public boolean matchesSafely(String string) {
+     return !string.isEmpty();
+   }
+   public void describeMismatchSafely(String string, Description mismatchDescription) {
+     mismatchDescription.appendText("was empty");
+   }
+ };
+ 
+ This is a variant of CustomMatcher that first type checks + the argument being matched. By the time TypeSafeMatcher.matchesSafely(T) is + is called the argument is guaranteed to be non-null and of the correct + type. +

+ +

+

+
Author:
+
Neil Dunn
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CustomTypeSafeMatcher(java.lang.String description) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, matches, matchesSafely
+ + + + + + + +
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
+ +

+CustomTypeSafeMatcher

+
+public CustomTypeSafeMatcher(java.lang.String description)
+
+
+ + + + + + + + +
+Method Detail
+ +

+describeTo

+
+public final 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.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Description.NullDescription.html b/javadoc/1.3/org/hamcrest/Description.NullDescription.html new file mode 100644 index 000000000..d9e46f4b8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Description.NullDescription.html @@ -0,0 +1,482 @@ + + + + + + +Description.NullDescription (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class Description.NullDescription

+
+java.lang.Object
+  extended by org.hamcrest.Description.NullDescription
+
+
+
All Implemented Interfaces:
Description
+
+
+
Enclosing interface:
Description
+
+
+
+
public static final class Description.NullDescription
extends java.lang.Object
implements Description
+ + +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.hamcrest.Description
Description.NullDescription
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from interface org.hamcrest.Description
NONE
+  + + + + + + + + + + +
+Constructor Summary
Description.NullDescription() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DescriptionappendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionappendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionappendText(java.lang.String text) + +
+          Appends some plain text to the description.
+ DescriptionappendValue(java.lang.Object value) + +
+          Appends an arbitary value to the description.
+ + + + + +
+<T> Description
+
appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<T> values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + T... values) + +
+          Appends a list of values to the description.
+ java.lang.StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

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

+Description.NullDescription

+
+public Description.NullDescription()
+
+
+ + + + + + + + +
+Method Detail
+ +

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

+appendList

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

+

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

+appendText

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

+

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

+appendValue

+
+public Description appendValue(java.lang.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(java.lang.String start,
+                                       java.lang.String separator,
+                                       java.lang.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(java.lang.String start,
+                                       java.lang.String separator,
+                                       java.lang.String end,
+                                       java.lang.Iterable<T> values)
+
+
Description copied from interface: Description
+
Appends a list of values to the description. +

+

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

+toString

+
+public java.lang.String toString()
+
+
+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Description.html b/javadoc/1.3/org/hamcrest/Description.html new file mode 100644 index 000000000..a261a899e --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Description.html @@ -0,0 +1,412 @@ + + + + + + +Description (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Interface Description

+
+
All Known Implementing Classes:
BaseDescription, Description.NullDescription, 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)
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classDescription.NullDescription + +
+           
+ + + + + + + + + + +
+Field Summary
+static DescriptionNONE + +
+          A description that consumes input but does nothing.
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ DescriptionappendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionappendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionappendText(java.lang.String text) + +
+          Appends some plain text to the description.
+ DescriptionappendValue(java.lang.Object value) + +
+          Appends an arbitary value to the description.
+ + + + + +
+<T> Description
+
appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<T> values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + T... values) + +
+          Appends a list of values to the description.
+  +

+ + + + + + + + +
+Field Detail
+ +

+NONE

+
+static final Description NONE
+
+
A description that consumes input but does nothing. +

+

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

+appendText

+
+Description appendText(java.lang.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(java.lang.Object value)
+
+
Appends an arbitary value to the description. +

+

+
+
+
+
+ +

+appendValueList

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

+

+
+
+
+
+ +

+appendValueList

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

+

+
+
+
+
+ +

+appendList

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

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/DiagnosingMatcher.html b/javadoc/1.3/org/hamcrest/DiagnosingMatcher.html new file mode 100644 index 000000000..a3e89ebe0 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/DiagnosingMatcher.html @@ -0,0 +1,344 @@ + + + + + + +DiagnosingMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.DiagnosingMatcher<T>
+
+
+
Type Parameters:
T -
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
Direct Known Subclasses:
AllOf, IsInstanceOf, SamePropertyValuesAs.PropertyMatcher
+
+
+
+
public abstract class DiagnosingMatcher<T>
extends BaseMatcher<T>
+ + +

+TODO(ngd): Document. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
DiagnosingMatcher() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+          Generate a description of why the matcher has not accepted the item.
+ booleanmatches(java.lang.Object item) + +
+          Evaluates the matcher for argument item.
+protected abstract  booleanmatches(java.lang.Object item, + Description mismatchDescription) + +
+           
+ + + + + + + +
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
+ + + + + + + +
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
+  +

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

+DiagnosingMatcher

+
+public DiagnosingMatcher()
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public final boolean matches(java.lang.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
+
+
+
+ +

+describeMismatch

+
+public final void describeMismatch(java.lang.Object item,
+                                   Description mismatchDescription)
+
+
Description copied from interface: Matcher
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
Specified by:
describeMismatch in interface Matcher<T>
Overrides:
describeMismatch in class BaseMatcher<T>
+
+
+
Parameters:
item - The item that the Matcher has rejected.
mismatchDescription - The description to be built or appended to.
+
+
+
+ +

+matches

+
+protected abstract boolean matches(java.lang.Object item,
+                                   Description mismatchDescription)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/EasyMock2Matchers.html b/javadoc/1.3/org/hamcrest/EasyMock2Matchers.html new file mode 100644 index 000000000..6c02f5d5c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/EasyMock2Matchers.html @@ -0,0 +1,256 @@ + + + + + + +EasyMock2Matchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class EasyMock2Matchers

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

+

+
Author:
+
Joe Walnes
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EasyMock2Matchers() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static java.lang.StringequalTo(java.lang.String string) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+EasyMock2Matchers

+
+public EasyMock2Matchers()
+
+
+ + + + + + + + +
+Method Detail
+ +

+equalTo

+
+public static java.lang.String equalTo(java.lang.String string)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Factory.html b/javadoc/1.3/org/hamcrest/Factory.html new file mode 100644 index 000000000..5fb6900f8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Factory.html @@ -0,0 +1,178 @@ + + + + + + +Factory (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+ +

+

+
Author:
+
Joe Walnes
+
+ +

+ +

+ +


+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/FeatureMatcher.html b/javadoc/1.3/org/hamcrest/FeatureMatcher.html new file mode 100644 index 000000000..20078aac8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/FeatureMatcher.html @@ -0,0 +1,348 @@ + + + + + + +FeatureMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class FeatureMatcher<T,U>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
+          extended by org.hamcrest.FeatureMatcher<T,U>
+
+
+
Type Parameters:
T - The type of the object to be matched
U - The type of the feature to be matched
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
Direct Known Subclasses:
HasToString, IsArrayWithSize, IsCollectionWithSize, IsIterableWithSize
+
+
+
+
public abstract class FeatureMatcher<T,U>
extends TypeSafeDiagnosingMatcher<T>
+ + +

+Supporting class for matching a feature of an object. Implement featureValueOf() + in a subclass to pull out the feature to be matched against. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
FeatureMatcher(Matcher<? super U> subMatcher, + java.lang.String featureDescription, + java.lang.String featureName) + +
+          Constructor
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+protected abstract  UfeatureValueOf(T actual) + +
+          Implement this to extract the interesting feature.
+protected  booleanmatchesSafely(T actual, + Description mismatch) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+FeatureMatcher

+
+public FeatureMatcher(Matcher<? super U> subMatcher,
+                      java.lang.String featureDescription,
+                      java.lang.String featureName)
+
+
Constructor +

+

+
Parameters:
subMatcher - The matcher to apply to the feature
featureDescription - Descriptive text to use in describeTo
featureName - Identifying text for mismatch message
+
+ + + + + + + + +
+Method Detail
+ +

+featureValueOf

+
+protected abstract U featureValueOf(T actual)
+
+
Implement this to extract the interesting feature. +

+

+
Parameters:
actual - the target object +
Returns:
the feature to be matched
+
+
+
+ +

+matchesSafely

+
+protected boolean matchesSafely(T actual,
+                                Description mismatch)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<T>
+
+
+
+
+
+
+ +

+describeTo

+
+public final 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.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/JMock1Matchers.html b/javadoc/1.3/org/hamcrest/JMock1Matchers.html new file mode 100644 index 000000000..5ede24f20 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/JMock1Matchers.html @@ -0,0 +1,252 @@ + + + + + + +JMock1Matchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class JMock1Matchers

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
JMock1Matchers() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static org.jmock.core.ConstraintequalTo(java.lang.String string) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+JMock1Matchers

+
+public JMock1Matchers()
+
+
+ + + + + + + + +
+Method Detail
+ +

+equalTo

+
+public static org.jmock.core.Constraint equalTo(java.lang.String string)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/JavaLangMatcherAssert.html b/javadoc/1.3/org/hamcrest/JavaLangMatcherAssert.html new file mode 100644 index 000000000..1e418dd8c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/JavaLangMatcherAssert.html @@ -0,0 +1,240 @@ + + + + + + +JavaLangMatcherAssert (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class JavaLangMatcherAssert

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

+Integration method for use with Java's assert keyword. + Example: +

+ assert that("Foo", startsWith("f"));
+ 
+

+ +

+

+
Author:
+
Neil Dunn
+
+
+ +

+ + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> boolean
+
that(T argument, + Matcher<? super T> matcher) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+that

+
+public static <T> boolean that(T argument,
+                               Matcher<? super T> matcher)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Matcher.html b/javadoc/1.3/org/hamcrest/Matcher.html new file mode 100644 index 000000000..c8c6d8d9d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Matcher.html @@ -0,0 +1,310 @@ + + + + + + +Matcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+
All Superinterfaces:
SelfDescribing
+
+
+
All Known Implementing Classes:
AllOf, AnyOf, BaseMatcher, BigDecimalCloseTo, CombinableMatcher, CustomMatcher, CustomTypeSafeMatcher, DescribedAs, DiagnosingMatcher, Every, FeatureMatcher, HasProperty, HasPropertyWithValue, HasToString, HasXPath, Is, IsAnything, IsArray, IsArrayContaining, IsArrayContainingInAnyOrder, IsArrayContainingInOrder, IsArrayWithSize, IsCloseTo, IsCollectionContaining, IsCollectionWithSize, IsCompatibleType, IsEmptyCollection, IsEmptyIterable, IsEmptyString, IsEqual, IsEqualIgnoringCase, IsEqualIgnoringWhiteSpace, IsEventFrom, IsIn, IsInstanceOf, IsIterableContainingInAnyOrder, IsIterableContainingInOrder, IsIterableWithSize, IsMapContaining, IsNot, IsNull, IsSame, OrderingComparison, SamePropertyValuesAs, SamePropertyValuesAs.PropertyMatcher, StringContains, StringContainsInOrder, StringEndsWith, StringStartsWith, SubstringMatcher, TypeSafeDiagnosingMatcher, TypeSafeMatcher
+
+
+
+
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. +

+ N.B. Well designed matchers should be immutable. +

+ +

+

+
See Also:
CoreMatchers, +BaseMatcher
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ void_dont_implement_Matcher___instead_extend_BaseMatcher_() + +
+          Deprecated. to make
+ voiddescribeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+          Generate a description of why the matcher has not accepted the item.
+ booleanmatches(java.lang.Object item) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
+  +

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

+matches

+
+boolean matches(java.lang.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
+
+
+
+ +

+describeMismatch

+
+void describeMismatch(java.lang.Object item,
+                      Description mismatchDescription)
+
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
+
+
+
Parameters:
item - The item that the Matcher has rejected.
mismatchDescription - The description to be built or appended to.
+
+
+
+ +

+_dont_implement_Matcher___instead_extend_BaseMatcher_

+
+@Deprecated
+void _dont_implement_Matcher___instead_extend_BaseMatcher_()
+
+
Deprecated. to make +

+

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/1.3/org/hamcrest/MatcherAssert.html b/javadoc/1.3/org/hamcrest/MatcherAssert.html new file mode 100644 index 000000000..0f0874d85 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/MatcherAssert.html @@ -0,0 +1,312 @@ + + + + + + +MatcherAssert (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class MatcherAssert

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
MatcherAssert() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidassertThat(java.lang.String reason, + boolean assertion) + +
+           
+static + + + + +
+<T> void
+
assertThat(java.lang.String reason, + T actual, + Matcher<? super T> matcher) + +
+           
+static + + + + +
+<T> void
+
assertThat(T actual, + Matcher<? super T> matcher) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+MatcherAssert

+
+public MatcherAssert()
+
+
+ + + + + + + + +
+Method Detail
+ +

+assertThat

+
+public static <T> void assertThat(T actual,
+                                  Matcher<? super T> matcher)
+
+
+
+
+
+
+ +

+assertThat

+
+public static <T> void assertThat(java.lang.String reason,
+                                  T actual,
+                                  Matcher<? super T> matcher)
+
+
+
+
+
+
+ +

+assertThat

+
+public static void assertThat(java.lang.String reason,
+                              boolean assertion)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/Matchers.html b/javadoc/1.3/org/hamcrest/Matchers.html new file mode 100644 index 000000000..23072ad2d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/Matchers.html @@ -0,0 +1,3658 @@ + + + + + + +Matchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Class Matchers

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Matchers() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static Matcher<java.lang.Object>anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+static + + + + +
+<T> IsArray<T>
+
array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContaining(E... items) + +
+          Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContainingInAnyOrder(E... items) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayWithSize(int size) + +
+          Creates a matcher for arrays that matches when the length of the array + equals the specified size.
+static + + + + +
+<E> Matcher<E[]>
+
arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static Matcher<java.math.BigDecimal>closeTo(java.math.BigDecimal operand, + java.math.BigDecimal error) + +
+          Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error.
+static Matcher<java.lang.Double>closeTo(double operand, + double error) + +
+          Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
comparesEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(E... items) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
containsInAnyOrder(T... items) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items.
+static Matcher<java.lang.String>containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+static + + + + +
+<T> Matcher<T>
+
describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
empty() + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<E[]>
+
emptyArray() + +
+          Creates a matcher for arrays that matches when the length of the array + is zero.
+static + + + + +
+<E> Matcher<java.util.Collection<E>>
+
emptyCollectionOf(java.lang.Class<E> type) + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
emptyIterable() + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
emptyIterableOf(java.lang.Class<E> type) + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static Matcher<java.lang.String>endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
equalTo(T operand) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+static Matcher<java.lang.String>equalToIgnoringCase(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case.
+static Matcher<java.lang.String>equalToIgnoringWhiteSpace(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored.
+static Matcher<java.util.EventObject>eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass, + java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any object + derived from eventClass announced by source.
+static Matcher<java.util.EventObject>eventFrom(java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any EventObject + announced by source.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
greaterThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
greaterThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
hasEntry(K key, + V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<T[]>
+
hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
hasItemInArray(T element) + +
+          A shortcut to the frequently used hasItemInArray(equalTo(x)).
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
hasKey(K key) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
hasProperty(java.lang.String propertyName) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name.
+static + + + + +
+<T> Matcher<T>
+
hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
hasSize(int size) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
hasToString(java.lang.String expectedToString) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
hasValue(V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+static + + + + +
+<T> Matcher<T>
+
instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static Matcher<java.lang.String>isEmptyOrNullString() + +
+          Creates a matcher of String that matches when the examined string is null, or + has zero length.
+static Matcher<java.lang.String>isEmptyString() + +
+          Creates a matcher of String that matches when the examined string has zero length.
+static + + + + +
+<T> Matcher<T>
+
isIn(java.util.Collection<T> collection) + +
+          Creates a matcher that matches when the examined object is found within the + specified collection.
+static + + + + +
+<T> Matcher<T>
+
isIn(T[] param1) + +
+           
+static + + + + +
+<T> Matcher<T>
+
isOneOf(T... elements) + +
+          Creates a matcher that matches when the examined object is equal to one of the + specified elements.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
iterableWithSize(int size) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
lessThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
lessThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<T> Matcher<T>
+
not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+static Matcher<java.lang.Object>notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static + + + + +
+<T> Matcher<T>
+
notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static Matcher<java.lang.Object>nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<T>
+
samePropertyValuesAs(T expectedBean) + +
+          Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean.
+static Matcher<java.lang.String>startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+static Matcher<java.lang.String>stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings) + +
+          Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance.
+static + + + + +
+<T> Matcher<T>
+
theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<java.lang.Class<?>>
+
typeCompatibleWith(java.lang.Class<T> baseType) + +
+          Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+Matchers

+
+public Matchers()
+
+
+ + + + + + + + +
+Method Detail
+ +

+allOf

+
+public static <T> Matcher<T> allOf(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T>... matchers)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth,
+                                   Matcher<? super T> fifth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth,
+                                   Matcher<? super T> fifth,
+                                   Matcher<? super T> sixth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth,
+                                 Matcher<? super T> fifth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth,
+                                 Matcher<? super T> fifth,
+                                 Matcher<? super T> sixth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+both

+
+public static <LHS> CombinableMatcher.CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher)
+
+
Creates a matcher that matches when both of the specified matchers match the examined object. +

+ For example: +

assertThat("fab", both(containsString("a")).and(containsString("b")))
+

+

+
+
+
+
+ +

+either

+
+public static <LHS> CombinableMatcher.CombinableEitherMatcher<LHS> either(Matcher<? super LHS> matcher)
+
+
Creates a matcher that matches when either of the specified matchers match the examined object. +

+ For example: +

assertThat("fan", either(containsString("a")).and(containsString("b")))
+

+

+
+
+
+
+ +

+describedAs

+
+public static <T> Matcher<T> describedAs(java.lang.String description,
+                                         Matcher<T> matcher,
+                                         java.lang.Object... values)
+
+
Wraps an existing matcher, overriding its description with that specified. All other functions are + delegated to the decorated matcher, including its mismatch description. +

+ For example: +

describedAs("a big decimal equal to %0", equalTo(myBigDecimal), myBigDecimal.toPlainString())
+

+

+
Parameters:
description - the new description for the wrapped matcher
matcher - the matcher to wrap
values - optional values to insert into the tokenised description
+
+
+
+ +

+everyItem

+
+public static <U> Matcher<java.lang.Iterable<U>> everyItem(Matcher<U> itemMatcher)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher. +

+ For example: +

assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))
+

+

+
Parameters:
itemMatcher - the matcher to apply to every item provided by the examined Iterable
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(T value)
+
+
A shortcut to the frequently used is(equalTo(x)). +

+ For example: +

assertThat(cheese, is(smelly))
+ instead of: +
assertThat(cheese, is(equalTo(smelly)))
+

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(Matcher<T> matcher)
+
+
Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive. +

+ For example: +

assertThat(cheese, is(equalTo(smelly)))
+ instead of: +
assertThat(cheese, equalTo(smelly))
+

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(java.lang.Class<T> type)
+
+
Deprecated. use isA(Class type) instead. +

+

A shortcut to the frequently used is(instanceOf(SomeClass.class)). +

+ For example: +

assertThat(cheese, is(Cheddar.class))
+ instead of: +
assertThat(cheese, is(instanceOf(Cheddar.class)))
+

+

+
+
+
+
+ +

+isA

+
+public static <T> Matcher<T> isA(java.lang.Class<T> type)
+
+
A shortcut to the frequently used is(instanceOf(SomeClass.class)). +

+ For example: +

assertThat(cheese, isA(Cheddar.class))
+ instead of: +
assertThat(cheese, is(instanceOf(Cheddar.class)))
+

+

+
+
+
+
+ +

+anything

+
+public static Matcher<java.lang.Object> anything()
+
+
Creates a matcher that always matches, regardless of the examined object. +

+

+
+
+
+
+ +

+anything

+
+public static Matcher<java.lang.Object> anything(java.lang.String description)
+
+
Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String. +

+

+
Parameters:
description - a meaningful String used when describing itself
+
+
+
+ +

+hasItem

+
+public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(T item)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item. Whilst matching, the traversal of the examined Iterable + will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasItem("bar"))
+

+

+
Parameters:
item - the item to compare against the items provided by the examined Iterable
+
+
+
+ +

+hasItem

+
+public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher. Whilst matching, the traversal of the examined Iterable + will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasItem(startsWith("ba")))
+

+

+
Parameters:
itemMatcher - the matcher to apply to items provided by the examined Iterable
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<java.lang.Iterable<T>> hasItems(T... items)
+
+
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items. Whilst matching, each traversal of the + examined Iterable will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar", "baz"), hasItems("baz", "foo"))
+

+

+
Parameters:
items - the items to compare against the items provided by the examined Iterable
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<java.lang.Iterable<T>> hasItems(Matcher<? super T>... itemMatchers)
+
+
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers. Whilst matching, each traversal of + the examined Iterable will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar", "baz"), hasItems(endsWith("z"), endsWith("o")))
+

+

+
Parameters:
itemMatchers - the matchers to apply to items provided by the examined Iterable
+
+
+
+ +

+equalTo

+
+public static <T> Matcher<T> equalTo(T operand)
+
+
Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object. + +

If the specified operand is null then the created matcher will only match if + the examined object's equals method returns true when passed a + null (which would be a violation of the equals contract), unless the + examined object itself is null, in which case the matcher will return a positive + match.

+ +

The created matcher provides a special behaviour when examining Arrays, whereby + it will match if both the operand and the examined object are arrays of the same length and + contain items that are equal to each other (according to the above rules) in the same + indexes.

+

+ For example: +

+ assertThat("foo", equalTo("foo"));
+ assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));
+ 
+

+

+
+
+
+
+ +

+any

+
+public static <T> Matcher<T> any(java.lang.Class<T> type)
+
+
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. + +

The created matcher forces a relationship between specified type and the examined object, and should be + used when it is necessary to make generics conform, for example in the JMock clause + with(any(Thing.class))

+

+ For example: +

assertThat(new Canoe(), instanceOf(Canoe.class));
+

+

+
+
+
+
+ +

+instanceOf

+
+public static <T> Matcher<T> instanceOf(java.lang.Class<?> type)
+
+
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. + +

The created matcher assumes no relationship between specified type and the examined object.

+

+ For example: +

assertThat(new Canoe(), instanceOf(Paddlable.class));
+

+

+
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(Matcher<T> matcher)
+
+
Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match. +

+ For example: +

assertThat(cheese, is(not(equalTo(smelly))))
+

+

+
Parameters:
matcher - the matcher whose sense should be inverted
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(T value)
+
+
A shortcut to the frequently used not(equalTo(x)). +

+ For example: +

assertThat(cheese, is(not(smelly)))
+ instead of: +
assertThat(cheese, is(not(equalTo(smelly))))
+

+

+
Parameters:
value - the value that any examined object should not equal
+
+
+
+ +

+nullValue

+
+public static Matcher<java.lang.Object> nullValue()
+
+
Creates a matcher that matches if examined object is null. +

+ For example: +

assertThat(cheese, is(nullValue())
+

+

+
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue(java.lang.Class<T> type)
+
+
Creates a matcher that matches if examined object is null. Accepts a + single dummy argument to facilitate type inference. +

+ For example: +

assertThat(cheese, is(nullValue(Cheese.class))
+

+

+
Parameters:
type - dummy parameter used to infer the generic type of the returned matcher
+
+
+
+ +

+notNullValue

+
+public static Matcher<java.lang.Object> notNullValue()
+
+
A shortcut to the frequently used not(nullValue()). +

+ For example: +

assertThat(cheese, is(notNullValue()))
+ instead of: +
assertThat(cheese, is(not(nullValue())))
+

+

+
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue(java.lang.Class<T> type)
+
+
A shortcut to the frequently used not(nullValue(X.class)). Accepts a + single dummy argument to facilitate type inference.. +

+ For example: +

assertThat(cheese, is(notNullValue(X.class)))
+ instead of: +
assertThat(cheese, is(not(nullValue(X.class))))
+

+

+
Parameters:
type - dummy parameter used to infer the generic type of the returned matcher
+
+
+
+ +

+sameInstance

+
+public static <T> Matcher<T> sameInstance(T target)
+
+
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +

+

+
Parameters:
target - the target instance against which others should be assessed
+
+
+
+ +

+theInstance

+
+public static <T> Matcher<T> theInstance(T target)
+
+
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +

+

+
Parameters:
target - the target instance against which others should be assessed
+
+
+
+ +

+containsString

+
+public static Matcher<java.lang.String> containsString(java.lang.String substring)
+
+
Creates a matcher that matches if the examined String contains the specified + String anywhere. +

+ For example: +

assertThat("myStringOfNote", containsString("ring"))
+

+

+
Parameters:
substring - the substring that the returned matcher will expect to find within any examined string
+
+
+
+ +

+startsWith

+
+public static Matcher<java.lang.String> startsWith(java.lang.String prefix)
+
+
Creates a matcher that matches if the examined String starts with the specified + String. +

+ For example: +

assertThat("myStringOfNote", startsWith("my"))
+

+

+
Parameters:
prefix - the substring that the returned matcher will expect at the start of any examined string
+
+
+
+ +

+endsWith

+
+public static Matcher<java.lang.String> endsWith(java.lang.String suffix)
+
+
Creates a matcher that matches if the examined String ends with the specified + String. +

+ For example: +

assertThat("myStringOfNote", endsWith("Note"))
+

+

+
Parameters:
suffix - the substring that the returned matcher will expect at the end of any examined string
+
+
+
+ +

+array

+
+public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers)
+
+
Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. Matches + positively only if the number of matchers specified is equal to the length of the examined array and + each matcher[i] is satisfied by array[i]. +

+ For example: +

assertThat(new Integer[]{1,2,3}, is(array(equalTo(1), equalTo(2), equalTo(3))))
+

+

+
Parameters:
elementMatchers - the matchers that the elements of examined arrays should satisfy
+
+
+
+ +

+hasItemInArray

+
+public static <T> Matcher<T[]> hasItemInArray(T element)
+
+
A shortcut to the frequently used hasItemInArray(equalTo(x)). +

+ For example: +

assertThat(hasItemInArray(x))
+ instead of: +
assertThat(hasItemInArray(equalTo(x)))
+

+

+
Parameters:
element - the element that should be present in examined arrays
+
+
+
+ +

+hasItemInArray

+
+public static <T> Matcher<T[]> hasItemInArray(Matcher<? super T> elementMatcher)
+
+
Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher. Whilst matching, the traversal + of the examined array will stop as soon as a matching element is found. +

+ For example: +

assertThat(new String[] {"foo", "bar"}, hasItemInArray(startsWith("ba")))
+

+

+
Parameters:
elementMatcher - the matcher to apply to elements in examined arrays
+
+
+
+ +

+arrayContaining

+
+public static <E> Matcher<E[]> arrayContaining(java.util.List<Matcher<? super E>> itemMatchers)
+
+
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers. For a positive match, the examined array + must be of the same length as the specified list of matchers. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by the corresponding item in an examined array
+
+
+
+ +

+arrayContaining

+
+public static <E> Matcher<E[]> arrayContaining(E... items)
+
+
Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items. For a positive match, + the examined array must be of the same length as the number of specified items. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, contains("foo", "bar"))
+

+

+
Parameters:
items - the items that must equal the items within an examined array
+
+
+
+ +

+arrayContaining

+
+public static <E> Matcher<E[]> arrayContaining(Matcher<? super E>... itemMatchers)
+
+
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers. For a positive match, the examined array + must be of the same length as the number of specified matchers. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))
+

+

+
Parameters:
itemMatchers - the matchers that must be satisfied by the items in the examined array
+
+
+
+ +

+arrayContainingInAnyOrder

+
+public static <E> Matcher<E[]> arrayContainingInAnyOrder(E... items)
+
+
Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items. + For a positive match, the examined array must be of the same length as the number of + specified items. +

+ N.B. each of the specified items will only be used once during a given examination, so be + careful when specifying items that may be equal to more than one entry in an examined + array. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, containsInAnyOrder("bar", "foo"))
+

+

+
Parameters:
items - the items that must equal the entries of an examined array, in any order
+
+
+
+ +

+arrayContainingInAnyOrder

+
+public static <E> Matcher<E[]> arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers)
+
+
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers. + For a positive match, the examined array must be of the same length as the number of + specified matchers. +

+ N.B. each of the specified matchers will only be used once during a given examination, so be + careful when specifying matchers that may be satisfied by more than one entry in an examined + array. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(equalTo("bar"), equalTo("foo")))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an entry in an examined array
+
+
+
+ +

+arrayContainingInAnyOrder

+
+public static <E> Matcher<E[]> arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers)
+
+
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers. + For a positive match, the examined array must be of the same length as the specified collection + of matchers. +

+ N.B. each matcher in the specified collection will only be used once during a given + examination, so be careful when specifying matchers that may be satisfied by more than + one entry in an examined array. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined array
+
+
+
+ +

+arrayWithSize

+
+public static <E> Matcher<E[]> arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayWithSize(equalTo(2)))
+

+

+
Parameters:
sizeMatcher - a matcher for the length of an examined array
+
+
+
+ +

+arrayWithSize

+
+public static <E> Matcher<E[]> arrayWithSize(int size)
+
+
Creates a matcher for arrays that matches when the length of the array + equals the specified size. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayWithSize(2))
+

+

+
Parameters:
size - the length that an examined array must have for a positive match
+
+
+
+ +

+emptyArray

+
+public static <E> Matcher<E[]> emptyArray()
+
+
Creates a matcher for arrays that matches when the length of the array + is zero. +

+ For example: +

assertThat(new String[0], emptyArray())
+

+

+
+
+
+
+ +

+hasSize

+
+public static <E> Matcher<java.util.Collection<? extends E>> hasSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))
+

+

+
Parameters:
sizeMatcher - a matcher for the size of an examined Collection
+
+
+
+ +

+hasSize

+
+public static <E> Matcher<java.util.Collection<? extends E>> hasSize(int size)
+
+
Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasSize(2))
+

+

+
Parameters:
size - the expected size of an examined Collection
+
+
+
+ +

+empty

+
+public static <E> Matcher<java.util.Collection<? extends E>> empty()
+
+
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +

+ For example: +

assertThat(new ArrayList<String>(), is(empty()))
+

+

+
+
+
+
+ +

+emptyCollectionOf

+
+public static <E> Matcher<java.util.Collection<E>> emptyCollectionOf(java.lang.Class<E> type)
+
+
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +

+ For example: +

assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class)))
+

+

+
Parameters:
type - the type of the collection's content
+
+
+
+ +

+emptyIterable

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> emptyIterable()
+
+
Creates a matcher for Iterables matching examined iterables that yield no items. +

+ For example: +

assertThat(new ArrayList<String>(), is(emptyIterable()))
+

+

+
+
+
+
+ +

+emptyIterableOf

+
+public static <E> Matcher<java.lang.Iterable<E>> emptyIterableOf(java.lang.Class<E> type)
+
+
Creates a matcher for Iterables matching examined iterables that yield no items. +

+ For example: +

assertThat(new ArrayList<String>(), is(emptyIterableOf(String.class)))
+

+

+
Parameters:
type - the type of the iterable's content
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(Matcher<? super E>... itemMatchers)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers. For a positive match, the examined iterable + must be of the same length as the number of specified matchers. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), contains(equalTo("foo"), equalTo("bar")))
+

+

+
Parameters:
itemMatchers - the matchers that must be satisfied by the items provided by an examined Iterable
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(E... items)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items. For a positive match, the examined iterable + must be of the same length as the number of specified items. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), contains("foo", "bar"))
+

+

+
Parameters:
items - the items that must equal the items provided by an examined Iterable
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(Matcher<? super E> itemMatcher)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher. + For a positive match, the examined iterable must only yield one item. +

+ For example: +

assertThat(Arrays.asList("foo"), contains(equalTo("foo")))
+

+

+
Parameters:
itemMatcher - the matcher that must be satisfied by the single item provided by an + examined Iterable
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(java.util.List<Matcher<? super E>> itemMatchers)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers. For a positive match, the examined iterable + must be of the same length as the specified list of matchers. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by the corresponding item provided by + an examined Iterable
+
+
+
+ +

+containsInAnyOrder

+
+public static <T> Matcher<java.lang.Iterable<? extends T>> containsInAnyOrder(T... items)
+
+
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items. For a positive match, the examined iterable + must be of the same length as the number of specified items. +

+ N.B. each of the specified items will only be used once during a given examination, so be + careful when specifying items that may be equal to more than one entry in an examined + iterable. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder("bar", "foo"))
+

+

+
Parameters:
items - the items that must equal the items provided by an examined Iterable in any order
+
+
+
+ +

+containsInAnyOrder

+
+public static <T> Matcher<java.lang.Iterable<? extends T>> containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers)
+
+
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers. For a positive match, the examined iterable + must be of the same length as the specified collection of matchers. +

+ N.B. each matcher in the specified collection will only be used once during a given + examination, so be careful when specifying matchers that may be satisfied by more than + one entry in an examined iterable. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined Iterable
+
+
+
+ +

+containsInAnyOrder

+
+public static <T> Matcher<java.lang.Iterable<? extends T>> containsInAnyOrder(Matcher<? super T>... itemMatchers)
+
+
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers. For a positive match, the examined iterable must be of the same + length as the number of specified matchers. +

+ N.B. each of the specified matchers will only be used once during a given examination, so be + careful when specifying matchers that may be satisfied by more than one entry in an examined + iterable. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(equalTo("bar"), equalTo("foo")))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined Iterable
+
+
+
+ +

+containsInAnyOrder

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> containsInAnyOrder(Matcher<? super E> itemMatcher)
+
+
Deprecated. use contains(Matcher itemMatcher) instead +

+

Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher. + For a positive match, the examined iterable must only yield one item. +

+ For example: +

assertThat(Arrays.asList("foo"), containsInAnyOrder(equalTo("foo")))
+

+

+
Parameters:
itemMatcher - the matcher that must be satisfied by the single item provided by an + examined Iterable
+
+
+
+ +

+iterableWithSize

+
+public static <E> Matcher<java.lang.Iterable<E>> iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), iterableWithSize(equalTo(2)))
+

+

+
Parameters:
sizeMatcher - a matcher for the number of items that should be yielded by an examined Iterable
+
+
+
+ +

+iterableWithSize

+
+public static <E> Matcher<java.lang.Iterable<E>> iterableWithSize(int size)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), iterableWithSize(2))
+

+

+
Parameters:
size - the number of items that should be yielded by an examined Iterable
+
+
+
+ +

+hasEntry

+
+public static <K,V> Matcher<java.util.Map<? extends K,? extends V>> hasEntry(K key,
+                                                                             V value)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value. +

+ For example: +

assertThat(myMap, hasEntry("bar", "foo"))
+

+

+
Parameters:
key - the key that, in combination with the value, must be describe at least one entry
value - the value that, in combination with the key, must be describe at least one entry
+
+
+
+ +

+hasEntry

+
+public static <K,V> Matcher<java.util.Map<? extends K,? extends V>> hasEntry(Matcher<? super K> keyMatcher,
+                                                                             Matcher<? super V> valueMatcher)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher. +

+ For example: +

assertThat(myMap, hasEntry(equalTo("bar"), equalTo("foo")))
+

+

+
Parameters:
keyMatcher - the key matcher that, in combination with the valueMatcher, must be satisfied by at least one entry
valueMatcher - the value matcher that, in combination with the keyMatcher, must be satisfied by at least one entry
+
+
+
+ +

+hasKey

+
+public static <K> Matcher<java.util.Map<? extends K,?>> hasKey(Matcher<? super K> keyMatcher)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher. +

+ For example: +

assertThat(myMap, hasKey(equalTo("bar")))
+

+

+
Parameters:
keyMatcher - the matcher that must be satisfied by at least one key
+
+
+
+ +

+hasKey

+
+public static <K> Matcher<java.util.Map<? extends K,?>> hasKey(K key)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key. +

+ For example: +

assertThat(myMap, hasKey("bar"))
+

+

+
Parameters:
key - the key that satisfying maps must contain
+
+
+
+ +

+hasValue

+
+public static <V> Matcher<java.util.Map<?,? extends V>> hasValue(V value)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value. +

+ For example: +

assertThat(myMap, hasValue("foo"))
+

+

+
Parameters:
value - the value that satisfying maps must contain
+
+
+
+ +

+hasValue

+
+public static <V> Matcher<java.util.Map<?,? extends V>> hasValue(Matcher<? super V> valueMatcher)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher. +

+ For example: +

assertThat(myMap, hasValue(equalTo("foo")))
+

+

+
Parameters:
valueMatcher - the matcher that must be satisfied by at least one value
+
+
+
+ +

+isIn

+
+public static <T> Matcher<T> isIn(java.util.Collection<T> collection)
+
+
Creates a matcher that matches when the examined object is found within the + specified collection. +

+ For example: +

assertThat("foo", isIn(Arrays.asList("bar", "foo")))
+

+

+
Parameters:
collection - the collection in which matching items must be found
+
+
+
+ +

+isIn

+
+public static <T> Matcher<T> isIn(T[] param1)
+
+
+
+
+
+
+ +

+isOneOf

+
+public static <T> Matcher<T> isOneOf(T... elements)
+
+
Creates a matcher that matches when the examined object is equal to one of the + specified elements. +

+ For example: +

assertThat("foo", isIn("bar", "foo"))
+

+

+
Parameters:
elements - the elements amongst which matching items will be found
+
+
+
+ +

+closeTo

+
+public static Matcher<java.lang.Double> closeTo(double operand,
+                                                double error)
+
+
Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error. +

+ For example: +

assertThat(1.03, is(closeTo(1.0, 0.03)))
+

+

+
Parameters:
operand - the expected value of matching doubles
error - the delta (+/-) within which matches will be allowed
+
+
+
+ +

+closeTo

+
+public static Matcher<java.math.BigDecimal> closeTo(java.math.BigDecimal operand,
+                                                    java.math.BigDecimal error)
+
+
Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error. The comparison for equality + is done by BigDecimals BigDecimal.compareTo(java.math.BigDecimal) method. +

+ For example: +

assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))
+

+

+
Parameters:
operand - the expected value of matching BigDecimals
error - the delta (+/-) within which matches will be allowed
+
+
+
+ +

+comparesEqualTo

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> comparesEqualTo(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object. +

+ For example: +

assertThat(1, comparesEqualTo(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return zero
+
+
+
+ +

+greaterThan

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> greaterThan(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object. +

+ For example: +

assertThat(2, greaterThan(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return greater + than zero
+
+
+
+ +

+greaterThanOrEqualTo

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object. +

+ For example: +

assertThat(1, greaterThanOrEqualTo(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return greater + than or equal to zero
+
+
+
+ +

+lessThan

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> lessThan(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object. +

+ For example: +

assertThat(1, lessThan(2))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return less + than zero
+
+
+
+ +

+lessThanOrEqualTo

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> lessThanOrEqualTo(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object. +

+ For example: +

assertThat(1, lessThanOrEqualTo(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return less + than or equal to zero
+
+
+
+ +

+equalToIgnoringCase

+
+public static Matcher<java.lang.String> equalToIgnoringCase(java.lang.String expectedString)
+
+
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case. +

+ For example: +

assertThat("Foo", equalToIgnoringCase("FOO"))
+

+

+
Parameters:
expectedString - the expected value of matched strings
+
+
+
+ +

+equalToIgnoringWhiteSpace

+
+public static Matcher<java.lang.String> equalToIgnoringWhiteSpace(java.lang.String expectedString)
+
+
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored. To be + exact, the following whitespace rules are applied: +
    +
  • all leading and trailing whitespace of both the expectedString and the examined string are ignored
  • +
  • any remaining whitespace, appearing within either string, is collapsed to a single space before comparison
  • +
+

+ For example: +

assertThat("   my\tfoo  bar ", equalToIgnoringWhiteSpace(" my  foo bar"))
+

+

+
Parameters:
expectedString - the expected value of matched strings
+
+
+
+ +

+isEmptyString

+
+public static Matcher<java.lang.String> isEmptyString()
+
+
Creates a matcher of String that matches when the examined string has zero length. +

+ For example: +

assertThat("", isEmptyString())
+

+

+
+
+
+
+ +

+isEmptyOrNullString

+
+public static Matcher<java.lang.String> isEmptyOrNullString()
+
+
Creates a matcher of String that matches when the examined string is null, or + has zero length. +

+ For example: +

assertThat(((String)null), isEmptyString())
+

+

+
+
+
+
+ +

+stringContainsInOrder

+
+public static Matcher<java.lang.String> stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings)
+
+
Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance. +

+ For example: +

assertThat("myfoobarbaz", stringContainsInOrder(Arrays.asList("bar", "foo")))
+

+

+
Parameters:
substrings - the substrings that must be contained within matching strings
+
+
+
+ +

+hasToString

+
+public static <T> Matcher<T> hasToString(Matcher<? super java.lang.String> toStringMatcher)
+
+
Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher. +

+ For example: +

assertThat(true, hasToString(equalTo("TRUE")))
+

+

+
Parameters:
toStringMatcher - the matcher used to verify the toString result
+
+
+
+ +

+hasToString

+
+public static <T> Matcher<T> hasToString(java.lang.String expectedToString)
+
+
Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string. +

+ For example: +

assertThat(true, hasToString("TRUE"))
+

+

+
Parameters:
expectedToString - the expected toString result
+
+
+
+ +

+typeCompatibleWith

+
+public static <T> Matcher<java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> baseType)
+
+
Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class. +

+ For example: +

assertThat(Integer.class, typeCompatibleWith(Number.class))
+

+

+
Parameters:
baseType - the base class to examine classes against
+
+
+
+ +

+eventFrom

+
+public static Matcher<java.util.EventObject> eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass,
+                                                       java.lang.Object source)
+
+
Creates a matcher of EventObject that matches any object + derived from eventClass announced by source. +

+ For example: +
assertThat(myEvent, is(eventFrom(PropertyChangeEvent.class, myBean)))
+

+

+
Parameters:
eventClass - the class of the event to match on
source - the source of the event
+
+
+
+ +

+eventFrom

+
+public static Matcher<java.util.EventObject> eventFrom(java.lang.Object source)
+
+
Creates a matcher of EventObject that matches any EventObject + announced by source. +

+ For example: +
assertThat(myEvent, is(eventFrom(myBean)))
+

+

+
Parameters:
source - the source of the event
+
+
+
+ +

+hasProperty

+
+public static <T> Matcher<T> hasProperty(java.lang.String propertyName)
+
+
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name. +

+ For example: +

assertThat(myBean, hasProperty("foo"))
+

+

+
Parameters:
propertyName - the name of the JavaBean property that examined beans should possess
+
+
+
+ +

+hasProperty

+
+public static <T> Matcher<T> hasProperty(java.lang.String propertyName,
+                                         Matcher<?> valueMatcher)
+
+
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher. +

+ For example: +

assertThat(myBean, hasProperty("foo", equalTo("bar"))
+

+

+
Parameters:
propertyName - the name of the JavaBean property that examined beans should possess
valueMatcher - a matcher for the value of the specified property of the examined bean
+
+
+
+ +

+samePropertyValuesAs

+
+public static <T> Matcher<T> samePropertyValuesAs(T expectedBean)
+
+
Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean. +

+ For example: +

assertThat(myBean, samePropertyValuesAs(myExpectedBean))
+

+

+
Parameters:
expectedBean - the bean against which examined beans are compared
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath,
+                                                 javax.xml.namespace.NamespaceContext namespaceContext)
+
+
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese", myNs))
+

+

+
Parameters:
xPath - the target xpath
namespaceContext - the namespace for matching nodes
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath)
+
+
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese"))
+

+

+
Parameters:
xPath - the target xpath
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath,
+                                                 javax.xml.namespace.NamespaceContext namespaceContext,
+                                                 Matcher<java.lang.String> valueMatcher)
+
+
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese", myNs, equalTo("Cheddar")))
+

+

+
Parameters:
xPath - the target xpath
namespaceContext - the namespace for matching nodes
valueMatcher - matcher for the value at the specified xpath
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath,
+                                                 Matcher<java.lang.String> valueMatcher)
+
+
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese", equalTo("Cheddar")))
+

+

+
Parameters:
xPath - the target xpath
valueMatcher - matcher for the value at the specified xpath
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/SelfDescribing.html b/javadoc/1.3/org/hamcrest/SelfDescribing.html new file mode 100644 index 000000000..2f8e59099 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/SelfDescribing.html @@ -0,0 +1,220 @@ + + + + + + +SelfDescribing (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest +
+Interface SelfDescribing

+
+
All Known Subinterfaces:
Matcher<T>
+
+
+
All Known Implementing Classes:
AllOf, AnyOf, BaseMatcher, BigDecimalCloseTo, CombinableMatcher, CustomMatcher, CustomTypeSafeMatcher, DescribedAs, DiagnosingMatcher, Every, FeatureMatcher, HasProperty, HasPropertyWithValue, HasToString, HasXPath, Is, IsAnything, IsArray, IsArrayContaining, IsArrayContainingInAnyOrder, IsArrayContainingInOrder, IsArrayWithSize, IsCloseTo, IsCollectionContaining, IsCollectionWithSize, IsCompatibleType, IsEmptyCollection, IsEmptyIterable, IsEmptyString, IsEqual, IsEqualIgnoringCase, IsEqualIgnoringWhiteSpace, IsEventFrom, IsIn, IsInstanceOf, IsIterableContainingInAnyOrder, IsIterableContainingInOrder, IsIterableWithSize, IsMapContaining, IsNot, IsNull, IsSame, OrderingComparison, SamePropertyValuesAs, SamePropertyValuesAs.PropertyMatcher, SelfDescribingValue, StringContains, StringContainsInOrder, StringEndsWith, StringStartsWith, SubstringMatcher, TypeSafeDiagnosingMatcher, TypeSafeMatcher
+
+
+
+
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/1.3/org/hamcrest/StringDescription.html b/javadoc/1.3/org/hamcrest/StringDescription.html new file mode 100644 index 000000000..ce87692d7 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/StringDescription.html @@ -0,0 +1,420 @@ + + + + + + +StringDescription (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from interface org.hamcrest.Description
Description.NullDescription
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from interface org.hamcrest.Description
NONE
+  + + + + + + + + + + + + + +
+Constructor Summary
StringDescription() + +
+           
StringDescription(java.lang.Appendable out) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidappend(char c) + +
+          Append the char c to the description.
+protected  voidappend(java.lang.String str) + +
+          Append the String str to the description.
+static java.lang.StringasString(SelfDescribing selfDescribing) + +
+          Alias for toString(SelfDescribing).
+ java.lang.StringtoString() + +
+          Returns the description as a string.
+static java.lang.StringtoString(SelfDescribing selfDescribing) + +
+          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(java.lang.Appendable out)
+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public static java.lang.String toString(SelfDescribing selfDescribing)
+
+
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 java.lang.String asString(SelfDescribing selfDescribing)
+
+
Alias for toString(SelfDescribing). +

+

+
+
+
+
+ +

+append

+
+protected void append(java.lang.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 java.lang.String toString()
+
+
Returns the description as a string. +

+

+
Overrides:
toString in class java.lang.Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/TypeSafeDiagnosingMatcher.html b/javadoc/1.3/org/hamcrest/TypeSafeDiagnosingMatcher.html new file mode 100644 index 000000000..7c0e9e8eb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/TypeSafeDiagnosingMatcher.html @@ -0,0 +1,402 @@ + + + + + + +TypeSafeDiagnosingMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
+
+
+
Type Parameters:
T -
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
Direct Known Subclasses:
CombinableMatcher, Every, FeatureMatcher, HasPropertyWithValue, HasXPath, IsCollectionContaining, IsEventFrom, IsIterableContainingInAnyOrder, IsIterableContainingInOrder, SamePropertyValuesAs
+
+
+
+
public abstract class TypeSafeDiagnosingMatcher<T>
extends BaseMatcher<T>
+ + +

+Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected. + This implements the null check, checks the type and then casts. + To use, implement

matchesSafely()
. +

+ +

+

+
Author:
+
Neil Dunn, Nat Pryce, Steve Freeman
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected TypeSafeDiagnosingMatcher() + +
+          The default constructor for simple sub types
+protected TypeSafeDiagnosingMatcher(java.lang.Class<?> expectedType) + +
+          Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type.
+protected TypeSafeDiagnosingMatcher(ReflectiveTypeFinder typeFinder) + +
+          Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+          Generate a description of why the matcher has not accepted the item.
+ booleanmatches(java.lang.Object item) + +
+          Evaluates the matcher for argument item.
+protected abstract  booleanmatchesSafely(T item, + Description mismatchDescription) + +
+          Subclasses should implement this.
+ + + + + + + +
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
+ + + + + + + +
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
+  +

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

+TypeSafeDiagnosingMatcher

+
+protected TypeSafeDiagnosingMatcher(java.lang.Class<?> expectedType)
+
+
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +

+

+
Parameters:
expectedType - The expectedType of the actual value.
+
+
+ +

+TypeSafeDiagnosingMatcher

+
+protected TypeSafeDiagnosingMatcher(ReflectiveTypeFinder typeFinder)
+
+
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +

+

+
Parameters:
typeFinder - A type finder to extract the type
+
+
+ +

+TypeSafeDiagnosingMatcher

+
+protected TypeSafeDiagnosingMatcher()
+
+
The default constructor for simple sub types +

+

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

+matchesSafely

+
+protected abstract boolean matchesSafely(T item,
+                                         Description mismatchDescription)
+
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
+
+
+
+ +

+matches

+
+public final boolean matches(java.lang.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
+
+
+
+ +

+describeMismatch

+
+public final void describeMismatch(java.lang.Object item,
+                                   Description mismatchDescription)
+
+
Description copied from interface: Matcher
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
Specified by:
describeMismatch in interface Matcher<T>
Overrides:
describeMismatch in class BaseMatcher<T>
+
+
+
Parameters:
item - The item that the Matcher has rejected.
mismatchDescription - The description to be built or appended to.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/TypeSafeMatcher.html b/javadoc/1.3/org/hamcrest/TypeSafeMatcher.html new file mode 100644 index 000000000..424994ffb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/TypeSafeMatcher.html @@ -0,0 +1,416 @@ + + + + + + +TypeSafeMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
Direct Known Subclasses:
BigDecimalCloseTo, CustomTypeSafeMatcher, HasProperty, IsArray, IsArrayContaining, IsArrayContainingInAnyOrder, IsArrayContainingInOrder, IsCloseTo, IsCompatibleType, IsEmptyCollection, IsEmptyIterable, IsEqualIgnoringCase, IsEqualIgnoringWhiteSpace, IsMapContaining, OrderingComparison, StringContainsInOrder, SubstringMatcher
+
+
+
+
public abstract class TypeSafeMatcher<T>
extends BaseMatcher<T>
+ + +

+Convenient base class for Matchers that require a non-null value of a specific type. + This simply implements the null check, checks the type and then casts. +

+ +

+

+
Author:
+
Joe Walnes, Steve Freeman, Nat Pryce
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected TypeSafeMatcher() + +
+          The default constructor for simple sub types
+protected TypeSafeMatcher(java.lang.Class<?> expectedType) + +
+          Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type.
+protected TypeSafeMatcher(ReflectiveTypeFinder typeFinder) + +
+          Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatch(java.lang.Object item, + Description description) + +
+          Generate a description of why the matcher has not accepted the item.
+protected  voiddescribeMismatchSafely(T item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ booleanmatches(java.lang.Object item) + +
+          Methods made final to prevent accidental override.
+protected abstract  booleanmatchesSafely(T item) + +
+          Subclasses should implement this.
+ + + + + + + +
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
+ + + + + + + +
Methods inherited from interface org.hamcrest.SelfDescribing
describeTo
+  +

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

+TypeSafeMatcher

+
+protected TypeSafeMatcher()
+
+
The default constructor for simple sub types +

+

+
+ +

+TypeSafeMatcher

+
+protected TypeSafeMatcher(java.lang.Class<?> expectedType)
+
+
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +

+

+
Parameters:
expectedType - The expectedType of the actual value.
+
+
+ +

+TypeSafeMatcher

+
+protected TypeSafeMatcher(ReflectiveTypeFinder typeFinder)
+
+
Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type. +

+

+
Parameters:
typeFinder - A type finder to extract the type
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+protected abstract boolean matchesSafely(T item)
+
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
+
+
+
+ +

+describeMismatchSafely

+
+protected void describeMismatchSafely(T item,
+                                      Description mismatchDescription)
+
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
+
+
+
+ +

+matches

+
+public final boolean matches(java.lang.Object item)
+
+
Methods made final to prevent accidental override. + If you need to override this, there's no point on extending TypeSafeMatcher. + Instead, extend the BaseMatcher. +

+

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

+describeMismatch

+
+public final void describeMismatch(java.lang.Object item,
+                                   Description description)
+
+
Description copied from interface: Matcher
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
Specified by:
describeMismatch in interface Matcher<T>
Overrides:
describeMismatch in class BaseMatcher<T>
+
+
+
Parameters:
item - The item that the Matcher has rejected.
description - The description to be built or appended to.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/HasProperty.html b/javadoc/1.3/org/hamcrest/beans/HasProperty.html new file mode 100644 index 000000000..78503763a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/HasProperty.html @@ -0,0 +1,377 @@ + + + + + + +HasProperty (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.beans +
+Class HasProperty<T>

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

+A Matcher that checks that an object has a JavaBean property + with the specified name. If an error occurs during introspection + of the object then this is treated as a mismatch. +

+ +

+

+
Author:
+
Iain McGinniss, Nat Pryce, Steve Freeman
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
HasProperty(java.lang.String propertyName) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(T item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T>
+
hasProperty(java.lang.String propertyName) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name.
+ booleanmatchesSafely(T obj) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+HasProperty

+
+public HasProperty(java.lang.String propertyName)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(T obj)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<T>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(T item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<T>
+
+
+
+
+
+
+ +

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

+hasProperty

+
+public static <T> Matcher<T> hasProperty(java.lang.String propertyName)
+
+
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name. +

+ For example: +

assertThat(myBean, hasProperty("foo"))
+

+

+
Parameters:
propertyName - the name of the JavaBean property that examined beans should possess
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/HasPropertyWithValue.html b/javadoc/1.3/org/hamcrest/beans/HasPropertyWithValue.html new file mode 100644 index 000000000..d98948cfb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/HasPropertyWithValue.html @@ -0,0 +1,397 @@ + + + + + + +HasPropertyWithValue (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.beans +
+Class HasPropertyWithValue<T>

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

+Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher. This is useful for when objects + are created within code under test and passed to a mock object, and you wish + to assert that the created object has certain properties. +

+

Example Usage

+ Consider the situation where we have a class representing a person, which + follows the basic JavaBean convention of having get() and possibly set() + methods for it's properties: +
+ public class Person {
+   private String name;
+   public Person(String person) {
+     this.person = person;
+   }
+   public String getName() {
+     return name;
+   }
+ }
+ + And that these person objects are generated within a piece of code under test + (a class named PersonGenerator). This object is sent to one of our mock objects + which overrides the PersonGenerationListener interface: +
+ public interface PersonGenerationListener {
+   public void personGenerated(Person person);
+ }
+ + In order to check that the code under test generates a person with name + "Iain" we would do the following: +
+ Mock personGenListenerMock = mock(PersonGenerationListener.class);
+ personGenListenerMock.expects(once()).method("personGenerated").with(and(isA(Person.class), hasProperty("Name", eq("Iain")));
+ PersonGenerationListener listener = (PersonGenerationListener)personGenListenerMock.proxy();
+ + If an exception is thrown by the getter method for a property, the property + does not exist, is not readable, or a reflection related exception is thrown + when trying to invoke it then this is treated as an evaluation failure and + the matches method will return false. +

+ This matcher class will also work with JavaBean objects that have explicit + bean descriptions via an associated BeanInfo description class. See the + JavaBeans specification for more information: +

+ http://java.sun.com/products/javabeans/docs/index.html +

+ +

+

+
Author:
+
Iain McGinniss, Nat Pryce, Steve Freeman
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
HasPropertyWithValue(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T>
+
hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+ booleanmatchesSafely(T bean, + Description mismatch) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+HasPropertyWithValue

+
+public HasPropertyWithValue(java.lang.String propertyName,
+                            Matcher<?> valueMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(T bean,
+                             Description mismatch)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<T>
+
+
+
+
+
+
+ +

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

+hasProperty

+
+public static <T> Matcher<T> hasProperty(java.lang.String propertyName,
+                                         Matcher<?> valueMatcher)
+
+
Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher. +

+ For example: +

assertThat(myBean, hasProperty("foo", equalTo("bar"))
+

+

+
Parameters:
propertyName - the name of the JavaBean property that examined beans should possess
valueMatcher - a matcher for the value of the specified property of the examined bean
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/PropertyUtil.html b/javadoc/1.3/org/hamcrest/beans/PropertyUtil.html new file mode 100644 index 000000000..f59fba1c0 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/PropertyUtil.html @@ -0,0 +1,338 @@ + + + + + + +PropertyUtil (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.beans +
+Class PropertyUtil

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

+Utility class for accessing properties on JavaBean objects. +

+ See http://java.sun.com/products/javabeans/docs/index.html for + more information on JavaBeans. +

+ +

+

+
Since:
+
1.1.0
+
Author:
+
Iain McGinniss, Steve Freeman
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static java.lang.Object[]NO_ARGUMENTS + +
+           
+  + + + + + + + + + + +
+Constructor Summary
PropertyUtil() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static java.beans.PropertyDescriptorgetPropertyDescriptor(java.lang.String propertyName, + java.lang.Object fromObj) + +
+          Returns the description of the property with the provided + name on the provided object's interface.
+static java.beans.PropertyDescriptor[]propertyDescriptorsFor(java.lang.Object fromObj, + java.lang.Class<java.lang.Object> stopClass) + +
+          Returns all the property descriptors for the class associated with the given object
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+NO_ARGUMENTS

+
+public static final java.lang.Object[] NO_ARGUMENTS
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+PropertyUtil

+
+public PropertyUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getPropertyDescriptor

+
+public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName,
+                                                                  java.lang.Object fromObj)
+                                                           throws java.lang.IllegalArgumentException
+
+
Returns the description of the property with the provided + name on the provided object's interface. +

+

+ +
Returns:
the descriptor of the property, or null if the property does not exist. +
Throws: +
java.lang.IllegalArgumentException - if there's a introspection failure
+
+
+
+ +

+propertyDescriptorsFor

+
+public static java.beans.PropertyDescriptor[] propertyDescriptorsFor(java.lang.Object fromObj,
+                                                                     java.lang.Class<java.lang.Object> stopClass)
+                                                              throws java.lang.IllegalArgumentException
+
+
Returns all the property descriptors for the class associated with the given object +

+

+
Parameters:
fromObj - Use the class of this object
stopClass - Don't include any properties from this ancestor class upwards. +
Returns:
Property descriptors +
Throws: +
java.lang.IllegalArgumentException - if there's a introspection failure
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.PropertyMatcher.html b/javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.PropertyMatcher.html new file mode 100644 index 000000000..231633961 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.PropertyMatcher.html @@ -0,0 +1,309 @@ + + + + + + +SamePropertyValuesAs.PropertyMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.beans +
+Class SamePropertyValuesAs.PropertyMatcher

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.DiagnosingMatcher<java.lang.Object>
+          extended by org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Object>, SelfDescribing
+
+
+
Enclosing class:
SamePropertyValuesAs<T>
+
+
+
+
public static class SamePropertyValuesAs.PropertyMatcher
extends DiagnosingMatcher<java.lang.Object>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
SamePropertyValuesAs.PropertyMatcher(java.beans.PropertyDescriptor descriptor, + java.lang.Object expectedObject) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(java.lang.Object actual, + Description mismatch) + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.DiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+SamePropertyValuesAs.PropertyMatcher

+
+public SamePropertyValuesAs.PropertyMatcher(java.beans.PropertyDescriptor descriptor,
+                                            java.lang.Object expectedObject)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.Object actual,
+                       Description mismatch)
+
+
+
Specified by:
matches in class DiagnosingMatcher<java.lang.Object>
+
+
+
+
+
+
+ +

+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.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.html b/javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.html new file mode 100644 index 000000000..616aa082a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/SamePropertyValuesAs.html @@ -0,0 +1,360 @@ + + + + + + +SamePropertyValuesAs (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.beans +
+Class SamePropertyValuesAs<T>

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

+


+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classSamePropertyValuesAs.PropertyMatcher + +
+           
+  + + + + + + + + + + +
+Constructor Summary
SamePropertyValuesAs(T expectedBean) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(T bean, + Description mismatch) + +
+          Subclasses should implement this.
+static + + + + +
+<T> Matcher<T>
+
samePropertyValuesAs(T expectedBean) + +
+          Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+SamePropertyValuesAs

+
+public SamePropertyValuesAs(T expectedBean)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(T bean,
+                             Description mismatch)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<T>
+
+
+
+
+
+
+ +

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

+samePropertyValuesAs

+
+public static <T> Matcher<T> samePropertyValuesAs(T expectedBean)
+
+
Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean. +

+ For example: +

assertThat(myBean, samePropertyValuesAs(myExpectedBean))
+

+

+
Parameters:
expectedBean - the bean against which examined beans are compared
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/class-use/HasProperty.html b/javadoc/1.3/org/hamcrest/beans/class-use/HasProperty.html new file mode 100644 index 000000000..0af2be894 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/class-use/HasProperty.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.beans.HasProperty (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.beans.HasProperty

+
+No usage of org.hamcrest.beans.HasProperty +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/class-use/HasPropertyWithValue.html b/javadoc/1.3/org/hamcrest/beans/class-use/HasPropertyWithValue.html new file mode 100644 index 000000000..1e7b6283e --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/class-use/HasPropertyWithValue.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.beans.HasPropertyWithValue (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.beans.HasPropertyWithValue

+
+No usage of org.hamcrest.beans.HasPropertyWithValue +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/class-use/PropertyUtil.html b/javadoc/1.3/org/hamcrest/beans/class-use/PropertyUtil.html new file mode 100644 index 000000000..91aa26185 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/class-use/PropertyUtil.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.beans.PropertyUtil (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.beans.PropertyUtil

+
+No usage of org.hamcrest.beans.PropertyUtil +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.PropertyMatcher.html b/javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.PropertyMatcher.html new file mode 100644 index 000000000..d1dbe44fb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.PropertyMatcher.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher

+
+No usage of org.hamcrest.beans.SamePropertyValuesAs.PropertyMatcher +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.html b/javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.html new file mode 100644 index 000000000..7e7024f4a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/class-use/SamePropertyValuesAs.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.beans.SamePropertyValuesAs (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.beans.SamePropertyValuesAs

+
+No usage of org.hamcrest.beans.SamePropertyValuesAs +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/package-frame.html b/javadoc/1.3/org/hamcrest/beans/package-frame.html new file mode 100644 index 000000000..46a7f3017 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/package-frame.html @@ -0,0 +1,40 @@ + + + + + + +org.hamcrest.beans (Hamcrest) + + + + + + + + + + + +org.hamcrest.beans + + + + +
+Classes  + +
+HasProperty +
+HasPropertyWithValue +
+PropertyUtil +
+SamePropertyValuesAs +
+SamePropertyValuesAs.PropertyMatcher
+ + + + diff --git a/javadoc/1.3/org/hamcrest/beans/package-summary.html b/javadoc/1.3/org/hamcrest/beans/package-summary.html new file mode 100644 index 000000000..acee4529a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/package-summary.html @@ -0,0 +1,190 @@ + + + + + + +org.hamcrest.beans (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.beans +

+Matchers of Java Bean properties and their values. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
HasProperty<T>A Matcher that checks that an object has a JavaBean property + with the specified name.
HasPropertyWithValue<T>Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher.
PropertyUtilUtility class for accessing properties on JavaBean objects.
SamePropertyValuesAs<T> 
SamePropertyValuesAs.PropertyMatcher 
+  + +

+

+Package org.hamcrest.beans Description +

+ +

+

Matchers of Java Bean properties and their values.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/package-tree.html b/javadoc/1.3/org/hamcrest/beans/package-tree.html new file mode 100644 index 000000000..b8cc49268 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +org.hamcrest.beans Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.beans +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/beans/package-use.html b/javadoc/1.3/org/hamcrest/beans/package-use.html new file mode 100644 index 000000000..31c98554a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/beans/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.hamcrest.beans (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.beans

+
+No usage of org.hamcrest.beans +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/BaseDescription.html b/javadoc/1.3/org/hamcrest/class-use/BaseDescription.html new file mode 100644 index 000000000..1d5ebded6 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/BaseDescription.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class org.hamcrest.BaseDescription (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.BaseDescription

+
+ + + + + + + + + +
+Packages that use BaseDescription
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
+  +

+ + + + + +
+Uses of BaseDescription in org.hamcrest
+  +

+ + + + + + + + + +
Subclasses of BaseDescription in org.hamcrest
+ classStringDescription + +
+          A Description that is stored as a string.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/BaseMatcher.html b/javadoc/1.3/org/hamcrest/class-use/BaseMatcher.html new file mode 100644 index 000000000..b1a92bad5 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/BaseMatcher.html @@ -0,0 +1,733 @@ + + + + + + +Uses of Class org.hamcrest.BaseMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.BaseMatcher

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use BaseMatcher
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest
+ classCustomMatcher<T> + +
+          Utility class for writing one off matchers.
+ classCustomTypeSafeMatcher<T> + +
+          Utility class for writing one off matchers.
+ classDiagnosingMatcher<T> + +
+          TODO(ngd): Document.
+ classFeatureMatcher<T,U> + +
+          Supporting class for matching a feature of an object.
+ classTypeSafeDiagnosingMatcher<T> + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
+ classTypeSafeMatcher<T> + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.beans
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.beans
+ classHasProperty<T> + +
+          A Matcher that checks that an object has a JavaBean property + with the specified name.
+ classHasPropertyWithValue<T> + +
+          Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher.
+ classSamePropertyValuesAs<T> + +
+           
+static classSamePropertyValuesAs.PropertyMatcher + +
+           
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.collection
+ classIsArray<T> + +
+          Matcher for array whose elements satisfy a sequence of matchers.
+ classIsArrayContaining<T> + +
+          Matches if an array contains an item satisfying a nested matcher.
+ classIsArrayContainingInAnyOrder<E> + +
+           
+ classIsArrayContainingInOrder<E> + +
+           
+ classIsArrayWithSize<E> + +
+          Matches if array size satisfies a nested matcher.
+ classIsCollectionWithSize<E> + +
+          Matches if collection size satisfies a nested matcher.
+ classIsEmptyCollection<E> + +
+          Tests if collection is empty.
+ classIsEmptyIterable<E> + +
+          Tests if collection is empty.
+ classIsIn<T> + +
+           
+ classIsIterableContainingInAnyOrder<T> + +
+           
+ classIsIterableContainingInOrder<E> + +
+           
+ classIsIterableWithSize<E> + +
+           
+ classIsMapContaining<K,V> + +
+           
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.core
+ classAllOf<T> + +
+          Calculates the logical conjunction of multiple matchers.
+ classAnyOf<T> + +
+          Calculates the logical disjunction of multiple matchers.
+ classCombinableMatcher<T> + +
+           
+ classDescribedAs<T> + +
+          Provides a custom description to another matcher.
+ classEvery<T> + +
+           
+ classIs<T> + +
+          Decorates another Matcher, retaining the behaviour but allowing tests + to be slightly more expressive.
+ classIsAnything<T> + +
+          A matcher that always returns true.
+ classIsCollectionContaining<T> + +
+           
+ classIsEqual<T> + +
+          Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod?
+ classIsInstanceOf + +
+          Tests whether the value is an instance of a class.
+ classIsNot<T> + +
+          Calculates the logical negation of a matcher.
+ classIsNull<T> + +
+          Is the value null?
+ classIsSame<T> + +
+          Is the value the same object as another value?
+ classStringContains + +
+          Tests if the argument is a string that contains a substring.
+ classStringEndsWith + +
+          Tests if the argument is a string that contains a substring.
+ classStringStartsWith + +
+          Tests if the argument is a string that contains a substring.
+ classSubstringMatcher + +
+           
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.number
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.number
+ classBigDecimalCloseTo + +
+           
+ classIsCloseTo + +
+          Is the value a number equal to a value within some range of + acceptable error?
+ classOrderingComparison<T extends Comparable<T>> + +
+           
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.object
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.object
+ classHasToString<T> + +
+           
+ classIsCompatibleType<T> + +
+           
+ classIsEventFrom + +
+          Tests if the value is an event announced by a specific object.
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.text
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.text
+ classIsEmptyString + +
+          Matches empty Strings (and null).
+ classIsEqualIgnoringCase + +
+          Tests if a string is equal to another string, regardless of the case.
+ classIsEqualIgnoringWhiteSpace + +
+          Tests if a string is equal to another string, ignoring any changes in whitespace.
+ classStringContainsInOrder + +
+           
+  +

+ + + + + +
+Uses of BaseMatcher in org.hamcrest.xml
+  +

+ + + + + + + + + +
Subclasses of BaseMatcher in org.hamcrest.xml
+ classHasXPath + +
+          Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Condition.Step.html b/javadoc/1.3/org/hamcrest/class-use/Condition.Step.html new file mode 100644 index 000000000..ae10e7b03 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Condition.Step.html @@ -0,0 +1,202 @@ + + + + + + +Uses of Interface org.hamcrest.Condition.Step (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.hamcrest.Condition.Step

+
+ + + + + + + + + +
+Packages that use Condition.Step
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
+  +

+ + + + + +
+Uses of Condition.Step in org.hamcrest
+  +

+ + + + + + + + + + + + + +
Methods in org.hamcrest with parameters of type Condition.Step
+abstract + + + + +
+<U> Condition<U>
+
Condition.and(Condition.Step<? super T,U> mapping) + +
+           
+ + + + + +
+<U> Condition<U>
+
Condition.then(Condition.Step<? super T,U> mapping) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Condition.html b/javadoc/1.3/org/hamcrest/class-use/Condition.html new file mode 100644 index 000000000..9b35546c8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Condition.html @@ -0,0 +1,242 @@ + + + + + + +Uses of Class org.hamcrest.Condition (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.Condition

+
+ + + + + + + + + +
+Packages that use Condition
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
+  +

+ + + + + +
+Uses of Condition in org.hamcrest
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest that return Condition
+abstract + + + + +
+<U> Condition<U>
+
Condition.and(Condition.Step<? super T,U> mapping) + +
+           
+ Condition<O>Condition.Step.apply(I value, + Description mismatch) + +
+           
+static + + + + +
+<T> Condition<T>
+
Condition.matched(T theValue, + Description mismatch) + +
+           
+static + + + + +
+<T> Condition<T>
+
Condition.notMatched() + +
+           
+ + + + + +
+<U> Condition<U>
+
Condition.then(Condition.Step<? super T,U> mapping) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/CoreMatchers.html b/javadoc/1.3/org/hamcrest/class-use/CoreMatchers.html new file mode 100644 index 000000000..4c3d84f9f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/CoreMatchers.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.CoreMatchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.CoreMatchers

+
+No usage of org.hamcrest.CoreMatchers +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/CustomMatcher.html b/javadoc/1.3/org/hamcrest/class-use/CustomMatcher.html new file mode 100644 index 000000000..905c7cb43 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/CustomMatcher.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.CustomMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.CustomMatcher

+
+No usage of org.hamcrest.CustomMatcher +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/CustomTypeSafeMatcher.html b/javadoc/1.3/org/hamcrest/class-use/CustomTypeSafeMatcher.html new file mode 100644 index 000000000..a854d9b50 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/CustomTypeSafeMatcher.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.CustomTypeSafeMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.CustomTypeSafeMatcher

+
+No usage of org.hamcrest.CustomTypeSafeMatcher +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Description.NullDescription.html b/javadoc/1.3/org/hamcrest/class-use/Description.NullDescription.html new file mode 100644 index 000000000..b67d1debf --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Description.NullDescription.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.Description.NullDescription (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.Description.NullDescription

+
+No usage of org.hamcrest.Description.NullDescription +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Description.html b/javadoc/1.3/org/hamcrest/class-use/Description.html new file mode 100644 index 000000000..c405c28a0 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Description.html @@ -0,0 +1,1330 @@ + + + + + + +Uses of Interface org.hamcrest.Description (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.hamcrest.Description

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Description
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.internal  
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + +
+Uses of Description in org.hamcrest
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.hamcrest that implement Description
+ classBaseDescription + +
+          A Description that is stored as a string.
+static classDescription.NullDescription + +
+           
+ classStringDescription + +
+          A Description that is stored as a string.
+  +

+ + + + + + + + + +
Fields in org.hamcrest declared as Description
+static DescriptionDescription.NONE + +
+          A description that consumes input but does nothing.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest that return Description
+ DescriptionDescription.appendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionDescription.NullDescription.appendDescriptionOf(SelfDescribing value) + +
+           
+ DescriptionBaseDescription.appendDescriptionOf(SelfDescribing value) + +
+           
+ DescriptionDescription.appendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionDescription.NullDescription.appendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+           
+ DescriptionBaseDescription.appendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+           
+ DescriptionDescription.appendText(java.lang.String text) + +
+          Appends some plain text to the description.
+ DescriptionDescription.NullDescription.appendText(java.lang.String text) + +
+           
+ DescriptionBaseDescription.appendText(java.lang.String text) + +
+           
+ DescriptionDescription.appendValue(java.lang.Object value) + +
+          Appends an arbitary value to the description.
+ DescriptionDescription.NullDescription.appendValue(java.lang.Object value) + +
+           
+ DescriptionBaseDescription.appendValue(java.lang.Object value) + +
+           
+ + + + + +
+<T> Description
+
Description.appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<T> values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
Description.NullDescription.appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<T> values) + +
+           
+ + + + + +
+<T> Description
+
BaseDescription.appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<T> values) + +
+           
+ + + + + +
+<T> Description
+
Description.appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + T... values) + +
+          Appends a list of values to the description.
+ + + + + +
+<T> Description
+
Description.NullDescription.appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + T... values) + +
+           
+ + + + + +
+<T> Description
+
BaseDescription.appendValueList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + T... values) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest with parameters of type Description
+ Condition<O>Condition.Step.apply(I value, + Description mismatch) + +
+           
+ voidTypeSafeMatcher.describeMismatch(java.lang.Object item, + Description description) + +
+           
+ voidTypeSafeDiagnosingMatcher.describeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+           
+ voidMatcher.describeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+          Generate a description of why the matcher has not accepted the item.
+ voidDiagnosingMatcher.describeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+           
+ voidBaseMatcher.describeMismatch(java.lang.Object item, + Description description) + +
+           
+protected  voidTypeSafeMatcher.describeMismatchSafely(T item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voidSelfDescribing.describeTo(Description description) + +
+          Generates a description of the object.
+ voidFeatureMatcher.describeTo(Description description) + +
+           
+ voidCustomTypeSafeMatcher.describeTo(Description description) + +
+           
+ voidCustomMatcher.describeTo(Description description) + +
+           
+static + + + + +
+<T> Condition<T>
+
Condition.matched(T theValue, + Description mismatch) + +
+           
+protected abstract  booleanDiagnosingMatcher.matches(java.lang.Object item, + Description mismatchDescription) + +
+           
+protected abstract  booleanTypeSafeDiagnosingMatcher.matchesSafely(T item, + Description mismatchDescription) + +
+          Subclasses should implement this.
+protected  booleanFeatureMatcher.matchesSafely(T actual, + Description mismatch) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.beans
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.beans with parameters of type Description
+ voidHasProperty.describeMismatchSafely(T item, + Description mismatchDescription) + +
+           
+ voidSamePropertyValuesAs.describeTo(Description description) + +
+           
+ voidSamePropertyValuesAs.PropertyMatcher.describeTo(Description description) + +
+           
+ voidHasPropertyWithValue.describeTo(Description description) + +
+           
+ voidHasProperty.describeTo(Description description) + +
+           
+ booleanSamePropertyValuesAs.PropertyMatcher.matches(java.lang.Object actual, + Description mismatch) + +
+           
+ booleanSamePropertyValuesAs.matchesSafely(T bean, + Description mismatch) + +
+           
+ booleanHasPropertyWithValue.matchesSafely(T bean, + Description mismatch) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.collection with parameters of type Description
+ voidIsEmptyCollection.describeMismatchSafely(java.util.Collection<? extends E> item, + Description mismatchDescription) + +
+           
+ voidIsArrayContainingInOrder.describeMismatchSafely(E[] item, + Description mismatchDescription) + +
+           
+ voidIsArrayContainingInAnyOrder.describeMismatchSafely(E[] item, + Description mismatchDescription) + +
+           
+ voidIsEmptyIterable.describeMismatchSafely(java.lang.Iterable<? extends E> iter, + Description mismatchDescription) + +
+           
+ voidIsMapContaining.describeMismatchSafely(java.util.Map<? extends K,? extends V> map, + Description mismatchDescription) + +
+           
+ voidIsArrayContaining.describeMismatchSafely(T[] item, + Description mismatchDescription) + +
+           
+ voidIsArray.describeMismatchSafely(T[] actual, + Description mismatchDescription) + +
+           
+ voidIsMapContaining.describeTo(Description description) + +
+           
+ voidIsIterableContainingInOrder.describeTo(Description description) + +
+           
+ voidIsIterableContainingInAnyOrder.describeTo(Description description) + +
+           
+ voidIsIn.describeTo(Description buffer) + +
+           
+ voidIsEmptyIterable.describeTo(Description description) + +
+           
+ voidIsEmptyCollection.describeTo(Description description) + +
+           
+ voidIsArrayContainingInOrder.describeTo(Description description) + +
+           
+ voidIsArrayContainingInAnyOrder.describeTo(Description description) + +
+           
+ voidIsArrayContaining.describeTo(Description description) + +
+           
+ voidIsArray.describeTo(Description description) + +
+           
+protected  booleanIsIterableContainingInOrder.matchesSafely(java.lang.Iterable<? extends E> iterable, + Description mismatchDescription) + +
+           
+protected  booleanIsIterableContainingInAnyOrder.matchesSafely(java.lang.Iterable<? extends T> items, + Description mismatchDescription) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.core with parameters of type Description
+ voidIs.describeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+           
+ voidDescribedAs.describeMismatch(java.lang.Object item, + Description description) + +
+           
+ voidSubstringMatcher.describeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+           
+ voidSubstringMatcher.describeTo(Description description) + +
+           
+ voidIsSame.describeTo(Description description) + +
+           
+ voidIsNull.describeTo(Description description) + +
+           
+ voidIsNot.describeTo(Description description) + +
+           
+ voidIsInstanceOf.describeTo(Description description) + +
+           
+ voidIsEqual.describeTo(Description description) + +
+           
+ voidIsCollectionContaining.describeTo(Description description) + +
+           
+ voidIsAnything.describeTo(Description description) + +
+           
+ voidIs.describeTo(Description description) + +
+           
+ voidEvery.describeTo(Description description) + +
+           
+ voidDescribedAs.describeTo(Description description) + +
+           
+ voidCombinableMatcher.describeTo(Description description) + +
+           
+ voidAnyOf.describeTo(Description description) + +
+           
+ voidAllOf.describeTo(Description description) + +
+           
+protected  booleanIsInstanceOf.matches(java.lang.Object item, + Description mismatch) + +
+           
+ booleanAllOf.matches(java.lang.Object o, + Description mismatch) + +
+           
+protected  booleanIsCollectionContaining.matchesSafely(java.lang.Iterable<? super T> collection, + Description mismatchDescription) + +
+           
+ booleanEvery.matchesSafely(java.lang.Iterable<T> collection, + Description mismatchDescription) + +
+           
+protected  booleanCombinableMatcher.matchesSafely(T item, + Description mismatch) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.internal
+  +

+ + + + + + + + + +
Methods in org.hamcrest.internal with parameters of type Description
+ voidSelfDescribingValue.describeTo(Description description) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.number
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.number with parameters of type Description
+ voidBigDecimalCloseTo.describeMismatchSafely(java.math.BigDecimal item, + Description mismatchDescription) + +
+           
+ voidIsCloseTo.describeMismatchSafely(java.lang.Double item, + Description mismatchDescription) + +
+           
+ voidOrderingComparison.describeMismatchSafely(T actual, + Description mismatchDescription) + +
+           
+ voidOrderingComparison.describeTo(Description description) + +
+           
+ voidIsCloseTo.describeTo(Description description) + +
+           
+ voidBigDecimalCloseTo.describeTo(Description description) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.object
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.object with parameters of type Description
+ voidIsCompatibleType.describeMismatchSafely(java.lang.Class<?> cls, + Description mismatchDescription) + +
+           
+ voidIsEventFrom.describeTo(Description description) + +
+           
+ voidIsCompatibleType.describeTo(Description description) + +
+           
+ booleanIsEventFrom.matchesSafely(java.util.EventObject item, + Description mismatchDescription) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.text
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.text with parameters of type Description
+ voidStringContainsInOrder.describeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+           
+ voidIsEqualIgnoringWhiteSpace.describeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+           
+ voidIsEqualIgnoringCase.describeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+           
+ voidStringContainsInOrder.describeTo(Description description) + +
+           
+ voidIsEqualIgnoringWhiteSpace.describeTo(Description description) + +
+           
+ voidIsEqualIgnoringCase.describeTo(Description description) + +
+           
+ voidIsEmptyString.describeTo(Description description) + +
+           
+  +

+ + + + + +
+Uses of Description in org.hamcrest.xml
+  +

+ + + + + + + + + + + + + +
Methods in org.hamcrest.xml with parameters of type Description
+ voidHasXPath.describeTo(Description description) + +
+           
+ booleanHasXPath.matchesSafely(org.w3c.dom.Node item, + Description mismatch) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/DiagnosingMatcher.html b/javadoc/1.3/org/hamcrest/class-use/DiagnosingMatcher.html new file mode 100644 index 000000000..d14aa9d5a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/DiagnosingMatcher.html @@ -0,0 +1,217 @@ + + + + + + +Uses of Class org.hamcrest.DiagnosingMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.DiagnosingMatcher

+
+ + + + + + + + + + + + + +
+Packages that use DiagnosingMatcher
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + +
+Uses of DiagnosingMatcher in org.hamcrest.beans
+  +

+ + + + + + + + + +
Subclasses of DiagnosingMatcher in org.hamcrest.beans
+static classSamePropertyValuesAs.PropertyMatcher + +
+           
+  +

+ + + + + +
+Uses of DiagnosingMatcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + +
Subclasses of DiagnosingMatcher in org.hamcrest.core
+ classAllOf<T> + +
+          Calculates the logical conjunction of multiple matchers.
+ classIsInstanceOf + +
+          Tests whether the value is an instance of a class.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/EasyMock2Matchers.html b/javadoc/1.3/org/hamcrest/class-use/EasyMock2Matchers.html new file mode 100644 index 000000000..fe5291dec --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/EasyMock2Matchers.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.EasyMock2Matchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.EasyMock2Matchers

+
+No usage of org.hamcrest.EasyMock2Matchers +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Factory.html b/javadoc/1.3/org/hamcrest/class-use/Factory.html new file mode 100644 index 000000000..6a6b0002c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Factory.html @@ -0,0 +1,1851 @@ + + + + + + +Uses of Class org.hamcrest.Factory (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.Factory

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Factory
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.beans
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.beans with annotations of type Factory
+static + + + + +
+<T> Matcher<T>
+
HasProperty.hasProperty(java.lang.String propertyName) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name.
+static + + + + +
+<T> Matcher<T>
+
HasPropertyWithValue.hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
SamePropertyValuesAs.samePropertyValuesAs(T expectedBean) + +
+          Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean.
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.collection with annotations of type Factory
+static + + + + +
+<T> IsArray<T>
+
IsArray.array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(E... items) + +
+          Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(E... items) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.arrayWithSize(int size) + +
+          Creates a matcher for arrays that matches when the length of the array + equals the specified size.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(E... items) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(T... items) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsEmptyCollection.empty() + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.emptyArray() + +
+          Creates a matcher for arrays that matches when the length of the array + is zero.
+static + + + + +
+<E> Matcher<java.util.Collection<E>>
+
IsEmptyCollection.emptyCollectionOf(java.lang.Class<E> type) + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsEmptyIterable.emptyIterable() + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsEmptyIterable.emptyIterableOf(java.lang.Class<E> type) + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
IsMapContaining.hasEntry(K key, + V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
IsMapContaining.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
IsArrayContaining.hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
IsArrayContaining.hasItemInArray(T element) + +
+          A shortcut to the frequently used hasItemInArray(equalTo(x)).
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
IsMapContaining.hasKey(K key) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
IsMapContaining.hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsCollectionWithSize.hasSize(int size) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsCollectionWithSize.hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
IsMapContaining.hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
IsMapContaining.hasValue(V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value.
+static + + + + +
+<T> Matcher<T>
+
IsIn.isIn(java.util.Collection<T> collection) + +
+          Creates a matcher that matches when the examined object is found within the + specified collection.
+static + + + + +
+<T> Matcher<T>
+
IsIn.isIn(T[] elements) + +
+          Creates a matcher that matches when the examined object is found within the + specified array.
+static + + + + +
+<T> Matcher<T>
+
IsIn.isOneOf(T... elements) + +
+          Creates a matcher that matches when the examined object is equal to one of the + specified elements.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsIterableWithSize.iterableWithSize(int size) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsIterableWithSize.iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.core with annotations of type Factory
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
IsInstanceOf.any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static Matcher<java.lang.Object>IsAnything.anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>IsAnything.anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
CombinableMatcher.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static Matcher<java.lang.String>StringContains.containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+static + + + + +
+<T> Matcher<T>
+
DescribedAs.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
CombinableMatcher.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static Matcher<java.lang.String>StringEndsWith.endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
IsEqual.equalTo(T operand) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
Every.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
IsCollectionContaining.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
IsCollectionContaining.hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
IsCollectionContaining.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
IsCollectionContaining.hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+static + + + + +
+<T> Matcher<T>
+
IsInstanceOf.instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
Is.is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
Is.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
Is.is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
Is.isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static + + + + +
+<T> Matcher<T>
+
IsNot.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
IsNot.not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+static Matcher<java.lang.Object>IsNull.notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static + + + + +
+<T> Matcher<T>
+
IsNull.notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static Matcher<java.lang.Object>IsNull.nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
IsNull.nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
IsSame.sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static Matcher<java.lang.String>StringStartsWith.startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
IsSame.theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.number
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.number with annotations of type Factory
+static Matcher<java.math.BigDecimal>BigDecimalCloseTo.closeTo(java.math.BigDecimal operand, + java.math.BigDecimal error) + +
+          Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error.
+static Matcher<java.lang.Double>IsCloseTo.closeTo(double operand, + double error) + +
+          Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.comparesEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.greaterThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.greaterThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.lessThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.lessThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object.
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.object
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.object with annotations of type Factory
+static Matcher<java.util.EventObject>IsEventFrom.eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass, + java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any object + derived from eventClass announced by source.
+static Matcher<java.util.EventObject>IsEventFrom.eventFrom(java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any EventObject + announced by source.
+static + + + + +
+<T> Matcher<T>
+
HasToString.hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
HasToString.hasToString(java.lang.String expectedToString) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string.
+static + + + + +
+<T> Matcher<java.lang.Class<?>>
+
IsCompatibleType.typeCompatibleWith(java.lang.Class<T> baseType) + +
+          Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class.
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.text
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.text with annotations of type Factory
+static Matcher<java.lang.String>IsEqualIgnoringCase.equalToIgnoringCase(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case.
+static Matcher<java.lang.String>IsEqualIgnoringWhiteSpace.equalToIgnoringWhiteSpace(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored.
+static Matcher<java.lang.String>IsEmptyString.isEmptyOrNullString() + +
+          Creates a matcher of String that matches when the examined string is null, or + has zero length.
+static Matcher<java.lang.String>IsEmptyString.isEmptyString() + +
+          Creates a matcher of String that matches when the examined string has zero length.
+static Matcher<java.lang.String>StringContainsInOrder.stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings) + +
+          Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance.
+  +

+ + + + + +
+Uses of Factory in org.hamcrest.xml
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.xml with annotations of type Factory
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/FeatureMatcher.html b/javadoc/1.3/org/hamcrest/class-use/FeatureMatcher.html new file mode 100644 index 000000000..0dd3606ab --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/FeatureMatcher.html @@ -0,0 +1,225 @@ + + + + + + +Uses of Class org.hamcrest.FeatureMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.FeatureMatcher

+
+ + + + + + + + + + + + + +
+Packages that use FeatureMatcher
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.objectMatchers that inspect objects and classes. 
+  +

+ + + + + +
+Uses of FeatureMatcher in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of FeatureMatcher in org.hamcrest.collection
+ classIsArrayWithSize<E> + +
+          Matches if array size satisfies a nested matcher.
+ classIsCollectionWithSize<E> + +
+          Matches if collection size satisfies a nested matcher.
+ classIsIterableWithSize<E> + +
+           
+  +

+ + + + + +
+Uses of FeatureMatcher in org.hamcrest.object
+  +

+ + + + + + + + + +
Subclasses of FeatureMatcher in org.hamcrest.object
+ classHasToString<T> + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/JMock1Matchers.html b/javadoc/1.3/org/hamcrest/class-use/JMock1Matchers.html new file mode 100644 index 000000000..6a97465d5 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/JMock1Matchers.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.JMock1Matchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.JMock1Matchers

+
+No usage of org.hamcrest.JMock1Matchers +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/JavaLangMatcherAssert.html b/javadoc/1.3/org/hamcrest/class-use/JavaLangMatcherAssert.html new file mode 100644 index 000000000..e7a913171 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/JavaLangMatcherAssert.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.JavaLangMatcherAssert (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.JavaLangMatcherAssert

+
+No usage of org.hamcrest.JavaLangMatcherAssert +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Matcher.html b/javadoc/1.3/org/hamcrest/class-use/Matcher.html new file mode 100644 index 000000000..d5012c304 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Matcher.html @@ -0,0 +1,8051 @@ + + + + + + +Uses of Interface org.hamcrest.Matcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.hamcrest.Matcher

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use Matcher
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.integration  
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest that implement Matcher
+ classBaseMatcher<T> + +
+          BaseClass for all Matcher implementations.
+ classCustomMatcher<T> + +
+          Utility class for writing one off matchers.
+ classCustomTypeSafeMatcher<T> + +
+          Utility class for writing one off matchers.
+ classDiagnosingMatcher<T> + +
+          TODO(ngd): Document.
+ classFeatureMatcher<T,U> + +
+          Supporting class for matching a feature of an object.
+ classTypeSafeDiagnosingMatcher<T> + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
+ classTypeSafeMatcher<T> + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest that return Matcher
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static Matcher<java.lang.Object>Matchers.anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>CoreMatchers.anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>Matchers.anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+static Matcher<java.lang.Object>CoreMatchers.anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContaining(E... items) + +
+          Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContainingInAnyOrder(E... items) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayWithSize(int size) + +
+          Creates a matcher for arrays that matches when the length of the array + equals the specified size.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static Matcher<java.math.BigDecimal>Matchers.closeTo(java.math.BigDecimal operand, + java.math.BigDecimal error) + +
+          Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error.
+static Matcher<java.lang.Double>Matchers.closeTo(double operand, + double error) + +
+          Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
Matchers.comparesEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(E... items) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
Matchers.containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
Matchers.containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
Matchers.containsInAnyOrder(T... items) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items.
+static Matcher<java.lang.String>Matchers.containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+static Matcher<java.lang.String>CoreMatchers.containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+static + + + + +
+<T> Matcher<T>
+
Matchers.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
Matchers.empty() + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.emptyArray() + +
+          Creates a matcher for arrays that matches when the length of the array + is zero.
+static + + + + +
+<E> Matcher<java.util.Collection<E>>
+
Matchers.emptyCollectionOf(java.lang.Class<E> type) + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.emptyIterable() + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
Matchers.emptyIterableOf(java.lang.Class<E> type) + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static Matcher<java.lang.String>Matchers.endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+static Matcher<java.lang.String>CoreMatchers.endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
Matchers.equalTo(T operand) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.equalTo(T operand) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+static Matcher<java.lang.String>Matchers.equalToIgnoringCase(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case.
+static Matcher<java.lang.String>Matchers.equalToIgnoringWhiteSpace(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored.
+static Matcher<java.util.EventObject>Matchers.eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass, + java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any object + derived from eventClass announced by source.
+static Matcher<java.util.EventObject>Matchers.eventFrom(java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any EventObject + announced by source.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
Matchers.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
CoreMatchers.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
Matchers.greaterThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
Matchers.greaterThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
Matchers.hasEntry(K key, + V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
Matchers.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
Matchers.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
CoreMatchers.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
Matchers.hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
CoreMatchers.hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<T[]>
+
Matchers.hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
Matchers.hasItemInArray(T element) + +
+          A shortcut to the frequently used hasItemInArray(equalTo(x)).
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
Matchers.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
CoreMatchers.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
Matchers.hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
CoreMatchers.hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
Matchers.hasKey(K key) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
Matchers.hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.hasProperty(java.lang.String propertyName) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name.
+static + + + + +
+<T> Matcher<T>
+
Matchers.hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
Matchers.hasSize(int size) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
Matchers.hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.hasToString(java.lang.String expectedToString) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
Matchers.hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
Matchers.hasValue(V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value.
+static Matcher<org.w3c.dom.Node>Matchers.hasXPath(java.lang.String xPath) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content.
+static Matcher<org.w3c.dom.Node>Matchers.hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>Matchers.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content.
+static Matcher<org.w3c.dom.Node>Matchers.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
Matchers.is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
Matchers.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
Matchers.is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
Matchers.isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static Matcher<java.lang.String>Matchers.isEmptyOrNullString() + +
+          Creates a matcher of String that matches when the examined string is null, or + has zero length.
+static Matcher<java.lang.String>Matchers.isEmptyString() + +
+          Creates a matcher of String that matches when the examined string has zero length.
+static + + + + +
+<T> Matcher<T>
+
Matchers.isIn(java.util.Collection<T> collection) + +
+          Creates a matcher that matches when the examined object is found within the + specified collection.
+static + + + + +
+<T> Matcher<T>
+
Matchers.isIn(T[] param1) + +
+           
+static + + + + +
+<T> Matcher<T>
+
Matchers.isOneOf(T... elements) + +
+          Creates a matcher that matches when the examined object is equal to one of the + specified elements.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
Matchers.iterableWithSize(int size) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
Matchers.iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
Matchers.lessThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
Matchers.lessThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<T> Matcher<T>
+
Matchers.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
Matchers.not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+static Matcher<java.lang.Object>Matchers.notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static Matcher<java.lang.Object>CoreMatchers.notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static + + + + +
+<T> Matcher<T>
+
Matchers.notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static Matcher<java.lang.Object>Matchers.nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static Matcher<java.lang.Object>CoreMatchers.nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
Matchers.nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
Matchers.sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<T>
+
Matchers.samePropertyValuesAs(T expectedBean) + +
+          Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean.
+static Matcher<java.lang.String>Matchers.startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+static Matcher<java.lang.String>CoreMatchers.startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+static Matcher<java.lang.String>Matchers.stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings) + +
+          Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance.
+static + + + + +
+<T> Matcher<T>
+
Matchers.theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<java.lang.Class<?>>
+
Matchers.typeCompatibleWith(java.lang.Class<T> baseType) + +
+          Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest with parameters of type Matcher
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> IsArray<T>
+
Matchers.array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static + + + + +
+<T> void
+
MatcherAssert.assertThat(java.lang.String reason, + T actual, + Matcher<? super T> matcher) + +
+           
+static + + + + +
+<T> void
+
MatcherAssert.assertThat(T actual, + Matcher<? super T> matcher) + +
+           
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
Matchers.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
CoreMatchers.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
Matchers.containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
Matchers.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
Matchers.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
CoreMatchers.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
Matchers.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
CoreMatchers.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
Matchers.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
Matchers.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
Matchers.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
CoreMatchers.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
Matchers.hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
Matchers.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
CoreMatchers.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
Matchers.hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
Matchers.hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
Matchers.hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>Matchers.hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>Matchers.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+static + + + + +
+<T> Matcher<T>
+
Matchers.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
Matchers.iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+ booleanCondition.matching(Matcher<T> match) + +
+           
+abstract  booleanCondition.matching(Matcher<T> match, + java.lang.String message) + +
+           
+static + + + + +
+<T> Matcher<T>
+
Matchers.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> boolean
+
JavaLangMatcherAssert.that(T argument, + Matcher<? super T> matcher) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Method parameters in org.hamcrest with type arguments of type Matcher
+static + + + + +
+<T> Matcher<T>
+
Matchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
CoreMatchers.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
Matchers.arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
Matchers.contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
Matchers.containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+  +

+ + + + + + + + +
Constructors in org.hamcrest with parameters of type Matcher
FeatureMatcher(Matcher<? super U> subMatcher, + java.lang.String featureDescription, + java.lang.String featureName) + +
+          Constructor
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.beans
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.beans that implement Matcher
+ classHasProperty<T> + +
+          A Matcher that checks that an object has a JavaBean property + with the specified name.
+ classHasPropertyWithValue<T> + +
+          Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher.
+ classSamePropertyValuesAs<T> + +
+           
+static classSamePropertyValuesAs.PropertyMatcher + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.beans that return Matcher
+static + + + + +
+<T> Matcher<T>
+
HasProperty.hasProperty(java.lang.String propertyName) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name.
+static + + + + +
+<T> Matcher<T>
+
HasPropertyWithValue.hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
SamePropertyValuesAs.samePropertyValuesAs(T expectedBean) + +
+          Creates a matcher that matches when the examined object has values for all of + its JavaBean properties that are equal to the corresponding values of the + specified bean.
+  +

+ + + + + + + + + +
Methods in org.hamcrest.beans with parameters of type Matcher
+static + + + + +
+<T> Matcher<T>
+
HasPropertyWithValue.hasProperty(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+          Creates a matcher that matches when the examined object has a JavaBean property + with the specified name whose value satisfies the specified matcher.
+  +

+ + + + + + + + +
Constructors in org.hamcrest.beans with parameters of type Matcher
HasPropertyWithValue(java.lang.String propertyName, + Matcher<?> valueMatcher) + +
+           
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.collection that implement Matcher
+ classIsArray<T> + +
+          Matcher for array whose elements satisfy a sequence of matchers.
+ classIsArrayContaining<T> + +
+          Matches if an array contains an item satisfying a nested matcher.
+ classIsArrayContainingInAnyOrder<E> + +
+           
+ classIsArrayContainingInOrder<E> + +
+           
+ classIsArrayWithSize<E> + +
+          Matches if array size satisfies a nested matcher.
+ classIsCollectionWithSize<E> + +
+          Matches if collection size satisfies a nested matcher.
+ classIsEmptyCollection<E> + +
+          Tests if collection is empty.
+ classIsEmptyIterable<E> + +
+          Tests if collection is empty.
+ classIsIn<T> + +
+           
+ classIsIterableContainingInAnyOrder<T> + +
+           
+ classIsIterableContainingInOrder<E> + +
+           
+ classIsIterableWithSize<E> + +
+           
+ classIsMapContaining<K,V> + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.collection that return Matcher
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(E... items) + +
+          Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(E... items) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.arrayWithSize(int size) + +
+          Creates a matcher for arrays that matches when the length of the array + equals the specified size.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(E... items) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(T... items) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsEmptyCollection.empty() + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.emptyArray() + +
+          Creates a matcher for arrays that matches when the length of the array + is zero.
+static + + + + +
+<E> Matcher<java.util.Collection<E>>
+
IsEmptyCollection.emptyCollectionOf(java.lang.Class<E> type) + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsEmptyIterable.emptyIterable() + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsEmptyIterable.emptyIterableOf(java.lang.Class<E> type) + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
IsMapContaining.hasEntry(K key, + V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
IsMapContaining.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
IsArrayContaining.hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
IsArrayContaining.hasItemInArray(T element) + +
+          A shortcut to the frequently used hasItemInArray(equalTo(x)).
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
IsMapContaining.hasKey(K key) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
IsMapContaining.hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsCollectionWithSize.hasSize(int size) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsCollectionWithSize.hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
IsMapContaining.hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
IsMapContaining.hasValue(V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value.
+static + + + + +
+<T> Matcher<T>
+
IsIn.isIn(java.util.Collection<T> collection) + +
+          Creates a matcher that matches when the examined object is found within the + specified collection.
+static + + + + +
+<T> Matcher<T>
+
IsIn.isIn(T[] elements) + +
+          Creates a matcher that matches when the examined object is found within the + specified array.
+static + + + + +
+<T> Matcher<T>
+
IsIn.isOneOf(T... elements) + +
+          Creates a matcher that matches when the examined object is equal to one of the + specified elements.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsIterableWithSize.iterableWithSize(int size) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsIterableWithSize.iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.collection with parameters of type Matcher
+static + + + + +
+<T> IsArray<T>
+
IsArray.array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayWithSize.arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
IsMapContaining.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
IsMapContaining.hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
IsArrayContaining.hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
IsMapContaining.hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
IsCollectionWithSize.hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
IsMapContaining.hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
IsIterableWithSize.iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Method parameters in org.hamcrest.collection with type arguments of type Matcher
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInOrder.arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
IsArrayContainingInAnyOrder.arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
IsIterableContainingInOrder.contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
IsIterableContainingInAnyOrder.containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.hamcrest.collection with parameters of type Matcher
IsArray(Matcher<? super T>[] elementMatchers) + +
+           
IsArrayContaining(Matcher<? super T> elementMatcher) + +
+           
IsArrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+           
IsCollectionWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+           
IsIterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+           
IsMapContaining(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+           
IsMapContaining(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Constructor parameters in org.hamcrest.collection with type arguments of type Matcher
IsArrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> matchers) + +
+           
IsArrayContainingInOrder(java.util.List<Matcher<? super E>> matchers) + +
+           
IsIterableContainingInAnyOrder(java.util.Collection<Matcher<? super T>> matchers) + +
+           
IsIterableContainingInOrder(java.util.List<Matcher<? super E>> matchers) + +
+           
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.core that implement Matcher
+ classAllOf<T> + +
+          Calculates the logical conjunction of multiple matchers.
+ classAnyOf<T> + +
+          Calculates the logical disjunction of multiple matchers.
+ classCombinableMatcher<T> + +
+           
+ classDescribedAs<T> + +
+          Provides a custom description to another matcher.
+ classEvery<T> + +
+           
+ classIs<T> + +
+          Decorates another Matcher, retaining the behaviour but allowing tests + to be slightly more expressive.
+ classIsAnything<T> + +
+          A matcher that always returns true.
+ classIsCollectionContaining<T> + +
+           
+ classIsEqual<T> + +
+          Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod?
+ classIsInstanceOf + +
+          Tests whether the value is an instance of a class.
+ classIsNot<T> + +
+          Calculates the logical negation of a matcher.
+ classIsNull<T> + +
+          Is the value null?
+ classIsSame<T> + +
+          Is the value the same object as another value?
+ classStringContains + +
+          Tests if the argument is a string that contains a substring.
+ classStringEndsWith + +
+          Tests if the argument is a string that contains a substring.
+ classStringStartsWith + +
+          Tests if the argument is a string that contains a substring.
+ classSubstringMatcher + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.core that return Matcher
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
IsInstanceOf.any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static Matcher<java.lang.Object>IsAnything.anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>IsAnything.anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+static Matcher<java.lang.String>StringContains.containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+static + + + + +
+<T> Matcher<T>
+
DescribedAs.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static Matcher<java.lang.String>StringEndsWith.endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
IsEqual.equalTo(T operand) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
Every.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
IsCollectionContaining.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
IsCollectionContaining.hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
IsCollectionContaining.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
IsCollectionContaining.hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+static + + + + +
+<T> Matcher<T>
+
IsInstanceOf.instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+static + + + + +
+<T> Matcher<T>
+
Is.is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
Is.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
Is.is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
Is.isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+static + + + + +
+<T> Matcher<T>
+
IsNot.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
IsNot.not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+static Matcher<java.lang.Object>IsNull.notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static + + + + +
+<T> Matcher<T>
+
IsNull.notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static Matcher<java.lang.Object>IsNull.nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
IsNull.nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
IsSame.sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static Matcher<java.lang.String>StringStartsWith.startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+static + + + + +
+<T> Matcher<T>
+
IsSame.theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.core with parameters of type Matcher
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+ CombinableMatcher<T>CombinableMatcher.and(Matcher<? super T> other) + +
+           
+ CombinableMatcher<X>CombinableMatcher.CombinableBothMatcher.and(Matcher<? super X> other) + +
+           
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
CombinableMatcher.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static + + + + +
+<T> Matcher<T>
+
DescribedAs.describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
CombinableMatcher.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
Every.everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
IsCollectionContaining.hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
IsCollectionContaining.hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<T>
+
Is.is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
IsNot.not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+ CombinableMatcher<T>CombinableMatcher.or(Matcher<? super T> other) + +
+           
+ CombinableMatcher<X>CombinableMatcher.CombinableEitherMatcher.or(Matcher<? super X> other) + +
+           
+  +

+ + + + + + + + + + + + + +
Method parameters in org.hamcrest.core with type arguments of type Matcher
+static + + + + +
+<T> Matcher<T>
+
AllOf.allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constructors in org.hamcrest.core with parameters of type Matcher
CombinableMatcher.CombinableBothMatcher(Matcher<? super X> matcher) + +
+           
CombinableMatcher.CombinableEitherMatcher(Matcher<? super X> matcher) + +
+           
CombinableMatcher(Matcher<? super T> matcher) + +
+           
DescribedAs(java.lang.String descriptionTemplate, + Matcher<T> matcher, + java.lang.Object[] values) + +
+           
Every(Matcher<? super T> matcher) + +
+           
Is(Matcher<T> matcher) + +
+           
IsCollectionContaining(Matcher<? super T> elementMatcher) + +
+           
IsNot(Matcher<T> matcher) + +
+           
+  +

+ + + + + + + + + + + +
Constructor parameters in org.hamcrest.core with type arguments of type Matcher
AllOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+           
AnyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+           
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.integration
+  +

+ + + + + + + + + + + + + +
Methods in org.hamcrest.integration with parameters of type Matcher
+static org.jmock.core.ConstraintJMock1Adapter.adapt(Matcher<?> matcher) + +
+          Convenience factory method that will adapt a + Hamcrest Matcher to act as an + jMock Constraint.
+static org.easymock.IArgumentMatcherEasyMock2Adapter.adapt(Matcher<?> matcher) + +
+          Convenience factory method that will adapt a + Hamcrest Matcher to act as an + EasyMock IArgumentMatcher and + report it to EasyMock so it can be kept track of.
+  +

+ + + + + + + + + + + +
Constructors in org.hamcrest.integration with parameters of type Matcher
EasyMock2Adapter(Matcher<?> matcher) + +
+           
JMock1Adapter(Matcher<?> matcher) + +
+           
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.number
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.number that implement Matcher
+ classBigDecimalCloseTo + +
+           
+ classIsCloseTo + +
+          Is the value a number equal to a value within some range of + acceptable error?
+ classOrderingComparison<T extends Comparable<T>> + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.number that return Matcher
+static Matcher<java.math.BigDecimal>BigDecimalCloseTo.closeTo(java.math.BigDecimal operand, + java.math.BigDecimal error) + +
+          Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error.
+static Matcher<java.lang.Double>IsCloseTo.closeTo(double operand, + double error) + +
+          Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.comparesEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.greaterThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.greaterThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.lessThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
OrderingComparison.lessThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object.
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.object
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.object that implement Matcher
+ classHasToString<T> + +
+           
+ classIsCompatibleType<T> + +
+           
+ classIsEventFrom + +
+          Tests if the value is an event announced by a specific object.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.object that return Matcher
+static Matcher<java.util.EventObject>IsEventFrom.eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass, + java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any object + derived from eventClass announced by source.
+static Matcher<java.util.EventObject>IsEventFrom.eventFrom(java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any EventObject + announced by source.
+static + + + + +
+<T> Matcher<T>
+
HasToString.hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
HasToString.hasToString(java.lang.String expectedToString) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string.
+static + + + + +
+<T> Matcher<java.lang.Class<?>>
+
IsCompatibleType.typeCompatibleWith(java.lang.Class<T> baseType) + +
+          Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class.
+  +

+ + + + + + + + + +
Methods in org.hamcrest.object with parameters of type Matcher
+static + + + + +
+<T> Matcher<T>
+
HasToString.hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+  +

+ + + + + + + + +
Constructors in org.hamcrest.object with parameters of type Matcher
HasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+           
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.text
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.text that implement Matcher
+ classIsEmptyString + +
+          Matches empty Strings (and null).
+ classIsEqualIgnoringCase + +
+          Tests if a string is equal to another string, regardless of the case.
+ classIsEqualIgnoringWhiteSpace + +
+          Tests if a string is equal to another string, ignoring any changes in whitespace.
+ classStringContainsInOrder + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.text that return Matcher
+static Matcher<java.lang.String>IsEqualIgnoringCase.equalToIgnoringCase(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case.
+static Matcher<java.lang.String>IsEqualIgnoringWhiteSpace.equalToIgnoringWhiteSpace(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored.
+static Matcher<java.lang.String>IsEmptyString.isEmptyOrNullString() + +
+          Creates a matcher of String that matches when the examined string is null, or + has zero length.
+static Matcher<java.lang.String>IsEmptyString.isEmptyString() + +
+          Creates a matcher of String that matches when the examined string has zero length.
+static Matcher<java.lang.String>StringContainsInOrder.stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings) + +
+          Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance.
+  +

+ + + + + +
+Uses of Matcher in org.hamcrest.xml
+  +

+ + + + + + + + + +
Classes in org.hamcrest.xml that implement Matcher
+ classHasXPath + +
+          Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.xml that return Matcher
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+  +

+ + + + + + + + + + + + + +
Methods in org.hamcrest.xml with parameters of type Matcher
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>HasXPath.hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+  +

+ + + + + + + + + + + +
Constructors in org.hamcrest.xml with parameters of type Matcher
HasXPath(java.lang.String xPathExpression, + Matcher<java.lang.String> valueMatcher) + +
+           
HasXPath(java.lang.String xPathExpression, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/MatcherAssert.html b/javadoc/1.3/org/hamcrest/class-use/MatcherAssert.html new file mode 100644 index 000000000..39aee6e75 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/MatcherAssert.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.MatcherAssert (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.MatcherAssert

+
+No usage of org.hamcrest.MatcherAssert +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/Matchers.html b/javadoc/1.3/org/hamcrest/class-use/Matchers.html new file mode 100644 index 000000000..4bfd62be6 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/Matchers.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.Matchers (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.Matchers

+
+No usage of org.hamcrest.Matchers +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/SelfDescribing.html b/javadoc/1.3/org/hamcrest/class-use/SelfDescribing.html new file mode 100644 index 000000000..9bd0b4c2f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/SelfDescribing.html @@ -0,0 +1,892 @@ + + + + + + +Uses of Interface org.hamcrest.SelfDescribing (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Interface
org.hamcrest.SelfDescribing

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use SelfDescribing
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.internal  
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest
+  +

+ + + + + + + + + +
Subinterfaces of SelfDescribing in org.hamcrest
+ interfaceMatcher<T> + +
+          A matcher over acceptable values.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest that implement SelfDescribing
+ classBaseMatcher<T> + +
+          BaseClass for all Matcher implementations.
+ classCustomMatcher<T> + +
+          Utility class for writing one off matchers.
+ classCustomTypeSafeMatcher<T> + +
+          Utility class for writing one off matchers.
+ classDiagnosingMatcher<T> + +
+          TODO(ngd): Document.
+ classFeatureMatcher<T,U> + +
+          Supporting class for matching a feature of an object.
+ classTypeSafeDiagnosingMatcher<T> + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
+ classTypeSafeMatcher<T> + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest with parameters of type SelfDescribing
+ DescriptionDescription.appendDescriptionOf(SelfDescribing value) + +
+          Appends the description of a SelfDescribing value to this description.
+ DescriptionDescription.NullDescription.appendDescriptionOf(SelfDescribing value) + +
+           
+ DescriptionBaseDescription.appendDescriptionOf(SelfDescribing value) + +
+           
+static java.lang.StringStringDescription.asString(SelfDescribing selfDescribing) + +
+          Alias for StringDescription.toString(SelfDescribing).
+static java.lang.StringStringDescription.toString(SelfDescribing selfDescribing) + +
+          Return the description of a SelfDescribing object as a String.
+  +

+ + + + + + + + + + + + + + + + + +
Method parameters in org.hamcrest with type arguments of type SelfDescribing
+ DescriptionDescription.appendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+          Appends a list of SelfDescribing objects + to the description.
+ DescriptionDescription.NullDescription.appendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+           
+ DescriptionBaseDescription.appendList(java.lang.String start, + java.lang.String separator, + java.lang.String end, + java.lang.Iterable<? extends SelfDescribing> values) + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.beans
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.beans that implement SelfDescribing
+ classHasProperty<T> + +
+          A Matcher that checks that an object has a JavaBean property + with the specified name.
+ classHasPropertyWithValue<T> + +
+          Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher.
+ classSamePropertyValuesAs<T> + +
+           
+static classSamePropertyValuesAs.PropertyMatcher + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.collection that implement SelfDescribing
+ classIsArray<T> + +
+          Matcher for array whose elements satisfy a sequence of matchers.
+ classIsArrayContaining<T> + +
+          Matches if an array contains an item satisfying a nested matcher.
+ classIsArrayContainingInAnyOrder<E> + +
+           
+ classIsArrayContainingInOrder<E> + +
+           
+ classIsArrayWithSize<E> + +
+          Matches if array size satisfies a nested matcher.
+ classIsCollectionWithSize<E> + +
+          Matches if collection size satisfies a nested matcher.
+ classIsEmptyCollection<E> + +
+          Tests if collection is empty.
+ classIsEmptyIterable<E> + +
+          Tests if collection is empty.
+ classIsIn<T> + +
+           
+ classIsIterableContainingInAnyOrder<T> + +
+           
+ classIsIterableContainingInOrder<E> + +
+           
+ classIsIterableWithSize<E> + +
+           
+ classIsMapContaining<K,V> + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.core that implement SelfDescribing
+ classAllOf<T> + +
+          Calculates the logical conjunction of multiple matchers.
+ classAnyOf<T> + +
+          Calculates the logical disjunction of multiple matchers.
+ classCombinableMatcher<T> + +
+           
+ classDescribedAs<T> + +
+          Provides a custom description to another matcher.
+ classEvery<T> + +
+           
+ classIs<T> + +
+          Decorates another Matcher, retaining the behaviour but allowing tests + to be slightly more expressive.
+ classIsAnything<T> + +
+          A matcher that always returns true.
+ classIsCollectionContaining<T> + +
+           
+ classIsEqual<T> + +
+          Is the value equal to another value, as tested by the + Object.equals(java.lang.Object) invokedMethod?
+ classIsInstanceOf + +
+          Tests whether the value is an instance of a class.
+ classIsNot<T> + +
+          Calculates the logical negation of a matcher.
+ classIsNull<T> + +
+          Is the value null?
+ classIsSame<T> + +
+          Is the value the same object as another value?
+ classStringContains + +
+          Tests if the argument is a string that contains a substring.
+ classStringEndsWith + +
+          Tests if the argument is a string that contains a substring.
+ classStringStartsWith + +
+          Tests if the argument is a string that contains a substring.
+ classSubstringMatcher + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.internal
+  +

+ + + + + + + + + +
Classes in org.hamcrest.internal that implement SelfDescribing
+ classSelfDescribingValue<T> + +
+           
+  +

+ + + + + + + + + +
Methods in org.hamcrest.internal that return SelfDescribing
+ SelfDescribingSelfDescribingValueIterator.next() + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.number
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.number that implement SelfDescribing
+ classBigDecimalCloseTo + +
+           
+ classIsCloseTo + +
+          Is the value a number equal to a value within some range of + acceptable error?
+ classOrderingComparison<T extends Comparable<T>> + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.object
+  +

+ + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.object that implement SelfDescribing
+ classHasToString<T> + +
+           
+ classIsCompatibleType<T> + +
+           
+ classIsEventFrom + +
+          Tests if the value is an event announced by a specific object.
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.text
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Classes in org.hamcrest.text that implement SelfDescribing
+ classIsEmptyString + +
+          Matches empty Strings (and null).
+ classIsEqualIgnoringCase + +
+          Tests if a string is equal to another string, regardless of the case.
+ classIsEqualIgnoringWhiteSpace + +
+          Tests if a string is equal to another string, ignoring any changes in whitespace.
+ classStringContainsInOrder + +
+           
+  +

+ + + + + +
+Uses of SelfDescribing in org.hamcrest.xml
+  +

+ + + + + + + + + +
Classes in org.hamcrest.xml that implement SelfDescribing
+ classHasXPath + +
+          Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/StringDescription.html b/javadoc/1.3/org/hamcrest/class-use/StringDescription.html new file mode 100644 index 000000000..adf936c2f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/StringDescription.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.StringDescription (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.StringDescription

+
+No usage of org.hamcrest.StringDescription +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/TypeSafeDiagnosingMatcher.html b/javadoc/1.3/org/hamcrest/class-use/TypeSafeDiagnosingMatcher.html new file mode 100644 index 000000000..6b00ab489 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/TypeSafeDiagnosingMatcher.html @@ -0,0 +1,390 @@ + + + + + + +Uses of Class org.hamcrest.TypeSafeDiagnosingMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.TypeSafeDiagnosingMatcher

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use TypeSafeDiagnosingMatcher
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + +
+Uses of TypeSafeDiagnosingMatcher in org.hamcrest
+  +

+ + + + + + + + + +
Subclasses of TypeSafeDiagnosingMatcher in org.hamcrest
+ classFeatureMatcher<T,U> + +
+          Supporting class for matching a feature of an object.
+  +

+ + + + + +
+Uses of TypeSafeDiagnosingMatcher in org.hamcrest.beans
+  +

+ + + + + + + + + + + + + +
Subclasses of TypeSafeDiagnosingMatcher in org.hamcrest.beans
+ classHasPropertyWithValue<T> + +
+          Matcher that asserts that a JavaBean property on an argument passed to the + mock object meets the provided matcher.
+ classSamePropertyValuesAs<T> + +
+           
+  +

+ + + + + +
+Uses of TypeSafeDiagnosingMatcher in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of TypeSafeDiagnosingMatcher in org.hamcrest.collection
+ classIsArrayWithSize<E> + +
+          Matches if array size satisfies a nested matcher.
+ classIsCollectionWithSize<E> + +
+          Matches if collection size satisfies a nested matcher.
+ classIsIterableContainingInAnyOrder<T> + +
+           
+ classIsIterableContainingInOrder<E> + +
+           
+ classIsIterableWithSize<E> + +
+           
+  +

+ + + + + +
+Uses of TypeSafeDiagnosingMatcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of TypeSafeDiagnosingMatcher in org.hamcrest.core
+ classCombinableMatcher<T> + +
+           
+ classEvery<T> + +
+           
+ classIsCollectionContaining<T> + +
+           
+  +

+ + + + + +
+Uses of TypeSafeDiagnosingMatcher in org.hamcrest.object
+  +

+ + + + + + + + + + + + + +
Subclasses of TypeSafeDiagnosingMatcher in org.hamcrest.object
+ classHasToString<T> + +
+           
+ classIsEventFrom + +
+          Tests if the value is an event announced by a specific object.
+  +

+ + + + + +
+Uses of TypeSafeDiagnosingMatcher in org.hamcrest.xml
+  +

+ + + + + + + + + +
Subclasses of TypeSafeDiagnosingMatcher in org.hamcrest.xml
+ classHasXPath + +
+          Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/class-use/TypeSafeMatcher.html b/javadoc/1.3/org/hamcrest/class-use/TypeSafeMatcher.html new file mode 100644 index 000000000..845c4c327 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/class-use/TypeSafeMatcher.html @@ -0,0 +1,460 @@ + + + + + + +Uses of Class org.hamcrest.TypeSafeMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.TypeSafeMatcher

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use TypeSafeMatcher
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest
+  +

+ + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest
+ classCustomTypeSafeMatcher<T> + +
+          Utility class for writing one off matchers.
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest.beans
+  +

+ + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest.beans
+ classHasProperty<T> + +
+          A Matcher that checks that an object has a JavaBean property + with the specified name.
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest.collection
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest.collection
+ classIsArray<T> + +
+          Matcher for array whose elements satisfy a sequence of matchers.
+ classIsArrayContaining<T> + +
+          Matches if an array contains an item satisfying a nested matcher.
+ classIsArrayContainingInAnyOrder<E> + +
+           
+ classIsArrayContainingInOrder<E> + +
+           
+ classIsEmptyCollection<E> + +
+          Tests if collection is empty.
+ classIsEmptyIterable<E> + +
+          Tests if collection is empty.
+ classIsMapContaining<K,V> + +
+           
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest.core
+ classStringContains + +
+          Tests if the argument is a string that contains a substring.
+ classStringEndsWith + +
+          Tests if the argument is a string that contains a substring.
+ classStringStartsWith + +
+          Tests if the argument is a string that contains a substring.
+ classSubstringMatcher + +
+           
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest.number
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest.number
+ classBigDecimalCloseTo + +
+           
+ classIsCloseTo + +
+          Is the value a number equal to a value within some range of + acceptable error?
+ classOrderingComparison<T extends Comparable<T>> + +
+           
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest.object
+  +

+ + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest.object
+ classIsCompatibleType<T> + +
+           
+  +

+ + + + + +
+Uses of TypeSafeMatcher in org.hamcrest.text
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of TypeSafeMatcher in org.hamcrest.text
+ classIsEqualIgnoringCase + +
+          Tests if a string is equal to another string, regardless of the case.
+ classIsEqualIgnoringWhiteSpace + +
+          Tests if a string is equal to another string, ignoring any changes in whitespace.
+ classStringContainsInOrder + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsArray.html b/javadoc/1.3/org/hamcrest/collection/IsArray.html new file mode 100644 index 000000000..0f18d5dc6 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsArray.html @@ -0,0 +1,444 @@ + + + + + + +IsArray (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsArray<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<T[]>
+          extended by org.hamcrest.collection.IsArray<T>
+
+
+
All Implemented Interfaces:
Matcher<T[]>, SelfDescribing
+
+
+
+
public class IsArray<T>
extends TypeSafeMatcher<T[]>
+ + +

+Matcher for array whose elements satisfy a sequence of matchers. + The array size must equal the number of element matchers. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsArray(Matcher<? super T>[] elementMatchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> IsArray<T>
+
array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+ voiddescribeMismatchSafely(T[] actual, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+protected  java.lang.StringdescriptionEnd() + +
+          Returns the string that ends the description.
+protected  java.lang.StringdescriptionSeparator() + +
+          Returns the string that separates the elements in the description.
+protected  java.lang.StringdescriptionStart() + +
+          Returns the string that starts the description.
+ booleanmatchesSafely(T[] array) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsArray

+
+public IsArray(Matcher<? super T>[] elementMatchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(T[] array)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<T[]>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(T[] actual,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<T[]>
+
+
+
+
+
+
+ +

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

+descriptionStart

+
+protected java.lang.String descriptionStart()
+
+
Returns the string that starts the description. + + Can be overridden in subclasses to customise how the matcher is + described. +

+

+
+
+
+
+ +

+descriptionSeparator

+
+protected java.lang.String descriptionSeparator()
+
+
Returns the string that separates the elements in the description. + + Can be overridden in subclasses to customise how the matcher is + described. +

+

+
+
+
+
+ +

+descriptionEnd

+
+protected java.lang.String descriptionEnd()
+
+
Returns the string that ends the description. + + Can be overridden in subclasses to customise how the matcher is + described. +

+

+
+
+
+
+ +

+array

+
+public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers)
+
+
Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. Matches + positively only if the number of matchers specified is equal to the length of the examined array and + each matcher[i] is satisfied by array[i]. +

+ For example: +

assertThat(new Integer[]{1,2,3}, is(array(equalTo(1), equalTo(2), equalTo(3))))
+

+

+
Parameters:
elementMatchers - the matchers that the elements of examined arrays should satisfy
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsArrayContaining.html b/javadoc/1.3/org/hamcrest/collection/IsArrayContaining.html new file mode 100644 index 000000000..a2daf53f8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsArrayContaining.html @@ -0,0 +1,405 @@ + + + + + + +IsArrayContaining (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsArrayContaining<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<T[]>
+          extended by org.hamcrest.collection.IsArrayContaining<T>
+
+
+
All Implemented Interfaces:
Matcher<T[]>, SelfDescribing
+
+
+
+
public class IsArrayContaining<T>
extends TypeSafeMatcher<T[]>
+ + +

+Matches if an array contains an item satisfying a nested matcher. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsArrayContaining(Matcher<? super T> elementMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(T[] item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T[]>
+
hasItemInArray(Matcher<? super T> elementMatcher) + +
+          Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher.
+static + + + + +
+<T> Matcher<T[]>
+
hasItemInArray(T element) + +
+          A shortcut to the frequently used hasItemInArray(equalTo(x)).
+ booleanmatchesSafely(T[] array) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsArrayContaining

+
+public IsArrayContaining(Matcher<? super T> elementMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(T[] array)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<T[]>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(T[] item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<T[]>
+
+
+
+
+
+
+ +

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

+hasItemInArray

+
+public static <T> Matcher<T[]> hasItemInArray(Matcher<? super T> elementMatcher)
+
+
Creates a matcher for arrays that matches when the examined array contains at least one item + that is matched by the specified elementMatcher. Whilst matching, the traversal + of the examined array will stop as soon as a matching element is found. +

+ For example: +

assertThat(new String[] {"foo", "bar"}, hasItemInArray(startsWith("ba")))
+

+

+
Parameters:
elementMatcher - the matcher to apply to elements in examined arrays
+
+
+
+ +

+hasItemInArray

+
+public static <T> Matcher<T[]> hasItemInArray(T element)
+
+
A shortcut to the frequently used hasItemInArray(equalTo(x)). +

+ For example: +

assertThat(hasItemInArray(x))
+ instead of: +
assertThat(hasItemInArray(equalTo(x)))
+

+

+
Parameters:
element - the element that should be present in examined arrays
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsArrayContainingInAnyOrder.html b/javadoc/1.3/org/hamcrest/collection/IsArrayContainingInAnyOrder.html new file mode 100644 index 000000000..82290cbda --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsArrayContainingInAnyOrder.html @@ -0,0 +1,451 @@ + + + + + + +IsArrayContainingInAnyOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsArrayContainingInAnyOrder<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<E[]>
+          extended by org.hamcrest.collection.IsArrayContainingInAnyOrder<E>
+
+
+
All Implemented Interfaces:
Matcher<E[]>, SelfDescribing
+
+
+
+
public class IsArrayContainingInAnyOrder<E>
extends TypeSafeMatcher<E[]>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsArrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<E> Matcher<E[]>
+
arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContainingInAnyOrder(E... items) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) + +
+          Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers.
+ voiddescribeMismatchSafely(E[] item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(E[] item) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsArrayContainingInAnyOrder

+
+public IsArrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(E[] item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<E[]>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(E[] item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<E[]>
+
+
+
+
+
+
+ +

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

+arrayContainingInAnyOrder

+
+public static <E> Matcher<E[]> arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers)
+
+
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified matchers. + For a positive match, the examined array must be of the same length as the number of + specified matchers. +

+ N.B. each of the specified matchers will only be used once during a given examination, so be + careful when specifying matchers that may be satisfied by more than one entry in an examined + array. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(equalTo("bar"), equalTo("foo")))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an entry in an examined array
+
+
+
+ +

+arrayContainingInAnyOrder

+
+public static <E> Matcher<E[]> arrayContainingInAnyOrder(java.util.Collection<Matcher<? super E>> itemMatchers)
+
+
Creates an order agnostic matcher for arrays that matches when each item in the + examined array satisfies one matcher anywhere in the specified collection of matchers. + For a positive match, the examined array must be of the same length as the specified collection + of matchers. +

+ N.B. each matcher in the specified collection will only be used once during a given + examination, so be careful when specifying matchers that may be satisfied by more than + one entry in an examined array. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayContainingInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined array
+
+
+
+ +

+arrayContainingInAnyOrder

+
+public static <E> Matcher<E[]> arrayContainingInAnyOrder(E... items)
+
+
Creates an order agnostic matcher for arrays that matches when each item in the + examined array is logically equal to one item anywhere in the specified items. + For a positive match, the examined array must be of the same length as the number of + specified items. +

+ N.B. each of the specified items will only be used once during a given examination, so be + careful when specifying items that may be equal to more than one entry in an examined + array. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, containsInAnyOrder("bar", "foo"))
+

+

+
Parameters:
items - the items that must equal the entries of an examined array, in any order
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsArrayContainingInOrder.html b/javadoc/1.3/org/hamcrest/collection/IsArrayContainingInOrder.html new file mode 100644 index 000000000..4b2db6130 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsArrayContainingInOrder.html @@ -0,0 +1,436 @@ + + + + + + +IsArrayContainingInOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsArrayContainingInOrder<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<E[]>
+          extended by org.hamcrest.collection.IsArrayContainingInOrder<E>
+
+
+
All Implemented Interfaces:
Matcher<E[]>, SelfDescribing
+
+
+
+
public class IsArrayContainingInOrder<E>
extends TypeSafeMatcher<E[]>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsArrayContainingInOrder(java.util.List<Matcher<? super E>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<E> Matcher<E[]>
+
arrayContaining(E... items) + +
+          Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContaining(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<E[]>
+
arrayContaining(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers.
+ voiddescribeMismatchSafely(E[] item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(E[] item) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsArrayContainingInOrder

+
+public IsArrayContainingInOrder(java.util.List<Matcher<? super E>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(E[] item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<E[]>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(E[] item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<E[]>
+
+
+
+
+
+
+ +

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

+arrayContaining

+
+public static <E> Matcher<E[]> arrayContaining(E... items)
+
+
Creates a matcher for arrays that matcheswhen each item in the examined array is + logically equal to the corresponding item in the specified items. For a positive match, + the examined array must be of the same length as the number of specified items. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, contains("foo", "bar"))
+

+

+
Parameters:
items - the items that must equal the items within an examined array
+
+
+
+ +

+arrayContaining

+
+public static <E> Matcher<E[]> arrayContaining(Matcher<? super E>... itemMatchers)
+
+
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified matchers. For a positive match, the examined array + must be of the same length as the number of specified matchers. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, contains(equalTo("foo"), equalTo("bar")))
+

+

+
Parameters:
itemMatchers - the matchers that must be satisfied by the items in the examined array
+
+
+
+ +

+arrayContaining

+
+public static <E> Matcher<E[]> arrayContaining(java.util.List<Matcher<? super E>> itemMatchers)
+
+
Creates a matcher for arrays that matches when each item in the examined array satisfies the + corresponding matcher in the specified list of matchers. For a positive match, the examined array + must be of the same length as the specified list of matchers. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by the corresponding item in an examined array
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsArrayWithSize.html b/javadoc/1.3/org/hamcrest/collection/IsArrayWithSize.html new file mode 100644 index 000000000..707ff4c60 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsArrayWithSize.html @@ -0,0 +1,395 @@ + + + + + + +IsArrayWithSize (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsArrayWithSize<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
+          extended by org.hamcrest.FeatureMatcher<E[],java.lang.Integer>
+              extended by org.hamcrest.collection.IsArrayWithSize<E>
+
+
+
All Implemented Interfaces:
Matcher<E[]>, SelfDescribing
+
+
+
+
public class IsArrayWithSize<E>
extends FeatureMatcher<E[],java.lang.Integer>
+ + +

+Matches if array size satisfies a nested matcher. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsArrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<E> Matcher<E[]>
+
arrayWithSize(int size) + +
+          Creates a matcher for arrays that matches when the length of the array + equals the specified size.
+static + + + + +
+<E> Matcher<E[]>
+
arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher.
+static + + + + +
+<E> Matcher<E[]>
+
emptyArray() + +
+          Creates a matcher for arrays that matches when the length of the array + is zero.
+protected  java.lang.IntegerfeatureValueOf(E[] actual) + +
+          Implement this to extract the interesting feature.
+ + + + + + + +
Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsArrayWithSize

+
+public IsArrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+featureValueOf

+
+protected java.lang.Integer featureValueOf(E[] actual)
+
+
Description copied from class: FeatureMatcher
+
Implement this to extract the interesting feature. +

+

+
Specified by:
featureValueOf in class FeatureMatcher<E[],java.lang.Integer>
+
+
+
Parameters:
actual - the target object +
Returns:
the feature to be matched
+
+
+
+ +

+arrayWithSize

+
+public static <E> Matcher<E[]> arrayWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
Creates a matcher for arrays that matches when the length of the array + satisfies the specified matcher. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayWithSize(equalTo(2)))
+

+

+
Parameters:
sizeMatcher - a matcher for the length of an examined array
+
+
+
+ +

+arrayWithSize

+
+public static <E> Matcher<E[]> arrayWithSize(int size)
+
+
Creates a matcher for arrays that matches when the length of the array + equals the specified size. +

+ For example: +

assertThat(new String[]{"foo", "bar"}, arrayWithSize(2))
+

+

+
Parameters:
size - the length that an examined array must have for a positive match
+
+
+
+ +

+emptyArray

+
+public static <E> Matcher<E[]> emptyArray()
+
+
Creates a matcher for arrays that matches when the length of the array + is zero. +

+ For example: +

assertThat(new String[0], emptyArray())
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsCollectionWithSize.html b/javadoc/1.3/org/hamcrest/collection/IsCollectionWithSize.html new file mode 100644 index 000000000..1798819e6 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsCollectionWithSize.html @@ -0,0 +1,362 @@ + + + + + + +IsCollectionWithSize (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsCollectionWithSize<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
+          extended by org.hamcrest.FeatureMatcher<java.util.Collection<? extends E>,java.lang.Integer>
+              extended by org.hamcrest.collection.IsCollectionWithSize<E>
+
+
+
All Implemented Interfaces:
Matcher<java.util.Collection<? extends E>>, SelfDescribing
+
+
+
+
public class IsCollectionWithSize<E>
extends FeatureMatcher<java.util.Collection<? extends E>,java.lang.Integer>
+ + +

+Matches if collection size satisfies a nested matcher. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsCollectionWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  java.lang.IntegerfeatureValueOf(java.util.Collection<? extends E> actual) + +
+          Implement this to extract the interesting feature.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
hasSize(int size) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
hasSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher.
+ + + + + + + +
Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsCollectionWithSize

+
+public IsCollectionWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+featureValueOf

+
+protected java.lang.Integer featureValueOf(java.util.Collection<? extends E> actual)
+
+
Description copied from class: FeatureMatcher
+
Implement this to extract the interesting feature. +

+

+
Specified by:
featureValueOf in class FeatureMatcher<java.util.Collection<? extends E>,java.lang.Integer>
+
+
+
Parameters:
actual - the target object +
Returns:
the feature to be matched
+
+
+
+ +

+hasSize

+
+public static <E> Matcher<java.util.Collection<? extends E>> hasSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
Creates a matcher for Collections that matches when the size() method returns + a value that satisfies the specified matcher. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))
+

+

+
Parameters:
sizeMatcher - a matcher for the size of an examined Collection
+
+
+
+ +

+hasSize

+
+public static <E> Matcher<java.util.Collection<? extends E>> hasSize(int size)
+
+
Creates a matcher for Collections that matches when the size() method returns + a value equal to the specified size. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasSize(2))
+

+

+
Parameters:
size - the expected size of an examined Collection
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsEmptyCollection.html b/javadoc/1.3/org/hamcrest/collection/IsEmptyCollection.html new file mode 100644 index 000000000..4a36b40c3 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsEmptyCollection.html @@ -0,0 +1,404 @@ + + + + + + +IsEmptyCollection (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsEmptyCollection<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.util.Collection<? extends E>>
+          extended by org.hamcrest.collection.IsEmptyCollection<E>
+
+
+
All Implemented Interfaces:
Matcher<java.util.Collection<? extends E>>, SelfDescribing
+
+
+
+
public class IsEmptyCollection<E>
extends TypeSafeMatcher<java.util.Collection<? extends E>>
+ + +

+Tests if collection is empty. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEmptyCollection() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.util.Collection<? extends E> item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<E> Matcher<java.util.Collection<? extends E>>
+
empty() + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+static + + + + +
+<E> Matcher<java.util.Collection<E>>
+
emptyCollectionOf(java.lang.Class<E> type) + +
+          Creates a matcher for Collections matching examined collections whose isEmpty + method returns true.
+ booleanmatchesSafely(java.util.Collection<? extends E> item) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsEmptyCollection

+
+public IsEmptyCollection()
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.util.Collection<? extends E> item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.util.Collection<? extends E>>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.util.Collection<? extends E> item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.util.Collection<? extends E>>
+
+
+
+
+
+
+ +

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

+empty

+
+public static <E> Matcher<java.util.Collection<? extends E>> empty()
+
+
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +

+ For example: +

assertThat(new ArrayList<String>(), is(empty()))
+

+

+
+
+
+
+ +

+emptyCollectionOf

+
+public static <E> Matcher<java.util.Collection<E>> emptyCollectionOf(java.lang.Class<E> type)
+
+
Creates a matcher for Collections matching examined collections whose isEmpty + method returns true. +

+ For example: +

assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class)))
+

+

+
Parameters:
type - the type of the collection's content
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsEmptyIterable.html b/javadoc/1.3/org/hamcrest/collection/IsEmptyIterable.html new file mode 100644 index 000000000..d28c1e9db --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsEmptyIterable.html @@ -0,0 +1,400 @@ + + + + + + +IsEmptyIterable (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsEmptyIterable<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.Iterable<? extends E>>
+          extended by org.hamcrest.collection.IsEmptyIterable<E>
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Iterable<? extends E>>, SelfDescribing
+
+
+
+
public class IsEmptyIterable<E>
extends TypeSafeMatcher<java.lang.Iterable<? extends E>>
+ + +

+Tests if collection is empty. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEmptyIterable() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.lang.Iterable<? extends E> iter, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
emptyIterable() + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
emptyIterableOf(java.lang.Class<E> type) + +
+          Creates a matcher for Iterables matching examined iterables that yield no items.
+ booleanmatchesSafely(java.lang.Iterable<? extends E> iterable) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsEmptyIterable

+
+public IsEmptyIterable()
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.Iterable<? extends E> iterable)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.Iterable<? extends E>>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.Iterable<? extends E> iter,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.Iterable<? extends E>>
+
+
+
+
+
+
+ +

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

+emptyIterable

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> emptyIterable()
+
+
Creates a matcher for Iterables matching examined iterables that yield no items. +

+ For example: +

assertThat(new ArrayList<String>(), is(emptyIterable()))
+

+

+
+
+
+
+ +

+emptyIterableOf

+
+public static <E> Matcher<java.lang.Iterable<E>> emptyIterableOf(java.lang.Class<E> type)
+
+
Creates a matcher for Iterables matching examined iterables that yield no items. +

+ For example: +

assertThat(new ArrayList<String>(), is(emptyIterableOf(String.class)))
+

+

+
Parameters:
type - the type of the iterable's content
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsIn.html b/javadoc/1.3/org/hamcrest/collection/IsIn.html new file mode 100644 index 000000000..df1ba06b5 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsIn.html @@ -0,0 +1,411 @@ + + + + + + +IsIn (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsIn<T>

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

+


+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
IsIn(java.util.Collection<T> collection) + +
+           
IsIn(T[] elements) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description buffer) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T>
+
isIn(java.util.Collection<T> collection) + +
+          Creates a matcher that matches when the examined object is found within the + specified collection.
+static + + + + +
+<T> Matcher<T>
+
isIn(T[] elements) + +
+          Creates a matcher that matches when the examined object is found within the + specified array.
+static + + + + +
+<T> Matcher<T>
+
isOneOf(T... elements) + +
+          Creates a matcher that matches when the examined object is equal to one of the + specified elements.
+ booleanmatches(java.lang.Object o) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

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

+IsIn

+
+public IsIn(java.util.Collection<T> collection)
+
+
+
+ +

+IsIn

+
+public IsIn(T[] elements)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.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 buffer)
+
+
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:
buffer - The description to be built or appended to.
+
+
+
+ +

+isIn

+
+public static <T> Matcher<T> isIn(java.util.Collection<T> collection)
+
+
Creates a matcher that matches when the examined object is found within the + specified collection. +

+ For example: +

assertThat("foo", isIn(Arrays.asList("bar", "foo")))
+

+

+
Parameters:
collection - the collection in which matching items must be found
+
+
+
+ +

+isIn

+
+public static <T> Matcher<T> isIn(T[] elements)
+
+
Creates a matcher that matches when the examined object is found within the + specified array. +

+ For example: +

assertThat("foo", isIn(new String[]{"bar", "foo"}))
+

+

+
Parameters:
elements - the array in which matching items must be found
+
+
+
+ +

+isOneOf

+
+public static <T> Matcher<T> isOneOf(T... elements)
+
+
Creates a matcher that matches when the examined object is equal to one of the + specified elements. +

+ For example: +

assertThat("foo", isIn("bar", "foo"))
+

+

+
Parameters:
elements - the elements amongst which matching items will be found
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsIterableContainingInAnyOrder.html b/javadoc/1.3/org/hamcrest/collection/IsIterableContainingInAnyOrder.html new file mode 100644 index 000000000..921e6543a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsIterableContainingInAnyOrder.html @@ -0,0 +1,465 @@ + + + + + + +IsIterableContainingInAnyOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsIterableContainingInAnyOrder<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<java.lang.Iterable<? extends T>>
+          extended by org.hamcrest.collection.IsIterableContainingInAnyOrder<T>
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Iterable<? extends T>>, SelfDescribing
+
+
+
+
public class IsIterableContainingInAnyOrder<T>
extends TypeSafeDiagnosingMatcher<java.lang.Iterable<? extends T>>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsIterableContainingInAnyOrder(java.util.Collection<Matcher<? super T>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
containsInAnyOrder(Matcher<? super E> itemMatcher) + +
+          Deprecated. use contains(Matcher itemMatcher) instead
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
containsInAnyOrder(Matcher<? super T>... itemMatchers) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? extends T>>
+
containsInAnyOrder(T... items) + +
+          Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+protected  booleanmatchesSafely(java.lang.Iterable<? extends T> items, + Description mismatchDescription) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsIterableContainingInAnyOrder

+
+public IsIterableContainingInAnyOrder(java.util.Collection<Matcher<? super T>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+protected boolean matchesSafely(java.lang.Iterable<? extends T> items,
+                                Description mismatchDescription)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<java.lang.Iterable<? extends T>>
+
+
+
+
+
+
+ +

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

+containsInAnyOrder

+
+@Deprecated
+public static <E> Matcher<java.lang.Iterable<? extends E>> containsInAnyOrder(Matcher<? super E> itemMatcher)
+
+
Deprecated. use contains(Matcher itemMatcher) instead +

+

Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher. + For a positive match, the examined iterable must only yield one item. +

+ For example: +

assertThat(Arrays.asList("foo"), containsInAnyOrder(equalTo("foo")))
+

+

+
Parameters:
itemMatcher - the matcher that must be satisfied by the single item provided by an + examined Iterable
+
+
+
+ +

+containsInAnyOrder

+
+public static <T> Matcher<java.lang.Iterable<? extends T>> containsInAnyOrder(Matcher<? super T>... itemMatchers)
+
+
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified matchers. For a positive match, the examined iterable must be of the same + length as the number of specified matchers. +

+ N.B. each of the specified matchers will only be used once during a given examination, so be + careful when specifying matchers that may be satisfied by more than one entry in an examined + iterable. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(equalTo("bar"), equalTo("foo")))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined Iterable
+
+
+
+ +

+containsInAnyOrder

+
+public static <T> Matcher<java.lang.Iterable<? extends T>> containsInAnyOrder(T... items)
+
+
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each logically equal to one item + anywhere in the specified items. For a positive match, the examined iterable + must be of the same length as the number of specified items. +

+ N.B. each of the specified items will only be used once during a given examination, so be + careful when specifying items that may be equal to more than one entry in an examined + iterable. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder("bar", "foo"))
+

+

+
Parameters:
items - the items that must equal the items provided by an examined Iterable in any order
+
+
+
+ +

+containsInAnyOrder

+
+public static <T> Matcher<java.lang.Iterable<? extends T>> containsInAnyOrder(java.util.Collection<Matcher<? super T>> itemMatchers)
+
+
Creates an order agnostic matcher for Iterables that matches when a single pass over + the examined Iterable yields a series of items, each satisfying one matcher anywhere + in the specified collection of matchers. For a positive match, the examined iterable + must be of the same length as the specified collection of matchers. +

+ N.B. each matcher in the specified collection will only be used once during a given + examination, so be careful when specifying matchers that may be satisfied by more than + one entry in an examined iterable. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), containsInAnyOrder(Arrays.asList(equalTo("bar"), equalTo("foo"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by an item provided by an examined Iterable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsIterableContainingInOrder.html b/javadoc/1.3/org/hamcrest/collection/IsIterableContainingInOrder.html new file mode 100644 index 000000000..923f88271 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsIterableContainingInOrder.html @@ -0,0 +1,452 @@ + + + + + + +IsIterableContainingInOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsIterableContainingInOrder<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<java.lang.Iterable<? extends E>>
+          extended by org.hamcrest.collection.IsIterableContainingInOrder<E>
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Iterable<? extends E>>, SelfDescribing
+
+
+
+
public class IsIterableContainingInOrder<E>
extends TypeSafeDiagnosingMatcher<java.lang.Iterable<? extends E>>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsIterableContainingInOrder(java.util.List<Matcher<? super E>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(E... items) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(java.util.List<Matcher<? super E>> itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(Matcher<? super E>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers.
+static + + + + +
+<E> Matcher<java.lang.Iterable<? extends E>>
+
contains(Matcher<? super E> itemMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+protected  booleanmatchesSafely(java.lang.Iterable<? extends E> iterable, + Description mismatchDescription) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsIterableContainingInOrder

+
+public IsIterableContainingInOrder(java.util.List<Matcher<? super E>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+protected boolean matchesSafely(java.lang.Iterable<? extends E> iterable,
+                                Description mismatchDescription)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<java.lang.Iterable<? extends E>>
+
+
+
+
+
+
+ +

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

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(E... items)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each logically equal to the + corresponding item in the specified items. For a positive match, the examined iterable + must be of the same length as the number of specified items. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), contains("foo", "bar"))
+

+

+
Parameters:
items - the items that must equal the items provided by an examined Iterable
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(Matcher<? super E> itemMatcher)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a single item that satisfies the specified matcher. + For a positive match, the examined iterable must only yield one item. +

+ For example: +

assertThat(Arrays.asList("foo"), contains(equalTo("foo")))
+

+

+
Parameters:
itemMatcher - the matcher that must be satisfied by the single item provided by an + examined Iterable
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(Matcher<? super E>... itemMatchers)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified matchers. For a positive match, the examined iterable + must be of the same length as the number of specified matchers. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), contains(equalTo("foo"), equalTo("bar")))
+

+

+
Parameters:
itemMatchers - the matchers that must be satisfied by the items provided by an examined Iterable
+
+
+
+ +

+contains

+
+public static <E> Matcher<java.lang.Iterable<? extends E>> contains(java.util.List<Matcher<? super E>> itemMatchers)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields a series of items, each satisfying the corresponding + matcher in the specified list of matchers. For a positive match, the examined iterable + must be of the same length as the specified list of matchers. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), contains(Arrays.asList(equalTo("foo"), equalTo("bar"))))
+

+

+
Parameters:
itemMatchers - a list of matchers, each of which must be satisfied by the corresponding item provided by + an examined Iterable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsIterableWithSize.html b/javadoc/1.3/org/hamcrest/collection/IsIterableWithSize.html new file mode 100644 index 000000000..9f09b2671 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsIterableWithSize.html @@ -0,0 +1,362 @@ + + + + + + +IsIterableWithSize (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsIterableWithSize<E>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
+          extended by org.hamcrest.FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>
+              extended by org.hamcrest.collection.IsIterableWithSize<E>
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Iterable<E>>, SelfDescribing
+
+
+
+
public class IsIterableWithSize<E>
extends FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsIterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  java.lang.IntegerfeatureValueOf(java.lang.Iterable<E> actual) + +
+          Implement this to extract the interesting feature.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
iterableWithSize(int size) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument.
+static + + + + +
+<E> Matcher<java.lang.Iterable<E>>
+
iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher) + +
+          Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher.
+ + + + + + + +
Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsIterableWithSize

+
+public IsIterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+featureValueOf

+
+protected java.lang.Integer featureValueOf(java.lang.Iterable<E> actual)
+
+
Description copied from class: FeatureMatcher
+
Implement this to extract the interesting feature. +

+

+
Specified by:
featureValueOf in class FeatureMatcher<java.lang.Iterable<E>,java.lang.Integer>
+
+
+
Parameters:
actual - the target object +
Returns:
the feature to be matched
+
+
+
+ +

+iterableWithSize

+
+public static <E> Matcher<java.lang.Iterable<E>> iterableWithSize(Matcher<? super java.lang.Integer> sizeMatcher)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that satisfies the specified + matcher. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), iterableWithSize(equalTo(2)))
+

+

+
Parameters:
sizeMatcher - a matcher for the number of items that should be yielded by an examined Iterable
+
+
+
+ +

+iterableWithSize

+
+public static <E> Matcher<java.lang.Iterable<E>> iterableWithSize(int size)
+
+
Creates a matcher for Iterables that matches when a single pass over the + examined Iterable yields an item count that is equal to the specified + size argument. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), iterableWithSize(2))
+

+

+
Parameters:
size - the number of items that should be yielded by an examined Iterable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/IsMapContaining.html b/javadoc/1.3/org/hamcrest/collection/IsMapContaining.html new file mode 100644 index 000000000..1dd64d45b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/IsMapContaining.html @@ -0,0 +1,542 @@ + + + + + + +IsMapContaining (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.collection +
+Class IsMapContaining<K,V>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.util.Map<? extends K,? extends V>>
+          extended by org.hamcrest.collection.IsMapContaining<K,V>
+
+
+
All Implemented Interfaces:
Matcher<java.util.Map<? extends K,? extends V>>, SelfDescribing
+
+
+
+
public class IsMapContaining<K,V>
extends TypeSafeMatcher<java.util.Map<? extends K,? extends V>>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsMapContaining(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.util.Map<? extends K,? extends V> map, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
hasEntry(K key, + V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value.
+static + + + + +
+<K,V> Matcher<java.util.Map<? extends K,? extends V>>
+
hasEntry(Matcher<? super K> keyMatcher, + Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
hasKey(K key) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key.
+static + + + + +
+<K> Matcher<java.util.Map<? extends K,?>>
+
hasKey(Matcher<? super K> keyMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
hasValue(Matcher<? super V> valueMatcher) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher.
+static + + + + +
+<V> Matcher<java.util.Map<?,? extends V>>
+
hasValue(V value) + +
+          Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value.
+ booleanmatchesSafely(java.util.Map<? extends K,? extends V> map) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsMapContaining

+
+public IsMapContaining(Matcher<? super K> keyMatcher,
+                       Matcher<? super V> valueMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.util.Map<? extends K,? extends V> map)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.util.Map<? extends K,? extends V>>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.util.Map<? extends K,? extends V> map,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.util.Map<? extends K,? extends V>>
+
+
+
+
+
+
+ +

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

+hasEntry

+
+public static <K,V> Matcher<java.util.Map<? extends K,? extends V>> hasEntry(Matcher<? super K> keyMatcher,
+                                                                             Matcher<? super V> valueMatcher)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key satisfies the specified keyMatcher and whose + value satisfies the specified valueMatcher. +

+ For example: +

assertThat(myMap, hasEntry(equalTo("bar"), equalTo("foo")))
+

+

+
Parameters:
keyMatcher - the key matcher that, in combination with the valueMatcher, must be satisfied by at least one entry
valueMatcher - the value matcher that, in combination with the keyMatcher, must be satisfied by at least one entry
+
+
+
+ +

+hasEntry

+
+public static <K,V> Matcher<java.util.Map<? extends K,? extends V>> hasEntry(K key,
+                                                                             V value)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one entry whose key equals the specified key and whose value equals the + specified value. +

+ For example: +

assertThat(myMap, hasEntry("bar", "foo"))
+

+

+
Parameters:
key - the key that, in combination with the value, must be describe at least one entry
value - the value that, in combination with the key, must be describe at least one entry
+
+
+
+ +

+hasKey

+
+public static <K> Matcher<java.util.Map<? extends K,?>> hasKey(Matcher<? super K> keyMatcher)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one key that satisfies the specified matcher. +

+ For example: +

assertThat(myMap, hasKey(equalTo("bar")))
+

+

+
Parameters:
keyMatcher - the matcher that must be satisfied by at least one key
+
+
+
+ +

+hasKey

+
+public static <K> Matcher<java.util.Map<? extends K,?>> hasKey(K key)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one key that is equal to the specified key. +

+ For example: +

assertThat(myMap, hasKey("bar"))
+

+

+
Parameters:
key - the key that satisfying maps must contain
+
+
+
+ +

+hasValue

+
+public static <V> Matcher<java.util.Map<?,? extends V>> hasValue(Matcher<? super V> valueMatcher)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one value that satisfies the specified valueMatcher. +

+ For example: +

assertThat(myMap, hasValue(equalTo("foo")))
+

+

+
Parameters:
valueMatcher - the matcher that must be satisfied by at least one value
+
+
+
+ +

+hasValue

+
+public static <V> Matcher<java.util.Map<?,? extends V>> hasValue(V value)
+
+
Creates a matcher for Maps matching when the examined Map contains + at least one value that is equal to the specified value. +

+ For example: +

assertThat(myMap, hasValue("foo"))
+

+

+
Parameters:
value - the value that satisfying maps must contain
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsArray.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsArray.html new file mode 100644 index 000000000..81f26e4b6 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsArray.html @@ -0,0 +1,223 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsArray (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsArray

+
+ + + + + + + + + + + + + +
+Packages that use IsArray
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.collectionMatchers of arrays and collections. 
+  +

+ + + + + +
+Uses of IsArray in org.hamcrest
+  +

+ + + + + + + + + +
Methods in org.hamcrest that return IsArray
+static + + + + +
+<T> IsArray<T>
+
Matchers.array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+  +

+ + + + + +
+Uses of IsArray in org.hamcrest.collection
+  +

+ + + + + + + + + +
Methods in org.hamcrest.collection that return IsArray
+static + + + + +
+<T> IsArray<T>
+
IsArray.array(Matcher<? super T>... elementMatchers) + +
+          Creates a matcher that matches arrays whose elements are satisfied by the specified matchers.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContaining.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContaining.html new file mode 100644 index 000000000..89eaf5a51 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContaining.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsArrayContaining (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsArrayContaining

+
+No usage of org.hamcrest.collection.IsArrayContaining +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInAnyOrder.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInAnyOrder.html new file mode 100644 index 000000000..084ec01ea --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInAnyOrder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsArrayContainingInAnyOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsArrayContainingInAnyOrder

+
+No usage of org.hamcrest.collection.IsArrayContainingInAnyOrder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInOrder.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInOrder.html new file mode 100644 index 000000000..db92988c7 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayContainingInOrder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsArrayContainingInOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsArrayContainingInOrder

+
+No usage of org.hamcrest.collection.IsArrayContainingInOrder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayWithSize.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayWithSize.html new file mode 100644 index 000000000..06538db0c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsArrayWithSize.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsArrayWithSize (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsArrayWithSize

+
+No usage of org.hamcrest.collection.IsArrayWithSize +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsCollectionWithSize.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsCollectionWithSize.html new file mode 100644 index 000000000..3610bffcd --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsCollectionWithSize.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsCollectionWithSize (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsCollectionWithSize

+
+No usage of org.hamcrest.collection.IsCollectionWithSize +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyCollection.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyCollection.html new file mode 100644 index 000000000..6ada8b465 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyCollection.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsEmptyCollection (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsEmptyCollection

+
+No usage of org.hamcrest.collection.IsEmptyCollection +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyIterable.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyIterable.html new file mode 100644 index 000000000..1b5f2ba62 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsEmptyIterable.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsEmptyIterable (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsEmptyIterable

+
+No usage of org.hamcrest.collection.IsEmptyIterable +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsIn.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsIn.html new file mode 100644 index 000000000..a6e7f0c52 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsIn.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsIn (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsIn

+
+No usage of org.hamcrest.collection.IsIn +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInAnyOrder.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInAnyOrder.html new file mode 100644 index 000000000..7d4ac39c2 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInAnyOrder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsIterableContainingInAnyOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsIterableContainingInAnyOrder

+
+No usage of org.hamcrest.collection.IsIterableContainingInAnyOrder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInOrder.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInOrder.html new file mode 100644 index 000000000..c2682f149 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableContainingInOrder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsIterableContainingInOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsIterableContainingInOrder

+
+No usage of org.hamcrest.collection.IsIterableContainingInOrder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableWithSize.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableWithSize.html new file mode 100644 index 000000000..c13202d1a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsIterableWithSize.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsIterableWithSize (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsIterableWithSize

+
+No usage of org.hamcrest.collection.IsIterableWithSize +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/class-use/IsMapContaining.html b/javadoc/1.3/org/hamcrest/collection/class-use/IsMapContaining.html new file mode 100644 index 000000000..f403a39da --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/class-use/IsMapContaining.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.collection.IsMapContaining (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.collection.IsMapContaining

+
+No usage of org.hamcrest.collection.IsMapContaining +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/package-frame.html b/javadoc/1.3/org/hamcrest/collection/package-frame.html new file mode 100644 index 000000000..d6d103962 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/package-frame.html @@ -0,0 +1,56 @@ + + + + + + +org.hamcrest.collection (Hamcrest) + + + + + + + + + + + +org.hamcrest.collection + + + + +
+Classes  + +
+IsArray +
+IsArrayContaining +
+IsArrayContainingInAnyOrder +
+IsArrayContainingInOrder +
+IsArrayWithSize +
+IsCollectionWithSize +
+IsEmptyCollection +
+IsEmptyIterable +
+IsIn +
+IsIterableContainingInAnyOrder +
+IsIterableContainingInOrder +
+IsIterableWithSize +
+IsMapContaining
+ + + + diff --git a/javadoc/1.3/org/hamcrest/collection/package-summary.html b/javadoc/1.3/org/hamcrest/collection/package-summary.html new file mode 100644 index 000000000..42b1d1ed3 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/package-summary.html @@ -0,0 +1,220 @@ + + + + + + +org.hamcrest.collection (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.collection +

+Matchers of arrays and collections. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
IsArray<T>Matcher for array whose elements satisfy a sequence of matchers.
IsArrayContaining<T>Matches if an array contains an item satisfying a nested matcher.
IsArrayContainingInAnyOrder<E> 
IsArrayContainingInOrder<E> 
IsArrayWithSize<E>Matches if array size satisfies a nested matcher.
IsCollectionWithSize<E>Matches if collection size satisfies a nested matcher.
IsEmptyCollection<E>Tests if collection is empty.
IsEmptyIterable<E>Tests if collection is empty.
IsIn<T> 
IsIterableContainingInAnyOrder<T> 
IsIterableContainingInOrder<E> 
IsIterableWithSize<E> 
IsMapContaining<K,V> 
+  + +

+

+Package org.hamcrest.collection Description +

+ +

+

Matchers of arrays and collections.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/package-tree.html b/javadoc/1.3/org/hamcrest/collection/package-tree.html new file mode 100644 index 000000000..52dd0cd2f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +org.hamcrest.collection Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.collection +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/collection/package-use.html b/javadoc/1.3/org/hamcrest/collection/package-use.html new file mode 100644 index 000000000..5a8c45e86 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/collection/package-use.html @@ -0,0 +1,189 @@ + + + + + + +Uses of Package org.hamcrest.collection (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.collection

+
+ + + + + + + + + + + + + +
+Packages that use org.hamcrest.collection
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.collectionMatchers of arrays and collections. 
+  +

+ + + + + + + + +
+Classes in org.hamcrest.collection used by org.hamcrest
IsArray + +
+          Matcher for array whose elements satisfy a sequence of matchers.
+  +

+ + + + + + + + +
+Classes in org.hamcrest.collection used by org.hamcrest.collection
IsArray + +
+          Matcher for array whose elements satisfy a sequence of matchers.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/AllOf.html b/javadoc/1.3/org/hamcrest/core/AllOf.html new file mode 100644 index 000000000..16ae7fcbe --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/AllOf.html @@ -0,0 +1,556 @@ + + + + + + +AllOf (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

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

+Calculates the logical conjunction of multiple matchers. Evaluation is shortcut, so + subsequent matchers are not called if an earlier matcher returns false. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AllOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
allOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+static + + + + +
+<T> Matcher<T>
+
allOf(Matcher<? super T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(java.lang.Object o, + Description mismatch) + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.DiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.Object o,
+                       Description mismatch)
+
+
+
Specified by:
matches in class DiagnosingMatcher<T>
+
+
+
+
+
+
+ +

+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(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T>... matchers)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth,
+                                   Matcher<? super T> fifth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+
+ +

+allOf

+
+public static <T> Matcher<T> allOf(Matcher<? super T> first,
+                                   Matcher<? super T> second,
+                                   Matcher<? super T> third,
+                                   Matcher<? super T> fourth,
+                                   Matcher<? super T> fifth,
+                                   Matcher<? super T> sixth)
+
+
Creates a matcher that matches if the examined object matches ALL of the specified matchers. +

+ For example: +

assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/AnyOf.html b/javadoc/1.3/org/hamcrest/core/AnyOf.html new file mode 100644 index 000000000..b54cb30ee --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/AnyOf.html @@ -0,0 +1,598 @@ + + + + + + +AnyOf (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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 multiple matchers. Evaluation is shortcut, so + subsequent matchers are not called if an earlier matcher returns true. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
AnyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> AnyOf<T>
+
anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ voiddescribeTo(Description description, + java.lang.String operator) + +
+           
+ booleanmatches(java.lang.Object o) + +
+          Evaluates the matcher for argument item.
+protected  booleanmatches(java.lang.Object o, + boolean shortcut) + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

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

+AnyOf

+
+public AnyOf(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.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. +

+

+
Specified by:
matches in interface Matcher<T>
+
+
+
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. +

+

+
Specified by:
describeTo in interface SelfDescribing
+
+
+
Parameters:
description - The description to be built or appended to.
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(java.lang.Iterable<Matcher<? super T>> matchers)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth,
+                                 Matcher<? super T> fifth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+anyOf

+
+public static <T> AnyOf<T> anyOf(Matcher<T> first,
+                                 Matcher<? super T> second,
+                                 Matcher<? super T> third,
+                                 Matcher<? super T> fourth,
+                                 Matcher<? super T> fifth,
+                                 Matcher<? super T> sixth)
+
+
Creates a matcher that matches if the examined object matches ANY of the specified matchers. +

+ For example: +

assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+

+

+
+
+
+
+ +

+matches

+
+protected boolean matches(java.lang.Object o,
+                          boolean shortcut)
+
+
+
+
+
+
+ +

+describeTo

+
+public void describeTo(Description description,
+                       java.lang.String operator)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableBothMatcher.html b/javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableBothMatcher.html new file mode 100644 index 000000000..a4aa58cd9 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableBothMatcher.html @@ -0,0 +1,255 @@ + + + + + + +CombinableMatcher.CombinableBothMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class CombinableMatcher.CombinableBothMatcher<X>

+
+java.lang.Object
+  extended by org.hamcrest.core.CombinableMatcher.CombinableBothMatcher<X>
+
+
+
Enclosing class:
CombinableMatcher<T>
+
+
+
+
public static final class CombinableMatcher.CombinableBothMatcher<X>
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CombinableMatcher.CombinableBothMatcher(Matcher<? super X> matcher) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ CombinableMatcher<X>and(Matcher<? super X> other) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+CombinableMatcher.CombinableBothMatcher

+
+public CombinableMatcher.CombinableBothMatcher(Matcher<? super X> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+and

+
+public CombinableMatcher<X> and(Matcher<? super X> other)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html b/javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html new file mode 100644 index 000000000..4981f839d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/CombinableMatcher.CombinableEitherMatcher.html @@ -0,0 +1,255 @@ + + + + + + +CombinableMatcher.CombinableEitherMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class CombinableMatcher.CombinableEitherMatcher<X>

+
+java.lang.Object
+  extended by org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher<X>
+
+
+
Enclosing class:
CombinableMatcher<T>
+
+
+
+
public static final class CombinableMatcher.CombinableEitherMatcher<X>
extends java.lang.Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
CombinableMatcher.CombinableEitherMatcher(Matcher<? super X> matcher) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ CombinableMatcher<X>or(Matcher<? super X> other) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+CombinableMatcher.CombinableEitherMatcher

+
+public CombinableMatcher.CombinableEitherMatcher(Matcher<? super X> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+or

+
+public CombinableMatcher<X> or(Matcher<? super X> other)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/CombinableMatcher.html b/javadoc/1.3/org/hamcrest/core/CombinableMatcher.html new file mode 100644 index 000000000..88aa7dc22 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/CombinableMatcher.html @@ -0,0 +1,433 @@ + + + + + + +CombinableMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

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

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+static classCombinableMatcher.CombinableBothMatcher<X> + +
+           
+static classCombinableMatcher.CombinableEitherMatcher<X> + +
+           
+  + + + + + + + + + + +
+Constructor Summary
CombinableMatcher(Matcher<? super T> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ CombinableMatcher<T>and(Matcher<? super T> other) + +
+           
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+protected  booleanmatchesSafely(T item, + Description mismatch) + +
+          Subclasses should implement this.
+ CombinableMatcher<T>or(Matcher<? super T> other) + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+CombinableMatcher

+
+public CombinableMatcher(Matcher<? super T> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+protected boolean matchesSafely(T item,
+                                Description mismatch)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<T>
+
+
+
+
+
+
+ +

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

+and

+
+public CombinableMatcher<T> and(Matcher<? super T> other)
+
+
+
+
+
+
+ +

+or

+
+public CombinableMatcher<T> or(Matcher<? super T> other)
+
+
+
+
+
+
+ +

+both

+
+public static <LHS> CombinableMatcher.CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher)
+
+
Creates a matcher that matches when both of the specified matchers match the examined object. +

+ For example: +

assertThat("fab", both(containsString("a")).and(containsString("b")))
+

+

+
+
+
+
+ +

+either

+
+public static <LHS> CombinableMatcher.CombinableEitherMatcher<LHS> either(Matcher<? super LHS> matcher)
+
+
Creates a matcher that matches when either of the specified matchers match the examined object. +

+ For example: +

assertThat("fan", either(containsString("a")).and(containsString("b")))
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/DescribedAs.html b/javadoc/1.3/org/hamcrest/core/DescribedAs.html new file mode 100644 index 000000000..d120cc606 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/DescribedAs.html @@ -0,0 +1,373 @@ + + + + + + +DescribedAs (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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(java.lang.String descriptionTemplate, + Matcher<T> matcher, + java.lang.Object[] values) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
describedAs(java.lang.String description, + Matcher<T> matcher, + java.lang.Object... values) + +
+          Wraps an existing matcher, overriding its description with that specified.
+ voiddescribeMismatch(java.lang.Object item, + Description description) + +
+          Generate a description of why the matcher has not accepted the item.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(java.lang.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(java.lang.String descriptionTemplate,
+                   Matcher<T> matcher,
+                   java.lang.Object[] values)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.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.
+
+
+
+ +

+describeMismatch

+
+public void describeMismatch(java.lang.Object item,
+                             Description description)
+
+
Description copied from interface: Matcher
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
Specified by:
describeMismatch in interface Matcher<T>
Overrides:
describeMismatch in class BaseMatcher<T>
+
+
+
Parameters:
item - The item that the Matcher has rejected.
description - The description to be built or appended to.
+
+
+
+ +

+describedAs

+
+public static <T> Matcher<T> describedAs(java.lang.String description,
+                                         Matcher<T> matcher,
+                                         java.lang.Object... values)
+
+
Wraps an existing matcher, overriding its description with that specified. All other functions are + delegated to the decorated matcher, including its mismatch description. +

+ For example: +

describedAs("a big decimal equal to %0", equalTo(myBigDecimal), myBigDecimal.toPlainString())
+

+

+
Parameters:
description - the new description for the wrapped matcher
matcher - the matcher to wrap
values - optional values to insert into the tokenised description
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/Every.html b/javadoc/1.3/org/hamcrest/core/Every.html new file mode 100644 index 000000000..ddc96f992 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/Every.html @@ -0,0 +1,343 @@ + + + + + + +Every (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Every(Matcher<? super T> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<U> Matcher<java.lang.Iterable<U>>
+
everyItem(Matcher<U> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher.
+ booleanmatchesSafely(java.lang.Iterable<T> collection, + Description mismatchDescription) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+Every

+
+public Every(Matcher<? super T> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.Iterable<T> collection,
+                             Description mismatchDescription)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<java.lang.Iterable<T>>
+
+
+
+
+
+
+ +

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

+everyItem

+
+public static <U> Matcher<java.lang.Iterable<U>> everyItem(Matcher<U> itemMatcher)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields items that are all matched by the specified + itemMatcher. +

+ For example: +

assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))
+

+

+
Parameters:
itemMatcher - the matcher to apply to every item provided by the examined Iterable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/Is.html b/javadoc/1.3/org/hamcrest/core/Is.html new file mode 100644 index 000000000..bcfff1c27 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/Is.html @@ -0,0 +1,474 @@ + + + + + + +Is (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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 behaviour but allowing tests + to be slightly more expressive. + + For example: assertThat(cheese, equalTo(smelly)) + vs. assertThat(cheese, is(equalTo(smelly))) +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
Is(Matcher<T> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatch(java.lang.Object item, + Description mismatchDescription) + +
+          Generate a description of why the matcher has not accepted the item.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T>
+
is(java.lang.Class<T> type) + +
+          Deprecated. use isA(Class type) instead.
+static + + + + +
+<T> Matcher<T>
+
is(Matcher<T> matcher) + +
+          Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive.
+static + + + + +
+<T> Matcher<T>
+
is(T value) + +
+          A shortcut to the frequently used is(equalTo(x)).
+static + + + + +
+<T> Matcher<T>
+
isA(java.lang.Class<T> type) + +
+          A shortcut to the frequently used is(instanceOf(SomeClass.class)).
+ booleanmatches(java.lang.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(java.lang.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.
+
+
+
+ +

+describeMismatch

+
+public void describeMismatch(java.lang.Object item,
+                             Description mismatchDescription)
+
+
Description copied from interface: Matcher
+
Generate a description of why the matcher has not accepted the item. + The description will be part of a larger description of why a matching + failed, so it should be concise. + This method assumes that matches(item) is false, but + will not check this. +

+

+
Specified by:
describeMismatch in interface Matcher<T>
Overrides:
describeMismatch in class BaseMatcher<T>
+
+
+
Parameters:
item - The item that the Matcher has rejected.
mismatchDescription - The description to be built or appended to.
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(Matcher<T> matcher)
+
+
Decorates another Matcher, retaining its behaviour, but allowing tests + to be slightly more expressive. +

+ For example: +

assertThat(cheese, is(equalTo(smelly)))
+ instead of: +
assertThat(cheese, equalTo(smelly))
+

+

+
+
+
+
+ +

+is

+
+public static <T> Matcher<T> is(T value)
+
+
A shortcut to the frequently used is(equalTo(x)). +

+ For example: +

assertThat(cheese, is(smelly))
+ instead of: +
assertThat(cheese, is(equalTo(smelly)))
+

+

+
+
+
+
+ +

+is

+
+@Deprecated
+public static <T> Matcher<T> is(java.lang.Class<T> type)
+
+
Deprecated. use isA(Class type) instead. +

+

A shortcut to the frequently used is(instanceOf(SomeClass.class)). +

+ For example: +

assertThat(cheese, is(Cheddar.class))
+ instead of: +
assertThat(cheese, is(instanceOf(Cheddar.class)))
+

+

+
+
+
+
+ +

+isA

+
+public static <T> Matcher<T> isA(java.lang.Class<T> type)
+
+
A shortcut to the frequently used is(instanceOf(SomeClass.class)). +

+ For example: +

assertThat(cheese, isA(Cheddar.class))
+ instead of: +
assertThat(cheese, is(instanceOf(Cheddar.class)))
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsAnything.html b/javadoc/1.3/org/hamcrest/core/IsAnything.html new file mode 100644 index 000000000..41e0bf71d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsAnything.html @@ -0,0 +1,360 @@ + + + + + + +IsAnything (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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(java.lang.String message) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Matcher<java.lang.Object>anything() + +
+          Creates a matcher that always matches, regardless of the examined object.
+static Matcher<java.lang.Object>anything(java.lang.String description) + +
+          Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatches(java.lang.Object o) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, 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(java.lang.String message)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.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 Matcher<java.lang.Object> anything()
+
+
Creates a matcher that always matches, regardless of the examined object. +

+

+
+
+
+
+ +

+anything

+
+public static Matcher<java.lang.Object> anything(java.lang.String description)
+
+
Creates a matcher that always matches, regardless of the examined object, but describes + itself with the specified String. +

+

+
Parameters:
description - a meaningful String used when describing itself
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsCollectionContaining.html b/javadoc/1.3/org/hamcrest/core/IsCollectionContaining.html new file mode 100644 index 000000000..25ca4104b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsCollectionContaining.html @@ -0,0 +1,452 @@ + + + + + + +IsCollectionContaining (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsCollectionContaining(Matcher<? super T> elementMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
hasItem(Matcher<? super T> itemMatcher) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher.
+static + + + + +
+<T> Matcher<java.lang.Iterable<? super T>>
+
hasItem(T item) + +
+          Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
hasItems(Matcher<? super T>... itemMatchers) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers.
+static + + + + +
+<T> Matcher<java.lang.Iterable<T>>
+
hasItems(T... items) + +
+          Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items.
+protected  booleanmatchesSafely(java.lang.Iterable<? super T> collection, + Description mismatchDescription) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsCollectionContaining

+
+public IsCollectionContaining(Matcher<? super T> elementMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+protected boolean matchesSafely(java.lang.Iterable<? super T> collection,
+                                Description mismatchDescription)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<java.lang.Iterable<? super T>>
+
+
+
+
+
+
+ +

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

+hasItem

+
+public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(Matcher<? super T> itemMatcher)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is matched by the specified + itemMatcher. Whilst matching, the traversal of the examined Iterable + will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasItem(startsWith("ba")))
+

+

+
Parameters:
itemMatcher - the matcher to apply to items provided by the examined Iterable
+
+
+
+ +

+hasItem

+
+public static <T> Matcher<java.lang.Iterable<? super T>> hasItem(T item)
+
+
Creates a matcher for Iterables that only matches when a single pass over the + examined Iterable yields at least one item that is equal to the specified + item. Whilst matching, the traversal of the examined Iterable + will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar"), hasItem("bar"))
+

+

+
Parameters:
item - the item to compare against the items provided by the examined Iterable
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<java.lang.Iterable<T>> hasItems(Matcher<? super T>... itemMatchers)
+
+
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is matched by the corresponding + matcher from the specified itemMatchers. Whilst matching, each traversal of + the examined Iterable will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar", "baz"), hasItems(endsWith("z"), endsWith("o")))
+

+

+
Parameters:
itemMatchers - the matchers to apply to items provided by the examined Iterable
+
+
+
+ +

+hasItems

+
+public static <T> Matcher<java.lang.Iterable<T>> hasItems(T... items)
+
+
Creates a matcher for Iterables that matches when consecutive passes over the + examined Iterable yield at least one item that is equal to the corresponding + item from the specified items. Whilst matching, each traversal of the + examined Iterable will stop as soon as a matching item is found. +

+ For example: +

assertThat(Arrays.asList("foo", "bar", "baz"), hasItems("baz", "foo"))
+

+

+
Parameters:
items - the items to compare against the items provided by the examined Iterable
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsEqual.html b/javadoc/1.3/org/hamcrest/core/IsEqual.html new file mode 100644 index 000000000..857522d96 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsEqual.html @@ -0,0 +1,352 @@ + + + + + + +IsEqual (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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) + +
+          Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object.
+ booleanmatches(java.lang.Object actualValue) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, 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(java.lang.Object actualValue)
+
+
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:
actualValue - 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)
+
+
Creates a matcher that matches when the examined object is logically equal to the specified + operand, as determined by calling the Object.equals(java.lang.Object) method on + the examined object. + +

If the specified operand is null then the created matcher will only match if + the examined object's equals method returns true when passed a + null (which would be a violation of the equals contract), unless the + examined object itself is null, in which case the matcher will return a positive + match.

+ +

The created matcher provides a special behaviour when examining Arrays, whereby + it will match if both the operand and the examined object are arrays of the same length and + contain items that are equal to each other (according to the above rules) in the same + indexes.

+

+ For example: +

+ assertThat("foo", equalTo("foo"));
+ assertThat(new String[] {"foo", "bar"}, equalTo(new String[] {"foo", "bar"}));
+ 
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsInstanceOf.html b/javadoc/1.3/org/hamcrest/core/IsInstanceOf.html new file mode 100644 index 000000000..f2986c738 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsInstanceOf.html @@ -0,0 +1,390 @@ + + + + + + +IsInstanceOf (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class IsInstanceOf

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

+Tests whether the value is an instance of a class. + Classes of basic types will be converted to the relevant "Object" classes +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsInstanceOf(java.lang.Class<?> expectedClass) + +
+          Creates a new instance of IsInstanceOf
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> Matcher<T>
+
any(java.lang.Class<T> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T> Matcher<T>
+
instanceOf(java.lang.Class<?> type) + +
+          Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object.
+protected  booleanmatches(java.lang.Object item, + Description mismatch) + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.DiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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(java.lang.Class<?> expectedClass)
+
+
Creates a new instance of IsInstanceOf +

+

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

+matches

+
+protected boolean matches(java.lang.Object item,
+                          Description mismatch)
+
+
+
Specified by:
matches in class DiagnosingMatcher<java.lang.Object>
+
+
+
+
+
+
+ +

+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 <T> Matcher<T> instanceOf(java.lang.Class<?> type)
+
+
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. + +

The created matcher assumes no relationship between specified type and the examined object.

+

+ For example: +

assertThat(new Canoe(), instanceOf(Paddlable.class));
+

+

+
+
+
+
+ +

+any

+
+public static <T> Matcher<T> any(java.lang.Class<T> type)
+
+
Creates a matcher that matches when the examined object is an instance of the specified type, + as determined by calling the Class.isInstance(Object) method on that type, passing the + the examined object. + +

The created matcher forces a relationship between specified type and the examined object, and should be + used when it is necessary to make generics conform, for example in the JMock clause + with(any(Thing.class))

+

+ For example: +

assertThat(new Canoe(), instanceOf(Canoe.class));
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsNot.html b/javadoc/1.3/org/hamcrest/core/IsNot.html new file mode 100644 index 000000000..d9574e837 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsNot.html @@ -0,0 +1,368 @@ + + + + + + +IsNot (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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(java.lang.Object arg) + +
+          Evaluates the matcher for argument item.
+static + + + + +
+<T> Matcher<T>
+
not(Matcher<T> matcher) + +
+          Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match.
+static + + + + +
+<T> Matcher<T>
+
not(T value) + +
+          A shortcut to the frequently used not(equalTo(x)).
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, 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(java.lang.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)
+
+
Creates a matcher that wraps an existing matcher, but inverts the logic by which + it will match. +

+ For example: +

assertThat(cheese, is(not(equalTo(smelly))))
+

+

+
Parameters:
matcher - the matcher whose sense should be inverted
+
+
+
+ +

+not

+
+public static <T> Matcher<T> not(T value)
+
+
A shortcut to the frequently used not(equalTo(x)). +

+ For example: +

assertThat(cheese, is(not(smelly)))
+ instead of: +
assertThat(cheese, is(not(equalTo(smelly))))
+

+

+
Parameters:
value - the value that any examined object should not equal
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsNull.html b/javadoc/1.3/org/hamcrest/core/IsNull.html new file mode 100644 index 000000000..a1f30d65e --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsNull.html @@ -0,0 +1,418 @@ + + + + + + +IsNull (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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(java.lang.Object o) + +
+          Evaluates the matcher for argument item.
+static Matcher<java.lang.Object>notNullValue() + +
+          A shortcut to the frequently used not(nullValue()).
+static + + + + +
+<T> Matcher<T>
+
notNullValue(java.lang.Class<T> type) + +
+          A shortcut to the frequently used not(nullValue(X.class)).
+static Matcher<java.lang.Object>nullValue() + +
+          Creates a matcher that matches if examined object is null.
+static + + + + +
+<T> Matcher<T>
+
nullValue(java.lang.Class<T> type) + +
+          Creates a matcher that matches if examined object is null.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, 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(java.lang.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 Matcher<java.lang.Object> nullValue()
+
+
Creates a matcher that matches if examined object is null. +

+ For example: +

assertThat(cheese, is(nullValue())
+

+

+
+
+
+
+ +

+notNullValue

+
+public static Matcher<java.lang.Object> notNullValue()
+
+
A shortcut to the frequently used not(nullValue()). +

+ For example: +

assertThat(cheese, is(notNullValue()))
+ instead of: +
assertThat(cheese, is(not(nullValue())))
+

+

+
+
+
+
+ +

+nullValue

+
+public static <T> Matcher<T> nullValue(java.lang.Class<T> type)
+
+
Creates a matcher that matches if examined object is null. Accepts a + single dummy argument to facilitate type inference. +

+ For example: +

assertThat(cheese, is(nullValue(Cheese.class))
+

+

+
Parameters:
type - dummy parameter used to infer the generic type of the returned matcher
+
+
+
+ +

+notNullValue

+
+public static <T> Matcher<T> notNullValue(java.lang.Class<T> type)
+
+
A shortcut to the frequently used not(nullValue(X.class)). Accepts a + single dummy argument to facilitate type inference.. +

+ For example: +

assertThat(cheese, is(notNullValue(X.class)))
+ instead of: +
assertThat(cheese, is(not(nullValue(X.class))))
+

+

+
Parameters:
type - dummy parameter used to infer the generic type of the returned matcher
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/IsSame.html b/javadoc/1.3/org/hamcrest/core/IsSame.html new file mode 100644 index 000000000..8a4f32b7a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/IsSame.html @@ -0,0 +1,362 @@ + + + + + + +IsSame (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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(java.lang.Object arg) + +
+          Evaluates the matcher for argument item.
+static + + + + +
+<T> Matcher<T>
+
sameInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+static + + + + +
+<T> Matcher<T>
+
theInstance(T target) + +
+          Creates a matcher that matches only when the examined object is the same instance as + the specified target object.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, 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(java.lang.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 target)
+
+
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +

+

+
Parameters:
target - the target instance against which others should be assessed
+
+
+
+ +

+theInstance

+
+public static <T> Matcher<T> theInstance(T target)
+
+
Creates a matcher that matches only when the examined object is the same instance as + the specified target object. +

+

+
Parameters:
target - the target instance against which others should be assessed
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/StringContains.html b/javadoc/1.3/org/hamcrest/core/StringContains.html new file mode 100644 index 000000000..1f044d14b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/StringContains.html @@ -0,0 +1,358 @@ + + + + + + +StringContains (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class StringContains

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

+Tests if the argument is a string that contains a substring. +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.hamcrest.core.SubstringMatcher
substring
+  + + + + + + + + + + +
+Constructor Summary
StringContains(java.lang.String substring) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Matcher<java.lang.String>containsString(java.lang.String substring) + +
+          Creates a matcher that matches if the examined String contains the specified + String anywhere.
+protected  booleanevalSubstringOf(java.lang.String s) + +
+           
+protected  java.lang.Stringrelationship() + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.core.SubstringMatcher
describeMismatchSafely, describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+StringContains

+
+public StringContains(java.lang.String substring)
+
+
+ + + + + + + + +
+Method Detail
+ +

+evalSubstringOf

+
+protected boolean evalSubstringOf(java.lang.String s)
+
+
+
Specified by:
evalSubstringOf in class SubstringMatcher
+
+
+
+
+
+
+ +

+relationship

+
+protected java.lang.String relationship()
+
+
+
Specified by:
relationship in class SubstringMatcher
+
+
+
+
+
+
+ +

+containsString

+
+public static Matcher<java.lang.String> containsString(java.lang.String substring)
+
+
Creates a matcher that matches if the examined String contains the specified + String anywhere. +

+ For example: +

assertThat("myStringOfNote", containsString("ring"))
+

+

+
Parameters:
substring - the substring that the returned matcher will expect to find within any examined string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/StringEndsWith.html b/javadoc/1.3/org/hamcrest/core/StringEndsWith.html new file mode 100644 index 000000000..b8c39c0c9 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/StringEndsWith.html @@ -0,0 +1,358 @@ + + + + + + +StringEndsWith (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class StringEndsWith

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

+Tests if the argument is a string that contains a substring. +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.hamcrest.core.SubstringMatcher
substring
+  + + + + + + + + + + +
+Constructor Summary
StringEndsWith(java.lang.String substring) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Matcher<java.lang.String>endsWith(java.lang.String suffix) + +
+          Creates a matcher that matches if the examined String ends with the specified + String.
+protected  booleanevalSubstringOf(java.lang.String s) + +
+           
+protected  java.lang.Stringrelationship() + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.core.SubstringMatcher
describeMismatchSafely, describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+StringEndsWith

+
+public StringEndsWith(java.lang.String substring)
+
+
+ + + + + + + + +
+Method Detail
+ +

+evalSubstringOf

+
+protected boolean evalSubstringOf(java.lang.String s)
+
+
+
Specified by:
evalSubstringOf in class SubstringMatcher
+
+
+
+
+
+
+ +

+relationship

+
+protected java.lang.String relationship()
+
+
+
Specified by:
relationship in class SubstringMatcher
+
+
+
+
+
+
+ +

+endsWith

+
+public static Matcher<java.lang.String> endsWith(java.lang.String suffix)
+
+
Creates a matcher that matches if the examined String ends with the specified + String. +

+ For example: +

assertThat("myStringOfNote", endsWith("Note"))
+

+

+
Parameters:
suffix - the substring that the returned matcher will expect at the end of any examined string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/StringStartsWith.html b/javadoc/1.3/org/hamcrest/core/StringStartsWith.html new file mode 100644 index 000000000..e334cc83f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/StringStartsWith.html @@ -0,0 +1,358 @@ + + + + + + +StringStartsWith (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class StringStartsWith

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

+Tests if the argument is a string that contains a substring. +

+ +

+


+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.hamcrest.core.SubstringMatcher
substring
+  + + + + + + + + + + +
+Constructor Summary
StringStartsWith(java.lang.String substring) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  booleanevalSubstringOf(java.lang.String s) + +
+           
+protected  java.lang.Stringrelationship() + +
+           
+static Matcher<java.lang.String>startsWith(java.lang.String prefix) + +
+          Creates a matcher that matches if the examined String starts with the specified + String.
+ + + + + + + +
Methods inherited from class org.hamcrest.core.SubstringMatcher
describeMismatchSafely, describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+StringStartsWith

+
+public StringStartsWith(java.lang.String substring)
+
+
+ + + + + + + + +
+Method Detail
+ +

+evalSubstringOf

+
+protected boolean evalSubstringOf(java.lang.String s)
+
+
+
Specified by:
evalSubstringOf in class SubstringMatcher
+
+
+
+
+
+
+ +

+relationship

+
+protected java.lang.String relationship()
+
+
+
Specified by:
relationship in class SubstringMatcher
+
+
+
+
+
+
+ +

+startsWith

+
+public static Matcher<java.lang.String> startsWith(java.lang.String prefix)
+
+
Creates a matcher that matches if the examined String starts with the specified + String. +

+ For example: +

assertThat("myStringOfNote", startsWith("my"))
+

+

+
Parameters:
prefix - the substring that the returned matcher will expect at the start of any examined string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/SubstringMatcher.html b/javadoc/1.3/org/hamcrest/core/SubstringMatcher.html new file mode 100644 index 000000000..4fd64d41e --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/SubstringMatcher.html @@ -0,0 +1,413 @@ + + + + + + +SubstringMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.core +
+Class SubstringMatcher

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.String>
+          extended by org.hamcrest.core.SubstringMatcher
+
+
+
All Implemented Interfaces:
Matcher<java.lang.String>, SelfDescribing
+
+
+
Direct Known Subclasses:
StringContains, StringEndsWith, StringStartsWith
+
+
+
+
public abstract class SubstringMatcher
extends TypeSafeMatcher<java.lang.String>
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  java.lang.Stringsubstring + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected SubstringMatcher(java.lang.String substring) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+protected abstract  booleanevalSubstringOf(java.lang.String string) + +
+           
+ booleanmatchesSafely(java.lang.String item) + +
+          Subclasses should implement this.
+protected abstract  java.lang.Stringrelationship() + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+  +

+ + + + + + + + +
+Field Detail
+ +

+substring

+
+protected final java.lang.String substring
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+SubstringMatcher

+
+protected SubstringMatcher(java.lang.String substring)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.String item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.String item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

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

+evalSubstringOf

+
+protected abstract boolean evalSubstringOf(java.lang.String string)
+
+
+
+
+
+
+ +

+relationship

+
+protected abstract java.lang.String relationship()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/AllOf.html b/javadoc/1.3/org/hamcrest/core/class-use/AllOf.html new file mode 100644 index 000000000..6554c1dff --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/AllOf.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.AllOf (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.AllOf

+
+No usage of org.hamcrest.core.AllOf +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/AnyOf.html b/javadoc/1.3/org/hamcrest/core/class-use/AnyOf.html new file mode 100644 index 000000000..b23820ede --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/AnyOf.html @@ -0,0 +1,553 @@ + + + + + + +Uses of Class org.hamcrest.core.AnyOf (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.AnyOf

+
+ + + + + + + + + + + + + +
+Packages that use AnyOf
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + +
+Uses of AnyOf in org.hamcrest
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest that return AnyOf
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
Matchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
CoreMatchers.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+  +

+ + + + + +
+Uses of AnyOf in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.core that return AnyOf
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(java.lang.Iterable<Matcher<? super T>> matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<? super T>... matchers) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+static + + + + +
+<T> AnyOf<T>
+
AnyOf.anyOf(Matcher<T> first, + Matcher<? super T> second, + Matcher<? super T> third, + Matcher<? super T> fourth, + Matcher<? super T> fifth, + Matcher<? super T> sixth) + +
+          Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableBothMatcher.html b/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableBothMatcher.html new file mode 100644 index 000000000..729bc2a8d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableBothMatcher.html @@ -0,0 +1,238 @@ + + + + + + +Uses of Class org.hamcrest.core.CombinableMatcher.CombinableBothMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.CombinableMatcher.CombinableBothMatcher

+
+ + + + + + + + + + + + + +
+Packages that use CombinableMatcher.CombinableBothMatcher
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + +
+Uses of CombinableMatcher.CombinableBothMatcher in org.hamcrest
+  +

+ + + + + + + + + + + + + +
Methods in org.hamcrest that return CombinableMatcher.CombinableBothMatcher
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
Matchers.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
CoreMatchers.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+  +

+ + + + + +
+Uses of CombinableMatcher.CombinableBothMatcher in org.hamcrest.core
+  +

+ + + + + + + + + +
Methods in org.hamcrest.core that return CombinableMatcher.CombinableBothMatcher
+static + + + + +
+<LHS> CombinableMatcher.CombinableBothMatcher<LHS>
+
CombinableMatcher.both(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when both of the specified matchers match the examined object.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableEitherMatcher.html b/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableEitherMatcher.html new file mode 100644 index 000000000..932603a3e --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.CombinableEitherMatcher.html @@ -0,0 +1,238 @@ + + + + + + +Uses of Class org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher

+
+ + + + + + + + + + + + + +
+Packages that use CombinableMatcher.CombinableEitherMatcher
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + +
+Uses of CombinableMatcher.CombinableEitherMatcher in org.hamcrest
+  +

+ + + + + + + + + + + + + +
Methods in org.hamcrest that return CombinableMatcher.CombinableEitherMatcher
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
Matchers.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
CoreMatchers.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+  +

+ + + + + +
+Uses of CombinableMatcher.CombinableEitherMatcher in org.hamcrest.core
+  +

+ + + + + + + + + +
Methods in org.hamcrest.core that return CombinableMatcher.CombinableEitherMatcher
+static + + + + +
+<LHS> CombinableMatcher.CombinableEitherMatcher<LHS>
+
CombinableMatcher.either(Matcher<? super LHS> matcher) + +
+          Creates a matcher that matches when either of the specified matchers match the examined object.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.html b/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.html new file mode 100644 index 000000000..cc3197ab8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/CombinableMatcher.html @@ -0,0 +1,204 @@ + + + + + + +Uses of Class org.hamcrest.core.CombinableMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.CombinableMatcher

+
+ + + + + + + + + +
+Packages that use CombinableMatcher
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + +
+Uses of CombinableMatcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + + + + + +
Methods in org.hamcrest.core that return CombinableMatcher
+ CombinableMatcher<T>CombinableMatcher.and(Matcher<? super T> other) + +
+           
+ CombinableMatcher<X>CombinableMatcher.CombinableBothMatcher.and(Matcher<? super X> other) + +
+           
+ CombinableMatcher<T>CombinableMatcher.or(Matcher<? super T> other) + +
+           
+ CombinableMatcher<X>CombinableMatcher.CombinableEitherMatcher.or(Matcher<? super X> other) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/DescribedAs.html b/javadoc/1.3/org/hamcrest/core/class-use/DescribedAs.html new file mode 100644 index 000000000..097ed6688 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/DescribedAs.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.DescribedAs (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.DescribedAs

+
+No usage of org.hamcrest.core.DescribedAs +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/Every.html b/javadoc/1.3/org/hamcrest/core/class-use/Every.html new file mode 100644 index 000000000..ab3a804d2 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/Every.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.Every (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.Every

+
+No usage of org.hamcrest.core.Every +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/Is.html b/javadoc/1.3/org/hamcrest/core/class-use/Is.html new file mode 100644 index 000000000..9cc6c0831 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/Is.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.Is (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.Is

+
+No usage of org.hamcrest.core.Is +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsAnything.html b/javadoc/1.3/org/hamcrest/core/class-use/IsAnything.html new file mode 100644 index 000000000..22c10c8ca --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsAnything.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsAnything (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsAnything

+
+No usage of org.hamcrest.core.IsAnything +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsCollectionContaining.html b/javadoc/1.3/org/hamcrest/core/class-use/IsCollectionContaining.html new file mode 100644 index 000000000..fb54db596 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsCollectionContaining.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsCollectionContaining (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsCollectionContaining

+
+No usage of org.hamcrest.core.IsCollectionContaining +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsEqual.html b/javadoc/1.3/org/hamcrest/core/class-use/IsEqual.html new file mode 100644 index 000000000..d809056fe --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsEqual.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsEqual (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsEqual

+
+No usage of org.hamcrest.core.IsEqual +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsInstanceOf.html b/javadoc/1.3/org/hamcrest/core/class-use/IsInstanceOf.html new file mode 100644 index 000000000..776bdae0f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsInstanceOf.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsInstanceOf (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsInstanceOf

+
+No usage of org.hamcrest.core.IsInstanceOf +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsNot.html b/javadoc/1.3/org/hamcrest/core/class-use/IsNot.html new file mode 100644 index 000000000..58e54ff22 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsNot.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsNot (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsNot

+
+No usage of org.hamcrest.core.IsNot +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsNull.html b/javadoc/1.3/org/hamcrest/core/class-use/IsNull.html new file mode 100644 index 000000000..467f7fec4 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsNull.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsNull (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsNull

+
+No usage of org.hamcrest.core.IsNull +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/IsSame.html b/javadoc/1.3/org/hamcrest/core/class-use/IsSame.html new file mode 100644 index 000000000..7d6828f5b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/IsSame.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.IsSame (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.IsSame

+
+No usage of org.hamcrest.core.IsSame +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/StringContains.html b/javadoc/1.3/org/hamcrest/core/class-use/StringContains.html new file mode 100644 index 000000000..b943fa212 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/StringContains.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.StringContains (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.StringContains

+
+No usage of org.hamcrest.core.StringContains +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/StringEndsWith.html b/javadoc/1.3/org/hamcrest/core/class-use/StringEndsWith.html new file mode 100644 index 000000000..aa528f8c3 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/StringEndsWith.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.StringEndsWith (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.StringEndsWith

+
+No usage of org.hamcrest.core.StringEndsWith +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/StringStartsWith.html b/javadoc/1.3/org/hamcrest/core/class-use/StringStartsWith.html new file mode 100644 index 000000000..4ad6fd675 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/StringStartsWith.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.core.StringStartsWith (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.StringStartsWith

+
+No usage of org.hamcrest.core.StringStartsWith +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/class-use/SubstringMatcher.html b/javadoc/1.3/org/hamcrest/core/class-use/SubstringMatcher.html new file mode 100644 index 000000000..eb41e08df --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/class-use/SubstringMatcher.html @@ -0,0 +1,196 @@ + + + + + + +Uses of Class org.hamcrest.core.SubstringMatcher (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.core.SubstringMatcher

+
+ + + + + + + + + +
+Packages that use SubstringMatcher
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + +
+Uses of SubstringMatcher in org.hamcrest.core
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of SubstringMatcher in org.hamcrest.core
+ classStringContains + +
+          Tests if the argument is a string that contains a substring.
+ classStringEndsWith + +
+          Tests if the argument is a string that contains a substring.
+ classStringStartsWith + +
+          Tests if the argument is a string that contains a substring.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/package-frame.html b/javadoc/1.3/org/hamcrest/core/package-frame.html new file mode 100644 index 000000000..f88aa74b2 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/package-frame.html @@ -0,0 +1,68 @@ + + + + + + +org.hamcrest.core (Hamcrest) + + + + + + + + + + + +org.hamcrest.core + + + + +
+Classes  + +
+AllOf +
+AnyOf +
+CombinableMatcher +
+CombinableMatcher.CombinableBothMatcher +
+CombinableMatcher.CombinableEitherMatcher +
+DescribedAs +
+Every +
+Is +
+IsAnything +
+IsCollectionContaining +
+IsEqual +
+IsInstanceOf +
+IsNot +
+IsNull +
+IsSame +
+StringContains +
+StringEndsWith +
+StringStartsWith +
+SubstringMatcher
+ + + + diff --git a/javadoc/1.3/org/hamcrest/core/package-summary.html b/javadoc/1.3/org/hamcrest/core/package-summary.html new file mode 100644 index 000000000..9f7a6374f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/package-summary.html @@ -0,0 +1,246 @@ + + + + + + +org.hamcrest.core (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.core +

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

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AllOf<T>Calculates the logical conjunction of multiple matchers.
AnyOf<T>Calculates the logical disjunction of multiple matchers.
CombinableMatcher<T> 
CombinableMatcher.CombinableBothMatcher<X> 
CombinableMatcher.CombinableEitherMatcher<X> 
DescribedAs<T>Provides a custom description to another matcher.
Every<T> 
Is<T>Decorates another Matcher, retaining the behaviour but allowing tests + to be slightly more expressive.
IsAnything<T>A matcher that always returns true.
IsCollectionContaining<T> 
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?
StringContainsTests if the argument is a string that contains a substring.
StringEndsWithTests if the argument is a string that contains a substring.
StringStartsWithTests if the argument is a string that contains a substring.
SubstringMatcher 
+  + +

+

+Package org.hamcrest.core Description +

+ +

+

Fundamental matchers of objects and values, and composite matchers.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/package-tree.html b/javadoc/1.3/org/hamcrest/core/package-tree.html new file mode 100644 index 000000000..c1086a5b3 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/package-tree.html @@ -0,0 +1,164 @@ + + + + + + +org.hamcrest.core Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.core +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/core/package-use.html b/javadoc/1.3/org/hamcrest/core/package-use.html new file mode 100644 index 000000000..65f2c813b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/core/package-use.html @@ -0,0 +1,225 @@ + + + + + + +Uses of Package org.hamcrest.core (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.core

+
+ + + + + + + + + + + + + +
+Packages that use org.hamcrest.core
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
+  +

+ + + + + + + + + + + + + + +
+Classes in org.hamcrest.core used by org.hamcrest
AnyOf + +
+          Calculates the logical disjunction of multiple matchers.
CombinableMatcher.CombinableBothMatcher + +
+           
CombinableMatcher.CombinableEitherMatcher + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest.core used by org.hamcrest.core
AnyOf + +
+          Calculates the logical disjunction of multiple matchers.
CombinableMatcher + +
+           
CombinableMatcher.CombinableBothMatcher + +
+           
CombinableMatcher.CombinableEitherMatcher + +
+           
SubstringMatcher + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/EasyMock2Adapter.html b/javadoc/1.3/org/hamcrest/integration/EasyMock2Adapter.html new file mode 100644 index 000000000..ac9206ceb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/EasyMock2Adapter.html @@ -0,0 +1,319 @@ + + + + + + +EasyMock2Adapter (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.integration +
+Class EasyMock2Adapter

+
+java.lang.Object
+  extended by org.hamcrest.integration.EasyMock2Adapter
+
+
+
All Implemented Interfaces:
org.easymock.IArgumentMatcher
+
+
+
+
public class EasyMock2Adapter
extends java.lang.Object
implements org.easymock.IArgumentMatcher
+ + +

+An adapter allowing a Hamcrest Matcher + to act as an EasyMock IArgumentMatcher. +

+ +

+

+
Author:
+
Joe Walnes
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EasyMock2Adapter(Matcher<?> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static org.easymock.IArgumentMatcheradapt(Matcher<?> matcher) + +
+          Convenience factory method that will adapt a + Hamcrest Matcher to act as an + EasyMock IArgumentMatcher and + report it to EasyMock so it can be kept track of.
+ voidappendTo(java.lang.StringBuffer buffer) + +
+           
+ booleanmatches(java.lang.Object argument) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+EasyMock2Adapter

+
+public EasyMock2Adapter(Matcher<?> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+adapt

+
+public static org.easymock.IArgumentMatcher adapt(Matcher<?> matcher)
+
+
Convenience factory method that will adapt a + Hamcrest Matcher to act as an + EasyMock IArgumentMatcher and + report it to EasyMock so it can be kept track of. +

+

+
+
+
+
+
+
+
+ +

+matches

+
+public boolean matches(java.lang.Object argument)
+
+
+
Specified by:
matches in interface org.easymock.IArgumentMatcher
+
+
+
+
+
+
+ +

+appendTo

+
+public void appendTo(java.lang.StringBuffer buffer)
+
+
+
Specified by:
appendTo in interface org.easymock.IArgumentMatcher
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/JMock1Adapter.html b/javadoc/1.3/org/hamcrest/integration/JMock1Adapter.html new file mode 100644 index 000000000..5ecf2eaad --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/JMock1Adapter.html @@ -0,0 +1,319 @@ + + + + + + +JMock1Adapter (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.integration +
+Class JMock1Adapter

+
+java.lang.Object
+  extended by org.hamcrest.integration.JMock1Adapter
+
+
+
All Implemented Interfaces:
org.jmock.core.Constraint, org.jmock.core.SelfDescribing
+
+
+
+
public class JMock1Adapter
extends java.lang.Object
implements org.jmock.core.Constraint
+ + +

+An adapter allowing a Hamcrest Matcher + to act as an jMock1 Constraint. + Note, this is not necessary for jMock2 as it supports Hamcrest + out of the box. +

+ +

+

+
Author:
+
Joe Walnes
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
JMock1Adapter(Matcher<?> matcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static org.jmock.core.Constraintadapt(Matcher<?> matcher) + +
+          Convenience factory method that will adapt a + Hamcrest Matcher to act as an + jMock Constraint.
+ java.lang.StringBufferdescribeTo(java.lang.StringBuffer buffer) + +
+           
+ booleaneval(java.lang.Object o) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+JMock1Adapter

+
+public JMock1Adapter(Matcher<?> matcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+adapt

+
+public static org.jmock.core.Constraint adapt(Matcher<?> matcher)
+
+
Convenience factory method that will adapt a + Hamcrest Matcher to act as an + jMock Constraint. +

+

+
+
+
+
+
+
+
+ +

+eval

+
+public boolean eval(java.lang.Object o)
+
+
+
Specified by:
eval in interface org.jmock.core.Constraint
+
+
+
+
+
+
+ +

+describeTo

+
+public java.lang.StringBuffer describeTo(java.lang.StringBuffer buffer)
+
+
+
Specified by:
describeTo in interface org.jmock.core.SelfDescribing
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/class-use/EasyMock2Adapter.html b/javadoc/1.3/org/hamcrest/integration/class-use/EasyMock2Adapter.html new file mode 100644 index 000000000..213ea095b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/class-use/EasyMock2Adapter.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.integration.EasyMock2Adapter (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.integration.EasyMock2Adapter

+
+No usage of org.hamcrest.integration.EasyMock2Adapter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/class-use/JMock1Adapter.html b/javadoc/1.3/org/hamcrest/integration/class-use/JMock1Adapter.html new file mode 100644 index 000000000..bbf520631 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/class-use/JMock1Adapter.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.integration.JMock1Adapter (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.integration.JMock1Adapter

+
+No usage of org.hamcrest.integration.JMock1Adapter +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/package-frame.html b/javadoc/1.3/org/hamcrest/integration/package-frame.html new file mode 100644 index 000000000..f4df61ced --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/package-frame.html @@ -0,0 +1,34 @@ + + + + + + +org.hamcrest.integration (Hamcrest) + + + + + + + + + + + +org.hamcrest.integration + + + + +
+Classes  + +
+EasyMock2Adapter +
+JMock1Adapter
+ + + + diff --git a/javadoc/1.3/org/hamcrest/integration/package-summary.html b/javadoc/1.3/org/hamcrest/integration/package-summary.html new file mode 100644 index 000000000..60220711c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/package-summary.html @@ -0,0 +1,163 @@ + + + + + + +org.hamcrest.integration (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.integration +

+ + + + + + + + + + + + + +
+Class Summary
EasyMock2AdapterAn adapter allowing a Hamcrest Matcher + to act as an EasyMock IArgumentMatcher.
JMock1AdapterAn adapter allowing a Hamcrest Matcher + to act as an jMock1 Constraint.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/package-tree.html b/javadoc/1.3/org/hamcrest/integration/package-tree.html new file mode 100644 index 000000000..c51cd3159 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/package-tree.html @@ -0,0 +1,155 @@ + + + + + + +org.hamcrest.integration Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.integration +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+
    +
  • java.lang.Object
      +
    • org.hamcrest.integration.EasyMock2Adapter (implements org.easymock.IArgumentMatcher) +
    • org.hamcrest.integration.JMock1Adapter (implements org.jmock.core.Constraint) +
    +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/integration/package-use.html b/javadoc/1.3/org/hamcrest/integration/package-use.html new file mode 100644 index 000000000..5acbf1cda --- /dev/null +++ b/javadoc/1.3/org/hamcrest/integration/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.hamcrest.integration (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.integration

+
+No usage of org.hamcrest.integration +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/ArrayIterator.html b/javadoc/1.3/org/hamcrest/internal/ArrayIterator.html new file mode 100644 index 000000000..ca7fb70f2 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/ArrayIterator.html @@ -0,0 +1,302 @@ + + + + + + +ArrayIterator (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.internal +
+Class ArrayIterator

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ArrayIterator(java.lang.Object array) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanhasNext() + +
+           
+ java.lang.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(java.lang.Object array)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hasNext

+
+public boolean hasNext()
+
+
+
Specified by:
hasNext in interface java.util.Iterator<java.lang.Object>
+
+
+
+
+
+
+ +

+next

+
+public java.lang.Object next()
+
+
+
Specified by:
next in interface java.util.Iterator<java.lang.Object>
+
+
+
+
+
+
+ +

+remove

+
+public void remove()
+
+
+
Specified by:
remove in interface java.util.Iterator<java.lang.Object>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/ReflectiveTypeFinder.html b/javadoc/1.3/org/hamcrest/internal/ReflectiveTypeFinder.html new file mode 100644 index 000000000..75c3746e8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/ReflectiveTypeFinder.html @@ -0,0 +1,296 @@ + + + + + + +ReflectiveTypeFinder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.internal +
+Class ReflectiveTypeFinder

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ReflectiveTypeFinder(java.lang.String methodName, + int expectedNumberOfParameters, + int typedParameter) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  booleancanObtainExpectedTypeFrom(java.lang.reflect.Method method) + +
+           
+protected  java.lang.Class<?>expectedTypeFrom(java.lang.reflect.Method method) + +
+           
+ java.lang.Class<?>findExpectedType(java.lang.Class<?> fromClass) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

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

+ReflectiveTypeFinder

+
+public ReflectiveTypeFinder(java.lang.String methodName,
+                            int expectedNumberOfParameters,
+                            int typedParameter)
+
+
+ + + + + + + + +
+Method Detail
+ +

+findExpectedType

+
+public java.lang.Class<?> findExpectedType(java.lang.Class<?> fromClass)
+
+
+
+
+
+
+ +

+canObtainExpectedTypeFrom

+
+protected boolean canObtainExpectedTypeFrom(java.lang.reflect.Method method)
+
+
+
Parameters:
method - The method to examine. +
Returns:
true if this method references the relevant type
+
+
+
+ +

+expectedTypeFrom

+
+protected java.lang.Class<?> expectedTypeFrom(java.lang.reflect.Method method)
+
+
+
Parameters:
method - The method from which to extract +
Returns:
The type we're looking for
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/SelfDescribingValue.html b/javadoc/1.3/org/hamcrest/internal/SelfDescribingValue.html new file mode 100644 index 000000000..f3b2f0448 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/SelfDescribingValue.html @@ -0,0 +1,263 @@ + + + + + + +SelfDescribingValue (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +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 java.lang.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/1.3/org/hamcrest/internal/SelfDescribingValueIterator.html b/javadoc/1.3/org/hamcrest/internal/SelfDescribingValueIterator.html new file mode 100644 index 000000000..a5274b34b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/SelfDescribingValueIterator.html @@ -0,0 +1,302 @@ + + + + + + +SelfDescribingValueIterator (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

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

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

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
SelfDescribingValueIterator(java.util.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(java.util.Iterator<T> values)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hasNext

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

+next

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

+remove

+
+public void remove()
+
+
+
Specified by:
remove in interface java.util.Iterator<SelfDescribing>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/class-use/ArrayIterator.html b/javadoc/1.3/org/hamcrest/internal/class-use/ArrayIterator.html new file mode 100644 index 000000000..580dc79f6 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/class-use/ArrayIterator.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.internal.ArrayIterator (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.internal.ArrayIterator

+
+No usage of org.hamcrest.internal.ArrayIterator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/class-use/ReflectiveTypeFinder.html b/javadoc/1.3/org/hamcrest/internal/class-use/ReflectiveTypeFinder.html new file mode 100644 index 000000000..cb3d2f58f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/class-use/ReflectiveTypeFinder.html @@ -0,0 +1,186 @@ + + + + + + +Uses of Class org.hamcrest.internal.ReflectiveTypeFinder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.internal.ReflectiveTypeFinder

+
+ + + + + + + + + +
+Packages that use ReflectiveTypeFinder
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
+  +

+ + + + + +
+Uses of ReflectiveTypeFinder in org.hamcrest
+  +

+ + + + + + + + + + + +
Constructors in org.hamcrest with parameters of type ReflectiveTypeFinder
TypeSafeDiagnosingMatcher(ReflectiveTypeFinder typeFinder) + +
+          Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type.
TypeSafeMatcher(ReflectiveTypeFinder typeFinder) + +
+          Use this constructor if the subclass that implements matchesSafely + is not the class that binds <T> to a type.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValue.html b/javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValue.html new file mode 100644 index 000000000..0e048cce7 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValue.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.internal.SelfDescribingValue (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.internal.SelfDescribingValue

+
+No usage of org.hamcrest.internal.SelfDescribingValue +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValueIterator.html b/javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValueIterator.html new file mode 100644 index 000000000..851d2f413 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/class-use/SelfDescribingValueIterator.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.internal.SelfDescribingValueIterator (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.internal.SelfDescribingValueIterator

+
+No usage of org.hamcrest.internal.SelfDescribingValueIterator +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/package-frame.html b/javadoc/1.3/org/hamcrest/internal/package-frame.html new file mode 100644 index 000000000..b5d9e134d --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/package-frame.html @@ -0,0 +1,38 @@ + + + + + + +org.hamcrest.internal (Hamcrest) + + + + + + + + + + + +org.hamcrest.internal + + + + +
+Classes  + +
+ArrayIterator +
+ReflectiveTypeFinder +
+SelfDescribingValue +
+SelfDescribingValueIterator
+ + + + diff --git a/javadoc/1.3/org/hamcrest/internal/package-summary.html b/javadoc/1.3/org/hamcrest/internal/package-summary.html new file mode 100644 index 000000000..af143cac2 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/package-summary.html @@ -0,0 +1,169 @@ + + + + + + +org.hamcrest.internal (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.internal +

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

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/package-tree.html b/javadoc/1.3/org/hamcrest/internal/package-tree.html new file mode 100644 index 000000000..56218ccee --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/package-tree.html @@ -0,0 +1,156 @@ + + + + + + +org.hamcrest.internal Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.internal +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/internal/package-use.html b/javadoc/1.3/org/hamcrest/internal/package-use.html new file mode 100644 index 000000000..8d374ed7b --- /dev/null +++ b/javadoc/1.3/org/hamcrest/internal/package-use.html @@ -0,0 +1,170 @@ + + + + + + +Uses of Package org.hamcrest.internal (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.internal

+
+ + + + + + + + + +
+Packages that use org.hamcrest.internal
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
+  +

+ + + + + + + + +
+Classes in org.hamcrest.internal used by org.hamcrest
ReflectiveTypeFinder + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/BigDecimalCloseTo.html b/javadoc/1.3/org/hamcrest/number/BigDecimalCloseTo.html new file mode 100644 index 000000000..01a463290 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/BigDecimalCloseTo.html @@ -0,0 +1,365 @@ + + + + + + +BigDecimalCloseTo (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.number +
+Class BigDecimalCloseTo

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.math.BigDecimal>
+          extended by org.hamcrest.number.BigDecimalCloseTo
+
+
+
All Implemented Interfaces:
Matcher<java.math.BigDecimal>, SelfDescribing
+
+
+
+
public class BigDecimalCloseTo
extends TypeSafeMatcher<java.math.BigDecimal>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
BigDecimalCloseTo(java.math.BigDecimal value, + java.math.BigDecimal error) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Matcher<java.math.BigDecimal>closeTo(java.math.BigDecimal operand, + java.math.BigDecimal error) + +
+          Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error.
+ voiddescribeMismatchSafely(java.math.BigDecimal item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(java.math.BigDecimal item) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+BigDecimalCloseTo

+
+public BigDecimalCloseTo(java.math.BigDecimal value,
+                         java.math.BigDecimal error)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.math.BigDecimal item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.math.BigDecimal>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.math.BigDecimal item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.math.BigDecimal>
+
+
+
+
+
+
+ +

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

+closeTo

+
+public static Matcher<java.math.BigDecimal> closeTo(java.math.BigDecimal operand,
+                                                    java.math.BigDecimal error)
+
+
Creates a matcher of BigDecimals that matches when an examined BigDecimal is equal + to the specified operand, within a range of +/- error. The comparison for equality + is done by BigDecimals BigDecimal.compareTo(java.math.BigDecimal) method. +

+ For example: +

assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))
+

+

+
Parameters:
operand - the expected value of matching BigDecimals
error - the delta (+/-) within which matches will be allowed
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/IsCloseTo.html b/javadoc/1.3/org/hamcrest/number/IsCloseTo.html new file mode 100644 index 000000000..2205eac5a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/IsCloseTo.html @@ -0,0 +1,369 @@ + + + + + + +IsCloseTo (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.number +
+Class IsCloseTo

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.Double>
+          extended by org.hamcrest.number.IsCloseTo
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Double>, SelfDescribing
+
+
+
+
public class IsCloseTo
extends TypeSafeMatcher<java.lang.Double>
+ + +

+Is the value a number equal to a value within some range of + acceptable error? +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsCloseTo(double value, + double error) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Matcher<java.lang.Double>closeTo(double operand, + double error) + +
+          Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error.
+ voiddescribeMismatchSafely(java.lang.Double item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(java.lang.Double item) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsCloseTo

+
+public IsCloseTo(double value,
+                 double error)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.Double item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.Double>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.Double item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.Double>
+
+
+
+
+
+
+ +

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

+closeTo

+
+public static Matcher<java.lang.Double> closeTo(double operand,
+                                                double error)
+
+
Creates a matcher of Doubles that matches when an examined double is equal + to the specified operand, within a range of +/- error. +

+ For example: +

assertThat(1.03, is(closeTo(1.0, 0.03)))
+

+

+
Parameters:
operand - the expected value of matching doubles
error - the delta (+/-) within which matches will be allowed
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/OrderingComparison.html b/javadoc/1.3/org/hamcrest/number/OrderingComparison.html new file mode 100644 index 000000000..ec239d0df --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/OrderingComparison.html @@ -0,0 +1,490 @@ + + + + + + +OrderingComparison (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.number +
+Class OrderingComparison<T extends java.lang.Comparable<T>>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<T>
+          extended by org.hamcrest.number.OrderingComparison<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class OrderingComparison<T extends java.lang.Comparable<T>>
extends TypeSafeMatcher<T>
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
comparesEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object.
+ voiddescribeMismatchSafely(T actual, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
greaterThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
greaterThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
lessThan(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object.
+static + + + + +
+<T extends java.lang.Comparable<T>> +
+Matcher<T>
+
lessThanOrEqualTo(T value) + +
+          Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object.
+ booleanmatchesSafely(T actual) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+  +

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

+matchesSafely

+
+public boolean matchesSafely(T actual)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<T extends java.lang.Comparable<T>>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(T actual,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<T extends java.lang.Comparable<T>>
+
+
+
+
+
+
+ +

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

+comparesEqualTo

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> comparesEqualTo(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + equal to the specified value, as reported by the compareTo method of the + examined object. +

+ For example: +

assertThat(1, comparesEqualTo(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return zero
+
+
+
+ +

+greaterThan

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> greaterThan(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + greater than the specified value, as reported by the compareTo method of the + examined object. +

+ For example: +

assertThat(2, greaterThan(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return greater + than zero
+
+
+
+ +

+greaterThanOrEqualTo

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + greater than or equal to the specified value, as reported by the compareTo method + of the examined object. +

+ For example: +

assertThat(1, greaterThanOrEqualTo(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return greater + than or equal to zero
+
+
+
+ +

+lessThan

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> lessThan(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + less than the specified value, as reported by the compareTo method of the + examined object. +

+ For example: +

assertThat(1, lessThan(2))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return less + than zero
+
+
+
+ +

+lessThanOrEqualTo

+
+public static <T extends java.lang.Comparable<T>> Matcher<T> lessThanOrEqualTo(T value)
+
+
Creates a matcher of Comparable object that matches when the examined object is + less than or equal to the specified value, as reported by the compareTo method + of the examined object. +

+ For example: +

assertThat(1, lessThanOrEqualTo(1))
+

+

+
Parameters:
value - the value which, when passed to the compareTo method of the examined object, should return less + than or equal to zero
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/class-use/BigDecimalCloseTo.html b/javadoc/1.3/org/hamcrest/number/class-use/BigDecimalCloseTo.html new file mode 100644 index 000000000..3b1cab5fd --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/class-use/BigDecimalCloseTo.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.number.BigDecimalCloseTo (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.number.BigDecimalCloseTo

+
+No usage of org.hamcrest.number.BigDecimalCloseTo +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/class-use/IsCloseTo.html b/javadoc/1.3/org/hamcrest/number/class-use/IsCloseTo.html new file mode 100644 index 000000000..24e4fb982 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/class-use/IsCloseTo.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.number.IsCloseTo (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.number.IsCloseTo

+
+No usage of org.hamcrest.number.IsCloseTo +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/class-use/OrderingComparison.html b/javadoc/1.3/org/hamcrest/number/class-use/OrderingComparison.html new file mode 100644 index 000000000..e9e569e91 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/class-use/OrderingComparison.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.number.OrderingComparison (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.number.OrderingComparison

+
+No usage of org.hamcrest.number.OrderingComparison +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/package-frame.html b/javadoc/1.3/org/hamcrest/number/package-frame.html new file mode 100644 index 000000000..b92ecd4b9 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.hamcrest.number (Hamcrest) + + + + + + + + + + + +org.hamcrest.number + + + + +
+Classes  + +
+BigDecimalCloseTo +
+IsCloseTo +
+OrderingComparison
+ + + + diff --git a/javadoc/1.3/org/hamcrest/number/package-summary.html b/javadoc/1.3/org/hamcrest/number/package-summary.html new file mode 100644 index 000000000..2abe5f4da --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/package-summary.html @@ -0,0 +1,181 @@ + + + + + + +org.hamcrest.number (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.number +

+Matchers that perform numeric comparisons. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
BigDecimalCloseTo 
IsCloseToIs the value a number equal to a value within some range of + acceptable error?
OrderingComparison<T extends Comparable<T>> 
+  + +

+

+Package org.hamcrest.number Description +

+ +

+

Matchers that perform numeric comparisons.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/package-tree.html b/javadoc/1.3/org/hamcrest/number/package-tree.html new file mode 100644 index 000000000..2ce536feb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/package-tree.html @@ -0,0 +1,158 @@ + + + + + + +org.hamcrest.number Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.number +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/number/package-use.html b/javadoc/1.3/org/hamcrest/number/package-use.html new file mode 100644 index 000000000..d14fd8e37 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/number/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.hamcrest.number (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.number

+
+No usage of org.hamcrest.number +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/HasToString.html b/javadoc/1.3/org/hamcrest/object/HasToString.html new file mode 100644 index 000000000..ea040a70f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/HasToString.html @@ -0,0 +1,358 @@ + + + + + + +HasToString (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.object +
+Class HasToString<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<T>
+          extended by org.hamcrest.FeatureMatcher<T,java.lang.String>
+              extended by org.hamcrest.object.HasToString<T>
+
+
+
All Implemented Interfaces:
Matcher<T>, SelfDescribing
+
+
+
+
public class HasToString<T>
extends FeatureMatcher<T,java.lang.String>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
HasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  java.lang.StringfeatureValueOf(T actual) + +
+          Implement this to extract the interesting feature.
+static + + + + +
+<T> Matcher<T>
+
hasToString(Matcher<? super java.lang.String> toStringMatcher) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher.
+static + + + + +
+<T> Matcher<T>
+
hasToString(java.lang.String expectedToString) + +
+          Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string.
+ + + + + + + +
Methods inherited from class org.hamcrest.FeatureMatcher
describeTo, matchesSafely
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+HasToString

+
+public HasToString(Matcher<? super java.lang.String> toStringMatcher)
+
+
+ + + + + + + + +
+Method Detail
+ +

+featureValueOf

+
+protected java.lang.String featureValueOf(T actual)
+
+
Description copied from class: FeatureMatcher
+
Implement this to extract the interesting feature. +

+

+
Specified by:
featureValueOf in class FeatureMatcher<T,java.lang.String>
+
+
+
Parameters:
actual - the target object +
Returns:
the feature to be matched
+
+
+
+ +

+hasToString

+
+public static <T> Matcher<T> hasToString(Matcher<? super java.lang.String> toStringMatcher)
+
+
Creates a matcher that matches any examined object whose toString method + returns a value that satisfies the specified matcher. +

+ For example: +

assertThat(true, hasToString(equalTo("TRUE")))
+

+

+
Parameters:
toStringMatcher - the matcher used to verify the toString result
+
+
+
+ +

+hasToString

+
+public static <T> Matcher<T> hasToString(java.lang.String expectedToString)
+
+
Creates a matcher that matches any examined object whose toString method + returns a value equalTo the specified string. +

+ For example: +

assertThat(true, hasToString("TRUE"))
+

+

+
Parameters:
expectedToString - the expected toString result
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/IsCompatibleType.html b/javadoc/1.3/org/hamcrest/object/IsCompatibleType.html new file mode 100644 index 000000000..551240bc8 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/IsCompatibleType.html @@ -0,0 +1,367 @@ + + + + + + +IsCompatibleType (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.object +
+Class IsCompatibleType<T>

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.Class<?>>
+          extended by org.hamcrest.object.IsCompatibleType<T>
+
+
+
All Implemented Interfaces:
Matcher<java.lang.Class<?>>, SelfDescribing
+
+
+
+
public class IsCompatibleType<T>
extends TypeSafeMatcher<java.lang.Class<?>>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsCompatibleType(java.lang.Class<T> type) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.lang.Class<?> cls, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(java.lang.Class<?> cls) + +
+          Subclasses should implement this.
+static + + + + +
+<T> Matcher<java.lang.Class<?>>
+
typeCompatibleWith(java.lang.Class<T> baseType) + +
+          Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsCompatibleType

+
+public IsCompatibleType(java.lang.Class<T> type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.Class<?> cls)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.Class<?>>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.Class<?> cls,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.Class<?>>
+
+
+
+
+
+
+ +

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

+typeCompatibleWith

+
+public static <T> Matcher<java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> baseType)
+
+
Creates a matcher of Class that matches when the specified baseType is + assignable from the examined class. +

+ For example: +

assertThat(Integer.class, typeCompatibleWith(Number.class))
+

+

+
Parameters:
baseType - the base class to examine classes against
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/IsEventFrom.html b/javadoc/1.3/org/hamcrest/object/IsEventFrom.html new file mode 100644 index 000000000..b5a9e8c3a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/IsEventFrom.html @@ -0,0 +1,368 @@ + + + + + + +IsEventFrom (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.object +
+Class IsEventFrom

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<java.util.EventObject>
+          extended by org.hamcrest.object.IsEventFrom
+
+
+
All Implemented Interfaces:
Matcher<java.util.EventObject>, SelfDescribing
+
+
+
+
public class IsEventFrom
extends TypeSafeDiagnosingMatcher<java.util.EventObject>
+ + +

+Tests if the value is an event announced by a specific object. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEventFrom(java.lang.Class<?> eventClass, + java.lang.Object source) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<java.util.EventObject>eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass, + java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any object + derived from eventClass announced by source.
+static Matcher<java.util.EventObject>eventFrom(java.lang.Object source) + +
+          Creates a matcher of EventObject that matches any EventObject + announced by source.
+ booleanmatchesSafely(java.util.EventObject item, + Description mismatchDescription) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsEventFrom

+
+public IsEventFrom(java.lang.Class<?> eventClass,
+                   java.lang.Object source)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.util.EventObject item,
+                             Description mismatchDescription)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<java.util.EventObject>
+
+
+
+
+
+
+ +

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

+eventFrom

+
+public static Matcher<java.util.EventObject> eventFrom(java.lang.Class<? extends java.util.EventObject> eventClass,
+                                                       java.lang.Object source)
+
+
Creates a matcher of EventObject that matches any object + derived from eventClass announced by source. +

+ For example: +
assertThat(myEvent, is(eventFrom(PropertyChangeEvent.class, myBean)))
+

+

+
Parameters:
eventClass - the class of the event to match on
source - the source of the event
+
+
+
+ +

+eventFrom

+
+public static Matcher<java.util.EventObject> eventFrom(java.lang.Object source)
+
+
Creates a matcher of EventObject that matches any EventObject + announced by source. +

+ For example: +
assertThat(myEvent, is(eventFrom(myBean)))
+

+

+
Parameters:
source - the source of the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/class-use/HasToString.html b/javadoc/1.3/org/hamcrest/object/class-use/HasToString.html new file mode 100644 index 000000000..8a22d2ed1 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/class-use/HasToString.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.object.HasToString (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.object.HasToString

+
+No usage of org.hamcrest.object.HasToString +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/class-use/IsCompatibleType.html b/javadoc/1.3/org/hamcrest/object/class-use/IsCompatibleType.html new file mode 100644 index 000000000..6b665fa08 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/class-use/IsCompatibleType.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.object.IsCompatibleType (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.object.IsCompatibleType

+
+No usage of org.hamcrest.object.IsCompatibleType +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/class-use/IsEventFrom.html b/javadoc/1.3/org/hamcrest/object/class-use/IsEventFrom.html new file mode 100644 index 000000000..8d105e599 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/class-use/IsEventFrom.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.object.IsEventFrom (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.object.IsEventFrom

+
+No usage of org.hamcrest.object.IsEventFrom +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/package-frame.html b/javadoc/1.3/org/hamcrest/object/package-frame.html new file mode 100644 index 000000000..3126333ec --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/package-frame.html @@ -0,0 +1,36 @@ + + + + + + +org.hamcrest.object (Hamcrest) + + + + + + + + + + + +org.hamcrest.object + + + + +
+Classes  + +
+HasToString +
+IsCompatibleType +
+IsEventFrom
+ + + + diff --git a/javadoc/1.3/org/hamcrest/object/package-summary.html b/javadoc/1.3/org/hamcrest/object/package-summary.html new file mode 100644 index 000000000..bdc3b7c58 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/package-summary.html @@ -0,0 +1,180 @@ + + + + + + +org.hamcrest.object (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.object +

+Matchers that inspect objects and classes. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + +
+Class Summary
HasToString<T> 
IsCompatibleType<T> 
IsEventFromTests if the value is an event announced by a specific object.
+  + +

+

+Package org.hamcrest.object Description +

+ +

+

Matchers that inspect objects and classes.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/package-tree.html b/javadoc/1.3/org/hamcrest/object/package-tree.html new file mode 100644 index 000000000..c26d34a16 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/package-tree.html @@ -0,0 +1,162 @@ + + + + + + +org.hamcrest.object Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.object +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/object/package-use.html b/javadoc/1.3/org/hamcrest/object/package-use.html new file mode 100644 index 000000000..d732786e9 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/object/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.hamcrest.object (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.object

+
+No usage of org.hamcrest.object +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/package-frame.html b/javadoc/1.3/org/hamcrest/package-frame.html new file mode 100644 index 000000000..ff625e453 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/package-frame.html @@ -0,0 +1,92 @@ + + + + + + +org.hamcrest (Hamcrest) + + + + + + + + + + + +org.hamcrest + + + + +
+Interfaces  + +
+Condition.Step +
+Description +
+Matcher +
+SelfDescribing
+ + + + + + +
+Classes  + +
+BaseDescription +
+BaseMatcher +
+Condition +
+CoreMatchers +
+CustomMatcher +
+CustomTypeSafeMatcher +
+Description.NullDescription +
+DiagnosingMatcher +
+EasyMock2Matchers +
+FeatureMatcher +
+JavaLangMatcherAssert +
+JMock1Matchers +
+MatcherAssert +
+Matchers +
+StringDescription +
+TypeSafeDiagnosingMatcher +
+TypeSafeMatcher
+ + + + + + +
+Annotation Types  + +
+Factory
+ + + + diff --git a/javadoc/1.3/org/hamcrest/package-summary.html b/javadoc/1.3/org/hamcrest/package-summary.html new file mode 100644 index 000000000..93aa5d7eb --- /dev/null +++ b/javadoc/1.3/org/hamcrest/package-summary.html @@ -0,0 +1,279 @@ + + + + + + +org.hamcrest (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest +

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

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
Condition.Step<I,O> 
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.
Condition<T>A Condition implements part of a multi-step match.
CoreMatchers 
CustomMatcher<T>Utility class for writing one off matchers.
CustomTypeSafeMatcher<T>Utility class for writing one off matchers.
Description.NullDescription 
DiagnosingMatcher<T>TODO(ngd): Document.
EasyMock2Matchers 
FeatureMatcher<T,U>Supporting class for matching a feature of an object.
JavaLangMatcherAssertIntegration method for use with Java's assert keyword.
JMock1Matchers 
MatcherAssert 
Matchers 
StringDescriptionA Description that is stored as a string.
TypeSafeDiagnosingMatcher<T>Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeMatcher<T>Convenient base class for Matchers that require a non-null value of a specific type.
+  + +

+ + + + + + + + + +
+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/1.3/org/hamcrest/package-tree.html b/javadoc/1.3/org/hamcrest/package-tree.html new file mode 100644 index 000000000..83aaa1aea --- /dev/null +++ b/javadoc/1.3/org/hamcrest/package-tree.html @@ -0,0 +1,177 @@ + + + + + + +org.hamcrest Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+
    +
  • org.hamcrest.Factory (implements java.lang.annotation.Annotation) +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/package-use.html b/javadoc/1.3/org/hamcrest/package-use.html new file mode 100644 index 000000000..d014b5bc4 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/package-use.html @@ -0,0 +1,659 @@ + + + + + + +Uses of Package org.hamcrest (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Packages that use org.hamcrest
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes. 
org.hamcrest.beansMatchers of Java Bean properties and their values. 
org.hamcrest.collectionMatchers of arrays and collections. 
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers. 
org.hamcrest.integration  
org.hamcrest.internal  
org.hamcrest.numberMatchers that perform numeric comparisons. 
org.hamcrest.objectMatchers that inspect objects and classes. 
org.hamcrest.textMatchers that perform text comparisons. 
org.hamcrest.xmlMatchers of XML documents. 
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest
BaseDescription + +
+          A Description that is stored as a string.
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Condition + +
+          A Condition implements part of a multi-step match.
Condition.Step + +
+           
Description + +
+          A description of a Matcher.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeDiagnosingMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.beans
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
DiagnosingMatcher + +
+          TODO(ngd): Document.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeDiagnosingMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.collection
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
FeatureMatcher + +
+          Supporting class for matching a feature of an object.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeDiagnosingMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.core
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
DiagnosingMatcher + +
+          TODO(ngd): Document.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeDiagnosingMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.integration
Matcher + +
+          A matcher over acceptable values.
+  +

+ + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.internal
Description + +
+          A description of a Matcher.
SelfDescribing + +
+          The ability of an object to describe itself.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.number
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.object
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
FeatureMatcher + +
+          Supporting class for matching a feature of an object.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeDiagnosingMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.text
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Classes in org.hamcrest used by org.hamcrest.xml
BaseMatcher + +
+          BaseClass for all Matcher implementations.
Description + +
+          A description of a Matcher.
Factory + +
+          Marks a Hamcrest static factory method so tools recognise them.
Matcher + +
+          A matcher over acceptable values.
SelfDescribing + +
+          The ability of an object to describe itself.
TypeSafeDiagnosingMatcher + +
+          Convenient base class for Matchers that require a non-null value of a specific type + and that will report why the received value has been rejected.
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/IsEmptyString.html b/javadoc/1.3/org/hamcrest/text/IsEmptyString.html new file mode 100644 index 000000000..d11d4467c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/IsEmptyString.html @@ -0,0 +1,352 @@ + + + + + + +IsEmptyString (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.text +
+Class IsEmptyString

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<java.lang.String>
+      extended by org.hamcrest.text.IsEmptyString
+
+
+
All Implemented Interfaces:
Matcher<java.lang.String>, SelfDescribing
+
+
+
+
public final class IsEmptyString
extends BaseMatcher<java.lang.String>
+ + +

+Matches empty Strings (and null). +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEmptyString() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<java.lang.String>isEmptyOrNullString() + +
+          Creates a matcher of String that matches when the examined string is null, or + has zero length.
+static Matcher<java.lang.String>isEmptyString() + +
+          Creates a matcher of String that matches when the examined string has zero length.
+ booleanmatches(java.lang.Object item) + +
+          Evaluates the matcher for argument item.
+ + + + + + + +
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

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

+IsEmptyString

+
+public IsEmptyString()
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public boolean matches(java.lang.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.
+
+
+
+ +

+isEmptyString

+
+public static Matcher<java.lang.String> isEmptyString()
+
+
Creates a matcher of String that matches when the examined string has zero length. +

+ For example: +

assertThat("", isEmptyString())
+

+

+
+
+
+
+ +

+isEmptyOrNullString

+
+public static Matcher<java.lang.String> isEmptyOrNullString()
+
+
Creates a matcher of String that matches when the examined string is null, or + has zero length. +

+ For example: +

assertThat(((String)null), isEmptyString())
+

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/IsEqualIgnoringCase.html b/javadoc/1.3/org/hamcrest/text/IsEqualIgnoringCase.html new file mode 100644 index 000000000..6eb7aa6b0 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/IsEqualIgnoringCase.html @@ -0,0 +1,364 @@ + + + + + + +IsEqualIgnoringCase (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.text +
+Class IsEqualIgnoringCase

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.String>
+          extended by org.hamcrest.text.IsEqualIgnoringCase
+
+
+
All Implemented Interfaces:
Matcher<java.lang.String>, SelfDescribing
+
+
+
+
public class IsEqualIgnoringCase
extends TypeSafeMatcher<java.lang.String>
+ + +

+Tests if a string is equal to another string, regardless of the case. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEqualIgnoringCase(java.lang.String string) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<java.lang.String>equalToIgnoringCase(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case.
+ booleanmatchesSafely(java.lang.String item) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsEqualIgnoringCase

+
+public IsEqualIgnoringCase(java.lang.String string)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.String item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.String item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

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

+equalToIgnoringCase

+
+public static Matcher<java.lang.String> equalToIgnoringCase(java.lang.String expectedString)
+
+
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, ignoring case. +

+ For example: +

assertThat("Foo", equalToIgnoringCase("FOO"))
+

+

+
Parameters:
expectedString - the expected value of matched strings
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/IsEqualIgnoringWhiteSpace.html b/javadoc/1.3/org/hamcrest/text/IsEqualIgnoringWhiteSpace.html new file mode 100644 index 000000000..b03ce3ba1 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/IsEqualIgnoringWhiteSpace.html @@ -0,0 +1,388 @@ + + + + + + +IsEqualIgnoringWhiteSpace (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.text +
+Class IsEqualIgnoringWhiteSpace

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.String>
+          extended by org.hamcrest.text.IsEqualIgnoringWhiteSpace
+
+
+
All Implemented Interfaces:
Matcher<java.lang.String>, SelfDescribing
+
+
+
+
public class IsEqualIgnoringWhiteSpace
extends TypeSafeMatcher<java.lang.String>
+ + +

+Tests if a string is equal to another string, ignoring any changes in whitespace. +

+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
IsEqualIgnoringWhiteSpace(java.lang.String string) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<java.lang.String>equalToIgnoringWhiteSpace(java.lang.String expectedString) + +
+          Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored.
+ booleanmatchesSafely(java.lang.String item) + +
+          Subclasses should implement this.
+ java.lang.StringstripSpace(java.lang.String toBeStripped) + +
+           
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+IsEqualIgnoringWhiteSpace

+
+public IsEqualIgnoringWhiteSpace(java.lang.String string)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.String item)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.String item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

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

+stripSpace

+
+public java.lang.String stripSpace(java.lang.String toBeStripped)
+
+
+
+
+
+
+ +

+equalToIgnoringWhiteSpace

+
+public static Matcher<java.lang.String> equalToIgnoringWhiteSpace(java.lang.String expectedString)
+
+
Creates a matcher of String that matches when the examined string is equal to + the specified expectedString, when whitespace differences are (mostly) ignored. To be + exact, the following whitespace rules are applied: +
    +
  • all leading and trailing whitespace of both the expectedString and the examined string are ignored
  • +
  • any remaining whitespace, appearing within either string, is collapsed to a single space before comparison
  • +
+

+ For example: +

assertThat("   my\tfoo  bar ", equalToIgnoringWhiteSpace(" my  foo bar"))
+

+

+
Parameters:
expectedString - the expected value of matched strings
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/StringContainsInOrder.html b/javadoc/1.3/org/hamcrest/text/StringContainsInOrder.html new file mode 100644 index 000000000..0c9ccf4fe --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/StringContainsInOrder.html @@ -0,0 +1,360 @@ + + + + + + +StringContainsInOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.text +
+Class StringContainsInOrder

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeMatcher<java.lang.String>
+          extended by org.hamcrest.text.StringContainsInOrder
+
+
+
All Implemented Interfaces:
Matcher<java.lang.String>, SelfDescribing
+
+
+
+
public class StringContainsInOrder
extends TypeSafeMatcher<java.lang.String>
+ + +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
StringContainsInOrder(java.lang.Iterable<java.lang.String> substrings) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeMismatchSafely(java.lang.String item, + Description mismatchDescription) + +
+          Subclasses should override this.
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+ booleanmatchesSafely(java.lang.String s) + +
+          Subclasses should implement this.
+static Matcher<java.lang.String>stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings) + +
+          Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
+ + + + + + + +
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
+ +

+StringContainsInOrder

+
+public StringContainsInOrder(java.lang.Iterable<java.lang.String> substrings)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(java.lang.String s)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should implement this. The item will already have been checked for + the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

+describeMismatchSafely

+
+public void describeMismatchSafely(java.lang.String item,
+                                   Description mismatchDescription)
+
+
Description copied from class: TypeSafeMatcher
+
Subclasses should override this. The item will already have been checked for + the specific type and will never be null. +

+

+
Overrides:
describeMismatchSafely in class TypeSafeMatcher<java.lang.String>
+
+
+
+
+
+
+ +

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

+stringContainsInOrder

+
+public static Matcher<java.lang.String> stringContainsInOrder(java.lang.Iterable<java.lang.String> substrings)
+
+
Creates a matcher of String that matches when the examined string contains all of + the specified substrings, regardless of the order of their appearance. +

+ For example: +

assertThat("myfoobarbaz", stringContainsInOrder(Arrays.asList("bar", "foo")))
+

+

+
Parameters:
substrings - the substrings that must be contained within matching strings
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/class-use/IsEmptyString.html b/javadoc/1.3/org/hamcrest/text/class-use/IsEmptyString.html new file mode 100644 index 000000000..d8000a8c1 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/class-use/IsEmptyString.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.text.IsEmptyString (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.text.IsEmptyString

+
+No usage of org.hamcrest.text.IsEmptyString +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringCase.html b/javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringCase.html new file mode 100644 index 000000000..4aaf3fbb7 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringCase.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.text.IsEqualIgnoringCase (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.text.IsEqualIgnoringCase

+
+No usage of org.hamcrest.text.IsEqualIgnoringCase +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringWhiteSpace.html b/javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringWhiteSpace.html new file mode 100644 index 000000000..b88a4009c --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/class-use/IsEqualIgnoringWhiteSpace.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.text.IsEqualIgnoringWhiteSpace (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.text.IsEqualIgnoringWhiteSpace

+
+No usage of org.hamcrest.text.IsEqualIgnoringWhiteSpace +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/class-use/StringContainsInOrder.html b/javadoc/1.3/org/hamcrest/text/class-use/StringContainsInOrder.html new file mode 100644 index 000000000..abbd3d0fa --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/class-use/StringContainsInOrder.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.text.StringContainsInOrder (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.text.StringContainsInOrder

+
+No usage of org.hamcrest.text.StringContainsInOrder +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/package-frame.html b/javadoc/1.3/org/hamcrest/text/package-frame.html new file mode 100644 index 000000000..dbbc6928e --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/package-frame.html @@ -0,0 +1,38 @@ + + + + + + +org.hamcrest.text (Hamcrest) + + + + + + + + + + + +org.hamcrest.text + + + + +
+Classes  + +
+IsEmptyString +
+IsEqualIgnoringCase +
+IsEqualIgnoringWhiteSpace +
+StringContainsInOrder
+ + + + diff --git a/javadoc/1.3/org/hamcrest/text/package-summary.html b/javadoc/1.3/org/hamcrest/text/package-summary.html new file mode 100644 index 000000000..8faae2197 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/package-summary.html @@ -0,0 +1,184 @@ + + + + + + +org.hamcrest.text (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.text +

+Matchers that perform text comparisons. +

+See: +
+          Description +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
IsEmptyStringMatches empty Strings (and null).
IsEqualIgnoringCaseTests if a string is equal to another string, regardless of the case.
IsEqualIgnoringWhiteSpaceTests if a string is equal to another string, ignoring any changes in whitespace.
StringContainsInOrder 
+  + +

+

+Package org.hamcrest.text Description +

+ +

+

Matchers that perform text comparisons.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/package-tree.html b/javadoc/1.3/org/hamcrest/text/package-tree.html new file mode 100644 index 000000000..d951bb17f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/package-tree.html @@ -0,0 +1,158 @@ + + + + + + +org.hamcrest.text Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.text +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/text/package-use.html b/javadoc/1.3/org/hamcrest/text/package-use.html new file mode 100644 index 000000000..4751269a7 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/text/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.hamcrest.text (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.text

+
+No usage of org.hamcrest.text +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/xml/HasXPath.html b/javadoc/1.3/org/hamcrest/xml/HasXPath.html new file mode 100644 index 000000000..68ccff21a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/xml/HasXPath.html @@ -0,0 +1,492 @@ + + + + + + +HasXPath (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.hamcrest.xml +
+Class HasXPath

+
+java.lang.Object
+  extended by org.hamcrest.BaseMatcher<T>
+      extended by org.hamcrest.TypeSafeDiagnosingMatcher<org.w3c.dom.Node>
+          extended by org.hamcrest.xml.HasXPath
+
+
+
All Implemented Interfaces:
Matcher<org.w3c.dom.Node>, SelfDescribing
+
+
+
+
public class HasXPath
extends TypeSafeDiagnosingMatcher<org.w3c.dom.Node>
+ + +

+Applies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression. +

+ +

+

+
Author:
+
Joe Walnes, Steve Freeman
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static javax.xml.namespace.NamespaceContextNO_NAMESPACE_CONTEXT + +
+           
+  + + + + + + + + + + + + + +
+Constructor Summary
HasXPath(java.lang.String xPathExpression, + Matcher<java.lang.String> valueMatcher) + +
+           
HasXPath(java.lang.String xPathExpression, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddescribeTo(Description description) + +
+          Generates a description of the object.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext) + +
+          Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content.
+static Matcher<org.w3c.dom.Node>hasXPath(java.lang.String xPath, + javax.xml.namespace.NamespaceContext namespaceContext, + Matcher<java.lang.String> valueMatcher) + +
+          Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher.
+ booleanmatchesSafely(org.w3c.dom.Node item, + Description mismatch) + +
+          Subclasses should implement this.
+ + + + + + + +
Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matches
+ + + + + + + +
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
+  +

+ + + + + + + + +
+Field Detail
+ +

+NO_NAMESPACE_CONTEXT

+
+public static final javax.xml.namespace.NamespaceContext NO_NAMESPACE_CONTEXT
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+HasXPath

+
+public HasXPath(java.lang.String xPathExpression,
+                Matcher<java.lang.String> valueMatcher)
+
+
+
Parameters:
xPathExpression - XPath expression.
valueMatcher - Matcher to use at given XPath. + May be null to specify that the XPath must exist but the value is irrelevant.
+
+
+ +

+HasXPath

+
+public HasXPath(java.lang.String xPathExpression,
+                javax.xml.namespace.NamespaceContext namespaceContext,
+                Matcher<java.lang.String> valueMatcher)
+
+
+
Parameters:
xPathExpression - XPath expression.
namespaceContext - Resolves XML namespace prefixes in the XPath expression
valueMatcher - Matcher to use at given XPath. + May be null to specify that the XPath must exist but the value is irrelevant.
+
+ + + + + + + + +
+Method Detail
+ +

+matchesSafely

+
+public boolean matchesSafely(org.w3c.dom.Node item,
+                             Description mismatch)
+
+
Description copied from class: TypeSafeDiagnosingMatcher
+
Subclasses should implement this. The item will already have been checked + for the specific type and will never be null. +

+

+
Specified by:
matchesSafely in class TypeSafeDiagnosingMatcher<org.w3c.dom.Node>
+
+
+
+
+
+
+ +

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

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath,
+                                                 Matcher<java.lang.String> valueMatcher)
+
+
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath that satisfies the specified valueMatcher. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese", equalTo("Cheddar")))
+

+

+
Parameters:
xPath - the target xpath
valueMatcher - matcher for the value at the specified xpath
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath,
+                                                 javax.xml.namespace.NamespaceContext namespaceContext,
+                                                 Matcher<java.lang.String> valueMatcher)
+
+
Creates a matcher of Nodes that matches when the examined node has a value at the + specified xPath, within the specified namespaceContext, that satisfies + the specified valueMatcher. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese", myNs, equalTo("Cheddar")))
+

+

+
Parameters:
xPath - the target xpath
namespaceContext - the namespace for matching nodes
valueMatcher - matcher for the value at the specified xpath
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath)
+
+
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath, with any content. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese"))
+

+

+
Parameters:
xPath - the target xpath
+
+
+
+ +

+hasXPath

+
+public static Matcher<org.w3c.dom.Node> hasXPath(java.lang.String xPath,
+                                                 javax.xml.namespace.NamespaceContext namespaceContext)
+
+
Creates a matcher of Nodes that matches when the examined node contains a node + at the specified xPath within the specified namespace context, with any content. +

+ For example: +

assertThat(xml, hasXPath("/root/something[2]/cheese", myNs))
+

+

+
Parameters:
xPath - the target xpath
namespaceContext - the namespace for matching nodes
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/xml/class-use/HasXPath.html b/javadoc/1.3/org/hamcrest/xml/class-use/HasXPath.html new file mode 100644 index 000000000..71dd6cf3a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/xml/class-use/HasXPath.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class org.hamcrest.xml.HasXPath (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
org.hamcrest.xml.HasXPath

+
+No usage of org.hamcrest.xml.HasXPath +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/xml/package-frame.html b/javadoc/1.3/org/hamcrest/xml/package-frame.html new file mode 100644 index 000000000..19867beaf --- /dev/null +++ b/javadoc/1.3/org/hamcrest/xml/package-frame.html @@ -0,0 +1,32 @@ + + + + + + +org.hamcrest.xml (Hamcrest) + + + + + + + + + + + +org.hamcrest.xml + + + + +
+Classes  + +
+HasXPath
+ + + + diff --git a/javadoc/1.3/org/hamcrest/xml/package-summary.html b/javadoc/1.3/org/hamcrest/xml/package-summary.html new file mode 100644 index 000000000..43f5cc4f7 --- /dev/null +++ b/javadoc/1.3/org/hamcrest/xml/package-summary.html @@ -0,0 +1,172 @@ + + + + + + +org.hamcrest.xml (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package org.hamcrest.xml +

+Matchers of XML documents. +

+See: +
+          Description +

+ + + + + + + + + +
+Class Summary
HasXPathApplies a Matcher to a given XML Node in an existing XML Node tree, specified by an XPath expression.
+  + +

+

+Package org.hamcrest.xml Description +

+ +

+

Matchers of XML documents.

+

+ +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/xml/package-tree.html b/javadoc/1.3/org/hamcrest/xml/package-tree.html new file mode 100644 index 000000000..075c6289a --- /dev/null +++ b/javadoc/1.3/org/hamcrest/xml/package-tree.html @@ -0,0 +1,158 @@ + + + + + + +org.hamcrest.xml Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package org.hamcrest.xml +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/org/hamcrest/xml/package-use.html b/javadoc/1.3/org/hamcrest/xml/package-use.html new file mode 100644 index 000000000..7f149497f --- /dev/null +++ b/javadoc/1.3/org/hamcrest/xml/package-use.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Package org.hamcrest.xml (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
org.hamcrest.xml

+
+No usage of org.hamcrest.xml +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/overview-frame.html b/javadoc/1.3/overview-frame.html new file mode 100644 index 000000000..611ddcd79 --- /dev/null +++ b/javadoc/1.3/overview-frame.html @@ -0,0 +1,60 @@ + + + + + + +Overview List (Hamcrest) + + + + + + + + + + + + + + + +
+
+ + + + + +
All Classes +

+ +Packages +
+org.hamcrest +
+org.hamcrest.beans +
+org.hamcrest.collection +
+org.hamcrest.core +
+org.hamcrest.integration +
+org.hamcrest.internal +
+org.hamcrest.number +
+org.hamcrest.object +
+org.hamcrest.text +
+org.hamcrest.xml +
+

+ +

+  + + diff --git a/javadoc/1.3/overview-summary.html b/javadoc/1.3/overview-summary.html new file mode 100644 index 000000000..74687e8d0 --- /dev/null +++ b/javadoc/1.3/overview-summary.html @@ -0,0 +1,221 @@ + + + + + + +Overview (Hamcrest) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+Hamcrest is a library of matchers, which can be combined in +to create flexible expressions of intent in tests. +

+See: +
+          Description +

+ + + + + + + + + +
+Hamcrest API and Utility Classes
org.hamcrestThe stable API defining Matcher and its associated interfaces and classes.
+ +

+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Matcher Library
org.hamcrest.beansMatchers of Java Bean properties and their values.
org.hamcrest.collectionMatchers of arrays and collections.
org.hamcrest.coreFundamental matchers of objects and values, and composite matchers.
org.hamcrest.internal 
org.hamcrest.numberMatchers that perform numeric comparisons.
org.hamcrest.objectMatchers that inspect objects and classes.
org.hamcrest.textMatchers that perform text comparisons.
org.hamcrest.xmlMatchers of XML documents.
+ +

+  + + + + + + + + +
+Integration
org.hamcrest.integration 
+ +

+

+

Hamcrest is a library of matchers, which can be combined in +to create flexible expressions of intent in tests.

+ +

Documentation can be found at: http://hamcrest.org/.

+

+ +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/overview-tree.html b/javadoc/1.3/overview-tree.html new file mode 100644 index 000000000..765148cef --- /dev/null +++ b/javadoc/1.3/overview-tree.html @@ -0,0 +1,187 @@ + + + + + + +Class Hierarchy (Hamcrest) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
org.hamcrest, org.hamcrest.beans, org.hamcrest.collection, org.hamcrest.core, org.hamcrest.integration, org.hamcrest.internal, org.hamcrest.number, org.hamcrest.object, org.hamcrest.text, org.hamcrest.xml
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Annotation Type Hierarchy +

+
    +
  • org.hamcrest.Factory (implements java.lang.annotation.Annotation) +
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/javadoc/1.3/package-list b/javadoc/1.3/package-list new file mode 100644 index 000000000..3f5e945f7 --- /dev/null +++ b/javadoc/1.3/package-list @@ -0,0 +1,10 @@ +org.hamcrest +org.hamcrest.beans +org.hamcrest.collection +org.hamcrest.core +org.hamcrest.integration +org.hamcrest.internal +org.hamcrest.number +org.hamcrest.object +org.hamcrest.text +org.hamcrest.xml diff --git a/javadoc/1.3/resources/inherit.gif b/javadoc/1.3/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/1.3/stylesheet.css b/javadoc/1.3/stylesheet.css new file mode 100644 index 000000000..6ea9e5161 --- /dev/null +++ b/javadoc/1.3/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/javadoc/javadoc.html b/javadoc/javadoc.html new file mode 100644 index 000000000..72e242e09 --- /dev/null +++ b/javadoc/javadoc.html @@ -0,0 +1,82 @@ + + + + + + + + + + Java Hamcrest + + + + +
+

Java Hamcrest

+

Matchers that can be combined to create flexible expressions of intent

+

jMock API Reference Documentation

+ + +
+ Fork me on GitHub + + + From 8d60eda719d8a293c18f835fbdb1eb5dd0e7aa2a Mon Sep 17 00:00:00 2001 From: scarytom Date: Sat, 1 Sep 2012 13:27:01 +0100 Subject: [PATCH 004/303] rename to index.html --- javadoc/{javadoc.html => index.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename javadoc/{javadoc.html => index.html} (100%) diff --git a/javadoc/javadoc.html b/javadoc/index.html similarity index 100% rename from javadoc/javadoc.html rename to javadoc/index.html From f40a16c34f9131bb503fffaa666b9c9dd7a111ca Mon Sep 17 00:00:00 2001 From: scarytom Date: Sat, 1 Sep 2012 13:28:46 +0100 Subject: [PATCH 005/303] Heading should say JavaDoc --- javadoc/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javadoc/index.html b/javadoc/index.html index 72e242e09..489329671 100644 --- a/javadoc/index.html +++ b/javadoc/index.html @@ -65,7 +65,7 @@

Java Hamcrest

Matchers that can be combined to create flexible expressions of intent

-

jMock API Reference Documentation

+

API Reference Documentation (JavaDoc)

From fe0ab3c1818ab8ee752ac53f4847cd497e3ce40a Mon Sep 17 00:00:00 2001 From: scarytom Date: Tue, 8 Jan 2013 20:17:59 +0000 Subject: [PATCH 006/303] update issue tracker link to point at GitHub rather than google code. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index add59164e..35ef1b976 100644 --- a/index.html +++ b/index.html @@ -81,7 +81,7 @@

User Support