From 7bce6fa6dfb5168b04f3b4f266e50269e901dd7e9869c0b4fe7aee8377b1ec74 Mon Sep 17 00:00:00 2001
From: Fridrich Strba assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
@@ -51,7 +51,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
@@ -62,7 +62,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
@@ -76,7 +76,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
@@ -91,7 +91,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
@@ -107,7 +107,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
@@ -124,7 +124,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ALL of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", allOf(startsWith("my"), containsString("Val")))
+ */
--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/AnyOf.java 2012-05-20 11:26:37.000000000 +0200
+++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/AnyOf.java 2017-09-08 09:15:48.806422798 +0200
@@ -30,7 +30,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
@@ -41,7 +41,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
@@ -52,7 +52,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
@@ -66,7 +66,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
@@ -81,7 +81,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
@@ -97,7 +97,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
@@ -114,7 +114,7 @@
-
- /**
- * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
-- *
-+ *
- * For example:
- * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
- */
+
+ /**
+ * Creates a matcher that matches if the examined object matches ANY of the specified matchers.
+- *
++ *
+ * For example:
+ * assertThat("myValue", anyOf(startsWith("foo"), containsString("Val")))
+ */
--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/CombinableMatcher.java 2012-05-20 11:29:50.000000000 +0200
+++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/CombinableMatcher.java 2017-09-08 09:15:48.806422798 +0200
@@ -42,7 +42,7 @@
-
- /**
- * 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")))
- */
+
+ /**
+ * 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")))
+ */
@@ -63,7 +63,7 @@
-
- /**
- * 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")))
- */
+
+ /**
+ * 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")))
+ */
--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/DescribedAs.java 2012-06-10 16:53:10.000000000 +0200
+++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/DescribedAs.java 2017-09-08 09:15:48.810422798 +0200
@@ -56,7 +56,7 @@
- /**
- * 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())
- *
+ /**
+ * 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())
+ *
--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/Every.java 2012-05-20 11:19:43.000000000 +0200
+++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/Every.java 2017-09-08 09:15:48.806422798 +0200
@@ -33,7 +33,7 @@
- * Creates a matcher for {@link Iterable}s that only matches when a single pass over the
- * examined {@link Iterable} yields items that are all matched by the specified
- * itemMatcher
.
-- *
-+ *
- * For example:
- * assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))
- *
+ * Creates a matcher for {@link Iterable}s that only matches when a single pass over the
+ * examined {@link Iterable} yields items that are all matched by the specified
+ * itemMatcher
.
+- *
++ *
+ * For example:
+ * assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))
+ *
--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsCollectionContaining.java 2012-05-20 11:54:27.000000000 +0200
+++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsCollectionContaining.java 2017-09-08 09:15:48.806422798 +0200
@@ -47,7 +47,7 @@
- * examined {@link Iterable} yields at least one item that is matched by the specified
- * itemMatcher
. Whilst matching, the traversal of the examined {@link Iterable}
- * will stop as soon as a matching item is found.
-- *
-+ *
- * For example:
- * assertThat(Arrays.asList("foo", "bar"), hasItem(startsWith("ba")))
- *
+ * examined {@link Iterable} yields at least one item that is matched by the specified
+ * itemMatcher
. Whilst matching, the traversal of the examined {@link Iterable}
+ * will stop as soon as a matching item is found.
+- *
++ *
+ * For example:
+ * assertThat(Arrays.asList("foo", "bar"), hasItem(startsWith("ba")))
+ *
@@ -64,7 +64,7 @@
- * examined {@link Iterable} yields at least one item that is equal to the specified
- * item
. Whilst matching, the traversal of the examined {@link Iterable}
- * will stop as soon as a matching item is found.
-- *
-+ *
- * For example:
- * assertThat(Arrays.asList("foo", "bar"), hasItem("bar"))
- *
+ * examined {@link Iterable} yields at least one item that is equal to the specified
+ * item
. Whilst matching, the traversal of the examined {@link Iterable}
+ * will stop as soon as a matching item is found.
+- *
++ *
+ * For example:
+ * assertThat(Arrays.asList("foo", "bar"), hasItem("bar"))
+ *
@@ -82,7 +82,7 @@
- * examined {@link Iterable} yield at least one item that is matched by the corresponding
- * matcher from the specified itemMatchers
. Whilst matching, each traversal of
- * the examined {@link Iterable} will stop as soon as a matching item is found.
-- *
-+ *
- * For example:
- * assertThat(Arrays.asList("foo", "bar", "baz"), hasItems(endsWith("z"), endsWith("o")))
- *
+ * examined {@link Iterable} yield at least one item that is matched by the corresponding
+ * matcher from the specified itemMatchers
. Whilst matching, each traversal of
+ * the examined {@link Iterable} will stop as soon as a matching item is found.
+- *
++ *
+ * For example:
+ * assertThat(Arrays.asList("foo", "bar", "baz"), hasItems(endsWith("z"), endsWith("o")))
+ *
@@ -106,7 +106,7 @@
- * examined {@link Iterable} yield at least one item that is equal to the corresponding
- * item from the specified items
. Whilst matching, each traversal of the
- * examined {@link Iterable} will stop as soon as a matching item is found.
-- *
-+ *
- * For example:
- * assertThat(Arrays.asList("foo", "bar", "baz"), hasItems("baz", "foo"))
- *
+ * examined {@link Iterable} yield at least one item that is equal to the corresponding
+ * item from the specified items
. Whilst matching, each traversal of the
+ * examined {@link Iterable} will stop as soon as a matching item is found.
+- *
++ *
+ * For example:
+ * assertThat(Arrays.asList("foo", "bar", "baz"), hasItems("baz", "foo"))
+ *
--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsEqual.java 2012-05-20 12:27:35.000000000 +0200
+++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsEqual.java 2017-09-08 09:15:48.806422798 +0200
@@ -79,7 +79,7 @@
- * 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.
- * assertThat("foo", equalTo("foo")); + * 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")); --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsInstanceOf.java 2012-05-20 12:41:25.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsInstanceOf.java 2017-09-08 09:15:48.806422798 +0200 @@ -65,7 +65,7 @@ - * the examined object. - * - *The created matcher assumes no relationship between specified type and the examined object.
-- * -+ * - * For example: - *assertThat(new Canoe(), instanceOf(Paddlable.class));- * + * the examined object. + * + *The created matcher assumes no relationship between specified type and the examined object.
+- * ++ * + * For example: + *assertThat(new Canoe(), instanceOf(Paddlable.class));+ * @@ -84,7 +84,7 @@ - *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 - *
-- * -+ * - * For example: - *with(any(Thing.class))
assertThat(new Canoe(), instanceOf(Canoe.class));- * + *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 + *
+- * ++ * + * For example: + *with(any(Thing.class))
assertThat(new Canoe(), instanceOf(Canoe.class));+ * --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/Is.java 2012-05-20 11:35:36.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/Is.java 2017-09-08 09:20:42.623568709 +0200 @@ -40,7 +40,7 @@ - /** - * Decorates another Matcher, retaining its behaviour, but allowing tests - * to be slightly more expressive. -- * -+ * - * For example: - *assertThat(cheese, is(equalTo(smelly)))- * instead of: + /** + * Decorates another Matcher, retaining its behaviour, but allowing tests + * to be slightly more expressive. +- * ++ * + * For example: + *assertThat(cheese, is(equalTo(smelly)))+ * instead of: @@ -54,7 +54,7 @@ - - /** - * A shortcut to the frequently usedis(equalTo(x))
. -- * -+ * - * For example: - *assertThat(cheese, is(smelly))- * instead of: + + /** + * A shortcut to the frequently usedis(equalTo(x))
. +- * ++ * + * For example: + *assertThat(cheese, is(smelly))+ * instead of: @@ -68,13 +68,13 @@ - - /** - * A shortcut to the frequently usedis(instanceOf(SomeClass.class))
. -- * -+ * - * For example: - *assertThat(cheese, is(Cheddar.class))- * instead of: - *assertThat(cheese, is(instanceOf(Cheddar.class)))- * -- * @deprecated use isA(Classtype) instead. -+ * @deprecated use isA(Class<T> type) instead. - */ - @Factory - @Deprecated + + /** + * 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)))+ * +- * @deprecated use isA(Classtype) instead. ++ * @deprecated use isA(Class<T> type) instead. + */ + @Factory + @Deprecated @@ -85,7 +85,7 @@ - - /** - * A shortcut to the frequently used is(instanceOf(SomeClass.class))
. -- * -+ * - * For example: - *assertThat(cheese, isA(Cheddar.class))- * instead of: + + /** + * A shortcut to the frequently usedis(instanceOf(SomeClass.class))
. +- * ++ * + * For example: + *assertThat(cheese, isA(Cheddar.class))+ * instead of: --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsNot.java 2012-05-20 12:49:02.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsNot.java 2017-09-08 09:15:48.806422798 +0200 @@ -34,7 +34,7 @@ - /** - * 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))))- * + /** + * 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))))+ * @@ -48,7 +48,7 @@ - - /** - * A shortcut to the frequently usednot(equalTo(x))
. -- * -+ * - * For example: - *assertThat(cheese, is(not(smelly)))- * instead of: + + /** + * A shortcut to the frequently usednot(equalTo(x))
. +- * ++ * + * For example: + *assertThat(cheese, is(not(smelly)))+ * instead of: --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsNull.java 2012-05-20 12:56:27.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/IsNull.java 2017-09-08 09:15:48.806422798 +0200 @@ -24,7 +24,7 @@ - - /** - * Creates a matcher that matches if examined object isnull
. -- * -+ * - * For example: - *assertThat(cheese, is(nullValue())- * + + /** + * Creates a matcher that matches if examined object isnull
. +- * ++ * + * For example: + *assertThat(cheese, is(nullValue())+ * @@ -36,7 +36,7 @@ - - /** - * A shortcut to the frequently usednot(nullValue())
. -- * -+ * - * For example: - *assertThat(cheese, is(notNullValue()))- * instead of: + + /** + * A shortcut to the frequently usednot(nullValue())
. +- * ++ * + * For example: + *assertThat(cheese, is(notNullValue()))+ * instead of: @@ -51,7 +51,7 @@ - /** - * Creates a matcher that matches if examined object isnull
. Accepts a - * single dummy argument to facilitate type inference. -- * -+ * - * For example: - *assertThat(cheese, is(nullValue(Cheese.class))- * + /** + * Creates a matcher that matches if examined object isnull
. Accepts a + * single dummy argument to facilitate type inference. +- * ++ * + * For example: + *assertThat(cheese, is(nullValue(Cheese.class))+ * @@ -66,7 +66,7 @@ - /** - * A shortcut to the frequently usednot(nullValue(X.class)). Accepts a - * single dummy argument to facilitate type inference.
. -- * -+ * - * For example: - *assertThat(cheese, is(notNullValue(X.class)))- * instead of: + /** + * A shortcut to the frequently usednot(nullValue(X.class)). Accepts a + * single dummy argument to facilitate type inference.
. +- * ++ * + * For example: + *assertThat(cheese, is(notNullValue(X.class)))+ * instead of: --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/StringContains.java 2012-05-20 13:02:47.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/StringContains.java 2017-09-08 09:15:48.806422798 +0200 @@ -26,7 +26,7 @@ - /** - * Creates a matcher that matches if the examined {@link String} contains the specified - * {@link String} anywhere. -- * -+ * - * For example: - *assertThat("myStringOfNote", containsString("ring"))- * + /** + * Creates a matcher that matches if the examined {@link String} contains the specified + * {@link String} anywhere. +- * ++ * + * For example: + *assertThat("myStringOfNote", containsString("ring"))+ * --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/StringEndsWith.java 2012-05-20 13:02:23.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/StringEndsWith.java 2017-09-08 09:15:48.806422798 +0200 @@ -26,7 +26,7 @@ - /** - * Creates a matcher that matches if the examined {@link String} ends with the specified - * {@link String}. -- * -+ * - * For example: - *assertThat("myStringOfNote", endsWith("Note"))- * + /** + * Creates a matcher that matches if the examined {@link String} ends with the specified + * {@link String}. +- * ++ * + * For example: + *assertThat("myStringOfNote", endsWith("Note"))+ * --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/StringStartsWith.java 2012-05-20 13:02:14.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/core/StringStartsWith.java 2017-09-08 09:15:48.806422798 +0200 @@ -26,7 +26,7 @@ - /** - * Creates a matcher that matches if the examined {@link String} starts with the specified - * {@link String}. -- * -+ * - * For example: - *assertThat("myStringOfNote", startsWith("my"))- * + /** + * Creates a matcher that matches if the examined {@link String} starts with the specified + * {@link String}. +- * ++ * + * For example: + *assertThat("myStringOfNote", startsWith("my"))+ * --- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/CustomMatcher.java 2012-05-10 21:16:11.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/CustomMatcher.java 2017-09-08 09:18:12.562425252 +0200 @@ -6,7 +6,7 @@ - *- * Matcher<String> aNonEmptyString = new CustomMatcher<String>("a non empty string") { - * public boolean matches(Object object) { -- * return ((object instanceof String) && !((String) object).isEmpty(); -+ * return ((object instanceof String) && !((String) object).isEmpty(); - * } - * }; - *+ *+ * Matcher<String> aNonEmptyString = new CustomMatcher<String>("a non empty string") { + * public boolean matches(Object object) { +- * return ((object instanceof String) && !((String) object).isEmpty(); ++ * return ((object instanceof String) && !((String) object).isEmpty(); + * } + * }; + *--- hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/Matcher.java 2012-05-19 17:09:09.000000000 +0200 +++ hamcrest-1.3/hamcrest-core/src/main/java/org/hamcrest/Matcher.java 2017-09-08 09:15:48.810422798 +0200 @@ -5,15 +5,15 @@ - /** - * 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 {@link 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 {@link CoreMatchers}. -- * -+ * - * N.B. Well designed matchers should be immutable. - * - * @see CoreMatchers + /** + * 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 {@link 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 {@link CoreMatchers}. +- * ++ * + * N.B. Well designed matchers should be immutable. + * + * @see CoreMatchers @@ -23,7 +23,7 @@ - - /** - * 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 + + /** + * 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 --- hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/FactoryMethod.java 2012-06-10 16:42:53.000000000 +0200 +++ hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/FactoryMethod.java 2017-09-08 09:10:08.403506109 +0200 @@ -6,7 +6,7 @@ - - /** - * Represents a Matcher Factory method. -- * -+ * - *This class uses Strings to represent things instead of java.lang.reflect equivalents, - * allowing methods to be defined from sources other than reflection of classes in the - * classpath. + + /** + * Represents a Matcher Factory method. +- *
++ * + *This class uses Strings to represent things instead of java.lang.reflect equivalents, + * allowing methods to be defined from sources other than reflection of classes in the + * classpath. @@ -72,7 +72,7 @@ - - /** - * List of Parameters passed to factory method. -- * ie. 'public Matcher<...&ht;> blah(THIS, AND, THAT)' -+ * ie. 'public Matcher<...> blah(THIS, AND, THAT)' - */ - public List
getParameters() { - return unmodifiableList(parameters); + + /** + * List of Parameters passed to factory method. +- * ie. 'public Matcher<...&ht;> blah(THIS, AND, THAT)' ++ * ie. 'public Matcher<...> blah(THIS, AND, THAT)' + */ + public List getParameters() { + return unmodifiableList(parameters); --- hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/FactoryWriter.java 2012-05-10 21:16:11.000000000 +0200 +++ hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/FactoryWriter.java 2017-09-08 09:11:58.739507993 +0200 @@ -8,11 +8,11 @@ - * Writes syntactic sugar code for factories. - * Implementations of this could include vanilla factory methods for - * Hamcrest matchers, wrapped factories for other libraries or factories -- * in other languages (jython, jruby, groovy, etc). -+ * in other languages (jython, jruby, groovy, etc).
- *Usage:
- *- * writer.writeHeader(...); -- * -+ * - * writer.writeMethod(...); - * writer.writeMethod(...); - * writer.writeMethod(...); + * Writes syntactic sugar code for factories. + *+- *Implementations of this could include vanilla factory methods for + * Hamcrest matchers, wrapped factories for other libraries or factories +- * in other languages (jython, jruby, groovy, etc). ++ * in other languages (jython, jruby, groovy, etc).
+ *Usage:
+ *+ * writer.writeHeader(...); +- * ++ * + * writer.writeMethod(...); + * writer.writeMethod(...); + * writer.writeMethod(...); --- hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/ReflectiveFactoryReader.java 2012-06-17 11:52:43.000000000 +0200 +++ hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/ReflectiveFactoryReader.java 2017-09-08 09:15:48.806422798 +0200 @@ -17,7 +17,7 @@ - * ... - * } - *-- *All methods matching signature '@Factory public static Matcher
blah(blah)' will be -+ * All methods matching signature '@Factory public static Matcher<blah> blah(blah)' will be - * treated as factory methods. To change this behavior, override {@link #isFactoryMethod(Method)}. - *
Caveat: Reflection is hassle-free, but unfortunately cannot expose method parameter names or JavaDoc - * comments, making the sugar slightly more obscure. + * ... + * } + *
All methods matching signature '@Factory public static Matcher
blah(blah)' will be ++ * All methods matching signature '@Factory public static Matcher<blah> blah(blah)' will be + * treated as factory methods. To change this behavior, override {@link #isFactoryMethod(Method)}. + *
Caveat: Reflection is hassle-free, but unfortunately cannot expose method parameter names or JavaDoc + * comments, making the sugar slightly more obscure. @@ -77,12 +77,12 @@ - - /** - * Determine whether a particular method is classified as a matcher factory method. -- *
-+ * - *The rules for determining this are: - * 1. The method must be public static. - * 2. It must have a return type of org.hamcrest.Matcher (or something that extends this). - * 3. It must be marked with the org.hamcrest.Factory annotation. -- *
-+ * - *To use another set of rules, override this method. - */ - protected boolean isFactoryMethod(Method javaMethod) { + + /** + * Determine whether a particular method is classified as a matcher factory method. +- *
++ * + *The rules for determining this are: + * 1. The method must be public static. + * 2. It must have a return type of org.hamcrest.Matcher (or something that extends this). + * 3. It must be marked with the org.hamcrest.Factory annotation. +- *
++ * + *To use another set of rules, override this method. + */ + protected boolean isFactoryMethod(Method javaMethod) { @@ -158,7 +158,7 @@ - - /* - * Get String representation of Type (e.g. java.lang.String or Map<Stuff,? extends Cheese>). -- *
-+ * - * Annoyingly this method wouldn't be needed if java.lang.reflect.Type.toString() behaved consistently - * across implementations. Rock on Liskov. - */ + + /* + * Get String representation of Type (e.g. java.lang.String or Map<Stuff,? extends Cheese>). +- * ++ * + * Annoyingly this method wouldn't be needed if java.lang.reflect.Type.toString() behaved consistently + * across implementations. Rock on Liskov. + */ --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/HasProperty.java 2012-05-20 14:46:40.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/HasProperty.java 2017-09-08 09:15:48.802422798 +0200 @@ -46,7 +46,7 @@ - /** - * Creates a matcher that matches when the examined object has a JavaBean property - * with the specified name. -- * -+ * - * For example: - *assertThat(myBean, hasProperty("foo"))- * + /** + * Creates a matcher that matches when the examined object has a JavaBean property + * with the specified name. +- * ++ * + * For example: + *assertThat(myBean, hasProperty("foo"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/HasPropertyWithValue.java 2012-05-20 14:44:00.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/HasPropertyWithValue.java 2017-09-08 09:15:48.802422798 +0200 @@ -20,7 +20,7 @@ - * 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() + * 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() @@ -55,11 +55,11 @@ - * 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 + * 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 @@ -136,7 +136,7 @@ - /** - * 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"))- * + /** + * 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"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/PropertyUtil.java 2012-05-10 21:16:11.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/PropertyUtil.java 2017-09-08 09:15:48.802422798 +0200 @@ -8,7 +8,7 @@ - - /** - * Utility class for accessing properties on JavaBean objects. -- * -+ * - * See http://java.sun.com/products/javabeans/docs/index.html for - * more information on JavaBeans. - * + + /** + * Utility class for accessing properties on JavaBean objects. +- * ++ * + * See http://java.sun.com/products/javabeans/docs/index.html for + * more information on JavaBeans. + * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/SamePropertyValuesAs.java 2012-05-20 14:46:38.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/SamePropertyValuesAs.java 2017-09-08 09:15:48.802422798 +0200 @@ -124,7 +124,7 @@ - * 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))- * + * 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))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInAnyOrder.java 2012-05-20 16:39:49.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInAnyOrder.java 2017-09-08 09:15:48.806422798 +0200 @@ -42,7 +42,7 @@ - * 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. + * 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. @@ -63,7 +63,7 @@ - * 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. + * 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. @@ -84,7 +84,7 @@ - * 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. + * 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. --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInOrder.java 2012-05-20 16:46:29.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInOrder.java 2017-09-08 09:15:48.802422798 +0200 @@ -40,7 +40,7 @@ - * 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"))- * + * 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"))+ * @@ -60,7 +60,7 @@ - * 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")))- * + * 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")))+ * @@ -76,7 +76,7 @@ - * 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"))))- * + * 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"))))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContaining.java 2012-05-20 15:04:17.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContaining.java 2017-09-08 09:15:48.806422798 +0200 @@ -44,7 +44,7 @@ - * Creates a matcher for arrays that matches when the examined array contains at least one item - * that is matched by the specifiedelementMatcher
. 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")))- * + * Creates a matcher for arrays that matches when the examined array contains at least one item + * that is matched by the specifiedelementMatcher
. 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")))+ * @@ -58,7 +58,7 @@ - - /** - * A shortcut to the frequently usedhasItemInArray(equalTo(x))
. -- * -+ * - * For example: - *assertThat(hasItemInArray(x))- * instead of: + + /** + * A shortcut to the frequently usedhasItemInArray(equalTo(x))
. +- * ++ * + * For example: + *assertThat(hasItemInArray(x))+ * instead of: --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArray.java 2012-05-20 14:54:52.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArray.java 2017-09-08 09:15:48.802422798 +0200 @@ -83,7 +83,7 @@ - * 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))))- * + * 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))))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayWithSize.java 2012-05-20 16:19:19.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayWithSize.java 2017-09-08 09:15:48.802422798 +0200 @@ -23,7 +23,7 @@ - /** - * Creates a matcher for arrays that matches when thelength
of the array - * satisfies the specified matcher. -- * -+ * - * For example: - *assertThat(new String[]{"foo", "bar"}, arrayWithSize(equalTo(2)))- * + /** + * Creates a matcher for arrays that matches when thelength
of the array + * satisfies the specified matcher. +- * ++ * + * For example: + *assertThat(new String[]{"foo", "bar"}, arrayWithSize(equalTo(2)))+ * @@ -38,7 +38,7 @@ - /** - * Creates a matcher for arrays that matches when thelength
of the array - * equals the specifiedsize
. -- * -+ * - * For example: - *assertThat(new String[]{"foo", "bar"}, arrayWithSize(2))- * + /** + * Creates a matcher for arrays that matches when thelength
of the array + * equals the specifiedsize
. +- * ++ * + * For example: + *assertThat(new String[]{"foo", "bar"}, arrayWithSize(2))+ * @@ -53,7 +53,7 @@ - /** - * Creates a matcher for arrays that matches when thelength
of the array - * is zero. -- * -+ * - * For example: - *assertThat(new String[0], emptyArray())- * + /** + * Creates a matcher for arrays that matches when thelength
of the array + * is zero. +- * ++ * + * For example: + *assertThat(new String[0], emptyArray())+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsCollectionWithSize.java 2012-06-10 17:02:21.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsCollectionWithSize.java 2017-09-08 09:15:48.802422798 +0200 @@ -24,7 +24,7 @@ - /** - * Creates a matcher for {@link java.util.Collection}s that matches when thesize()
method returns - * a value that satisfies the specified matcher. -- * -+ * - * For example: - *assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))- * + /** + * Creates a matcher for {@link java.util.Collection}s that matches when thesize()
method returns + * a value that satisfies the specified matcher. +- * ++ * + * For example: + *assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))+ * @@ -39,7 +39,7 @@ - /** - * Creates a matcher for {@link java.util.Collection}s that matches when thesize()
method returns - * a value equal to the specifiedsize
. -- * -+ * - * For example: - *assertThat(Arrays.asList("foo", "bar"), hasSize(2))- * + /** + * Creates a matcher for {@link java.util.Collection}s that matches when thesize()
method returns + * a value equal to the specifiedsize
. +- * ++ * + * For example: + *assertThat(Arrays.asList("foo", "bar"), hasSize(2))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsEmptyCollection.java 2012-06-18 23:49:04.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsEmptyCollection.java 2017-09-08 09:15:48.802422798 +0200 @@ -30,7 +30,7 @@ - /** - * Creates a matcher for {@link java.util.Collection}s matching examined collections whoseisEmpty
- * method returnstrue
. -- * -+ * - * For example: - *assertThat(new ArrayList<String>(), is(empty()))- * + /** + * Creates a matcher for {@link java.util.Collection}s matching examined collections whoseisEmpty
+ * method returnstrue
. +- * ++ * + * For example: + *assertThat(new ArrayList<String>(), is(empty()))+ * @@ -43,7 +43,7 @@ - /** - * Creates a matcher for {@link java.util.Collection}s matching examined collections whoseisEmpty
- * method returnstrue
. -- * -+ * - * For example: - *assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class)))- * + /** + * Creates a matcher for {@link java.util.Collection}s matching examined collections whoseisEmpty
+ * method returnstrue
. +- * ++ * + * For example: + *assertThat(new ArrayList<String>(), is(emptyCollectionOf(String.class)))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsEmptyIterable.java 2012-06-18 23:49:30.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsEmptyIterable.java 2017-09-08 09:15:48.806422798 +0200 @@ -26,7 +26,7 @@ - - /** - * Creates a matcher for {@link Iterable}s matching examined iterables that yield no items. -- * -+ * - * For example: - *assertThat(new ArrayList<String>(), is(emptyIterable()))- * + + /** + * Creates a matcher for {@link Iterable}s matching examined iterables that yield no items. +- * ++ * + * For example: + *assertThat(new ArrayList<String>(), is(emptyIterable()))+ * @@ -38,7 +38,7 @@ - - /** - * Creates a matcher for {@link Iterable}s matching examined iterables that yield no items. -- * -+ * - * For example: - *assertThat(new ArrayList<String>(), is(emptyIterableOf(String.class)))- * + + /** + * Creates a matcher for {@link Iterable}s matching examined iterables that yield no items. +- * ++ * + * For example: + *assertThat(new ArrayList<String>(), is(emptyIterableOf(String.class)))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIn.java 2012-05-20 17:43:01.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIn.java 2017-09-08 09:15:48.802422798 +0200 @@ -33,7 +33,7 @@ - /** - * Creates a matcher that matches when the examined object is found within the - * specified collection. -- * -+ * - * For example: - *assertThat("foo", isIn(Arrays.asList("bar", "foo")))- * + /** + * Creates a matcher that matches when the examined object is found within the + * specified collection. +- * ++ * + * For example: + *assertThat("foo", isIn(Arrays.asList("bar", "foo")))+ * @@ -49,7 +49,7 @@ - /** - * Creates a matcher that matches when the examined object is found within the - * specified array. -- * -+ * - * For example: - *assertThat("foo", isIn(new String[]{"bar", "foo"}))- * + /** + * Creates a matcher that matches when the examined object is found within the + * specified array. +- * ++ * + * For example: + *assertThat("foo", isIn(new String[]{"bar", "foo"}))+ * @@ -65,7 +65,7 @@ - /** - * Creates a matcher that matches when the examined object is equal to one of the - * specified elements. -- * -+ * - * For example: - *assertThat("foo", isIn("bar", "foo"))- * + /** + * Creates a matcher that matches when the examined object is equal to one of the + * specified elements. +- * ++ * + * For example: + *assertThat("foo", isIn("bar", "foo"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInAnyOrder.java 2012-05-20 17:43:31.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInAnyOrder.java 2017-09-08 09:27:24.901132454 +0200 @@ -87,11 +87,11 @@ - * Creates a matcher for {@link Iterable}s that matches when a single pass over the - * examined {@link 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")))- * -- * @deprecated use contains(Matcher super E> itemMatcher) instead -+ * @deprecated use contains(Matcher<? super E> itemMatcher) instead - * - * @param itemMatcher - * the matcher that must be satisfied by the single item provided by an + * Creates a matcher for {@link Iterable}s that matches when a single pass over the + * examined {@link 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")))+ * +- * @deprecated use contains(Matcher super E> itemMatcher) instead ++ * @deprecated use contains(Matcher<? super E> itemMatcher) instead + * + * @param itemMatcher + * the matcher that must be satisfied by the single item provided by an @@ -109,11 +109,11 @@ - * the examined {@link 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")))- * + * the examined {@link 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")))+ * @@ -130,11 +130,11 @@ - * the examined {@link 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"))- * + * the examined {@link 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"))+ * @@ -156,11 +156,11 @@ - * the examined {@link 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"))))- * + * the examined {@link 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"))))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInOrder.java 2012-05-20 15:25:17.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInOrder.java 2017-09-08 09:15:48.802422798 +0200 @@ -89,7 +89,7 @@ - * examined {@link 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"))- * + * examined {@link 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"))+ * @@ -110,7 +110,7 @@ - * Creates a matcher for {@link Iterable}s that matches when a single pass over the - * examined {@link 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")))- * + * Creates a matcher for {@link Iterable}s that matches when a single pass over the + * examined {@link 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")))+ * @@ -129,7 +129,7 @@ - * examined {@link 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")))- * + * examined {@link 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")))+ * @@ -146,7 +146,7 @@ - * examined {@link 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"))))- * + * examined {@link 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"))))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableWithSize.java 2012-05-20 16:14:03.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableWithSize.java 2017-09-08 09:15:48.802422798 +0200 @@ -28,7 +28,7 @@ - * Creates a matcher for {@link Iterable}s that matches when a single pass over the - * examined {@link Iterable} yields an item count that satisfies the specified - * matcher. -- * -+ * - * For example: - *assertThat(Arrays.asList("foo", "bar"), iterableWithSize(equalTo(2)))- * + * Creates a matcher for {@link Iterable}s that matches when a single pass over the + * examined {@link Iterable} yields an item count that satisfies the specified + * matcher. +- * ++ * + * For example: + *assertThat(Arrays.asList("foo", "bar"), iterableWithSize(equalTo(2)))+ * @@ -44,7 +44,7 @@ - * Creates a matcher for {@link Iterable}s that matches when a single pass over the - * examined {@link Iterable} yields an item count that is equal to the specified - *size
argument. -- * -+ * - * For example: - *assertThat(Arrays.asList("foo", "bar"), iterableWithSize(2))- * + * Creates a matcher for {@link Iterable}s that matches when a single pass over the + * examined {@link Iterable} yields an item count that is equal to the specified + *size
argument. +- * ++ * + * For example: + *assertThat(Arrays.asList("foo", "bar"), iterableWithSize(2))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsMapContaining.java 2012-06-10 17:04:41.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/collection/IsMapContaining.java 2017-09-08 09:15:48.802422798 +0200 @@ -48,7 +48,7 @@ - * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains - * at least one entry whose key satisfies the specifiedkeyMatcher
and whose - * value satisfies the specifiedvalueMatcher
. -- * -+ * - * For example: - *assertThat(myMap, hasEntry(equalTo("bar"), equalTo("foo")))- * + * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains + * at least one entry whose key satisfies the specifiedkeyMatcher
and whose + * value satisfies the specifiedvalueMatcher
. +- * ++ * + * For example: + *assertThat(myMap, hasEntry(equalTo("bar"), equalTo("foo")))+ * @@ -66,7 +66,7 @@ - * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains - * at least one entry whose key equals the specifiedkey
and whose value equals the - * specifiedvalue
. -- * -+ * - * For example: - *assertThat(myMap, hasEntry("bar", "foo"))- * + * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains + * at least one entry whose key equals the specifiedkey
and whose value equals the + * specifiedvalue
. +- * ++ * + * For example: + *assertThat(myMap, hasEntry("bar", "foo"))+ * @@ -83,7 +83,7 @@ - /** - * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains - * at least one key that satisfies the specified matcher. -- * -+ * - * For example: - *assertThat(myMap, hasKey(equalTo("bar")))- * + /** + * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains + * at least one key that satisfies the specified matcher. +- * ++ * + * For example: + *assertThat(myMap, hasKey(equalTo("bar")))+ * @@ -98,7 +98,7 @@ - /** - * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains - * at least one key that is equal to the specified key. -- * -+ * - * For example: - *assertThat(myMap, hasKey("bar"))- * + /** + * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains + * at least one key that is equal to the specified key. +- * ++ * + * For example: + *assertThat(myMap, hasKey("bar"))+ * @@ -113,7 +113,7 @@ - /** - * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains - * at least one value that satisfies the specified valueMatcher. -- * -+ * - * For example: - *assertThat(myMap, hasValue(equalTo("foo")))- * + /** + * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains + * at least one value that satisfies the specified valueMatcher. +- * ++ * + * For example: + *assertThat(myMap, hasValue(equalTo("foo")))+ * @@ -128,7 +128,7 @@ - /** - * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains - * at least one value that is equal to the specified value. -- * -+ * - * For example: - *assertThat(myMap, hasValue("foo"))- * + /** + * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains + * at least one value that is equal to the specified value. +- * ++ * + * For example: + *assertThat(myMap, hasValue("foo"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/BigDecimalCloseTo.java 2012-06-10 17:06:51.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/BigDecimalCloseTo.java 2017-09-08 09:15:48.806422798 +0200 @@ -46,7 +46,7 @@ - * Creates a matcher of {@link java.math.BigDecimal}s that matches when an examined BigDecimal is equal - * to the specifiedoperand
, within a range of +/-error
. The comparison for equality - * is done by BigDecimals {@link java.math.BigDecimal#compareTo(java.math.BigDecimal)} method. -- * -+ * - * For example: - *assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))- * + * Creates a matcher of {@link java.math.BigDecimal}s that matches when an examined BigDecimal is equal + * to the specifiedoperand
, within a range of +/-error
. The comparison for equality + * is done by BigDecimals {@link java.math.BigDecimal#compareTo(java.math.BigDecimal)} method. +- * ++ * + * For example: + *assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/IsCloseTo.java 2012-05-20 17:44:07.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/IsCloseTo.java 2017-09-08 09:15:48.806422798 +0200 @@ -48,7 +48,7 @@ - /** - * Creates a matcher of {@link Double}s that matches when an examined double is equal - * to the specifiedoperand
, within a range of +/-error
. -- * -+ * - * For example: - *assertThat(1.03, is(closeTo(1.0, 0.03)))- * + /** + * Creates a matcher of {@link Double}s that matches when an examined double is equal + * to the specifiedoperand
, within a range of +/-error
. +- * ++ * + * For example: + *assertThat(1.03, is(closeTo(1.0, 0.03)))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/OrderingComparison.java 2012-05-20 16:59:41.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/OrderingComparison.java 2017-09-08 09:15:48.806422798 +0200 @@ -58,7 +58,7 @@ - * Creates a matcher of {@link Comparable} object that matches when the examined object is - * equal to the specified value, as reported by thecompareTo
method of the - * examined object. -- * -+ * - * For example: - *assertThat(1, comparesEqualTo(1))- * + * Creates a matcher of {@link Comparable} object that matches when the examined object is + * equal to the specified value, as reported by thecompareTo
method of the + * examined object. +- * ++ * + * For example: + *assertThat(1, comparesEqualTo(1))+ * @@ -75,7 +75,7 @@ - * Creates a matcher of {@link Comparable} object that matches when the examined object is - * greater than the specified value, as reported by thecompareTo
method of the - * examined object. -- * -+ * - * For example: - *assertThat(2, greaterThan(1))- * + * Creates a matcher of {@link Comparable} object that matches when the examined object is + * greater than the specified value, as reported by thecompareTo
method of the + * examined object. +- * ++ * + * For example: + *assertThat(2, greaterThan(1))+ * @@ -93,7 +93,7 @@ - * Creates a matcher of {@link Comparable} object that matches when the examined object is - * greater than or equal to the specified value, as reported by thecompareTo
method - * of the examined object. -- * -+ * - * For example: - *assertThat(1, greaterThanOrEqualTo(1))- * + * Creates a matcher of {@link Comparable} object that matches when the examined object is + * greater than or equal to the specified value, as reported by thecompareTo
method + * of the examined object. +- * ++ * + * For example: + *assertThat(1, greaterThanOrEqualTo(1))+ * @@ -111,7 +111,7 @@ - * Creates a matcher of {@link Comparable} object that matches when the examined object is - * less than the specified value, as reported by thecompareTo
method of the - * examined object. -- * -+ * - * For example: - *assertThat(1, lessThan(2))- * + * Creates a matcher of {@link Comparable} object that matches when the examined object is + * less than the specified value, as reported by thecompareTo
method of the + * examined object. +- * ++ * + * For example: + *assertThat(1, lessThan(2))+ * @@ -129,7 +129,7 @@ - * Creates a matcher of {@link Comparable} object that matches when the examined object is - * less than or equal to the specified value, as reported by thecompareTo
method - * of the examined object. -- * -+ * - * For example: - *assertThat(1, lessThanOrEqualTo(1))- * + * Creates a matcher of {@link Comparable} object that matches when the examined object is + * less than or equal to the specified value, as reported by thecompareTo
method + * of the examined object. +- * ++ * + * For example: + *assertThat(1, lessThanOrEqualTo(1))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/object/HasToString.java 2012-05-20 17:04:01.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/object/HasToString.java 2017-09-08 09:15:48.806422798 +0200 @@ -19,7 +19,7 @@ - /** - * Creates a matcher that matches any examined object whosetoString
method - * returns a value that satisfies the specified matcher. -- * -+ * - * For example: - *assertThat(true, hasToString(equalTo("TRUE")))- * + /** + * Creates a matcher that matches any examined object whosetoString
method + * returns a value that satisfies the specified matcher. +- * ++ * + * For example: + *assertThat(true, hasToString(equalTo("TRUE")))+ * @@ -34,7 +34,7 @@ - /** - * Creates a matcher that matches any examined object whosetoString
method - * returns a value equalTo the specified string. -- * -+ * - * For example: - *assertThat(true, hasToString("TRUE"))- * + /** + * Creates a matcher that matches any examined object whosetoString
method + * returns a value equalTo the specified string. +- * ++ * + * For example: + *assertThat(true, hasToString("TRUE"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/object/IsCompatibleType.java 2012-05-20 17:44:35.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/object/IsCompatibleType.java 2017-09-08 09:15:48.806422798 +0200 @@ -30,7 +30,7 @@ - /** - * Creates a matcher of {@link Class} that matches when the specified baseType is - * assignable from the examined class. -- * -+ * - * For example: - *assertThat(Integer.class, typeCompatibleWith(Number.class))- * + /** + * Creates a matcher of {@link Class} that matches when the specified baseType is + * assignable from the examined class. +- * ++ * + * For example: + *assertThat(Integer.class, typeCompatibleWith(Number.class))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/object/IsEventFrom.java 2012-06-10 17:03:11.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/object/IsEventFrom.java 2017-09-08 09:24:20.531572428 +0200 @@ -50,6 +50,7 @@ - } - - /** -+ *- * Creates a matcher of {@link java.util.EventObject} that matches any object - * derived from eventClass announced by source. - *
+ } + + /** ++ *+ * Creates a matcher of {@link java.util.EventObject} that matches any object + * derived from eventClass announced by source. + *
@@ -67,6 +68,7 @@ - } - - /** -+ *- * Creates a matcher of {@link java.util.EventObject} that matches any EventObject - * announced by source. - *
+ } + + /** ++ *+ * Creates a matcher of {@link java.util.EventObject} that matches any EventObject + * announced by source. + *
--- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/IsEmptyString.java 2012-05-20 17:15:48.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/IsEmptyString.java 2017-09-08 09:15:48.806422798 +0200 @@ -29,7 +29,7 @@ - - /** - * Creates a matcher of {@link String} that matches when the examined string has zero length. -- * -+ * - * For example: - *assertThat("", isEmptyString())- * + + /** + * Creates a matcher of {@link String} that matches when the examined string has zero length. +- * ++ * + * For example: + *assertThat("", isEmptyString())+ * @@ -42,7 +42,7 @@ - /** - * Creates a matcher of {@link String} that matches when the examined string isnull
, or - * has zero length. -- * -+ * - * For example: - *assertThat(((String)null), isEmptyString())- * + /** + * Creates a matcher of {@link String} that matches when the examined string isnull
, or + * has zero length. +- * ++ * + * For example: + *assertThat(((String)null), isEmptyString())+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/IsEqualIgnoringCase.java 2012-05-20 17:18:01.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/IsEqualIgnoringCase.java 2017-09-08 09:15:48.806422798 +0200 @@ -44,7 +44,7 @@ - /** - * Creates a matcher of {@link String} that matches when the examined string is equal to - * the specified expectedString, ignoring case. -- * -+ * - * For example: - *assertThat("Foo", equalToIgnoringCase("FOO"))- * + /** + * Creates a matcher of {@link String} that matches when the examined string is equal to + * the specified expectedString, ignoring case. +- * ++ * + * For example: + *assertThat("Foo", equalToIgnoringCase("FOO"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/IsEqualIgnoringWhiteSpace.java 2012-05-20 17:25:03.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/IsEqualIgnoringWhiteSpace.java 2017-09-08 09:15:48.806422798 +0200 @@ -69,7 +69,7 @@ - *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"))- * + *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"))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/StringContainsInOrder.java 2012-05-20 17:29:11.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/text/StringContainsInOrder.java 2017-09-08 09:15:48.806422798 +0200 @@ -41,7 +41,7 @@ - /** - * Creates a matcher of {@link 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")))- * + /** + * Creates a matcher of {@link 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")))+ * --- hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/xml/HasXPath.java 2012-06-10 17:06:08.000000000 +0200 +++ hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/xml/HasXPath.java 2017-09-08 09:15:48.806422798 +0200 @@ -106,7 +106,7 @@ - /** - * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node has a value at the - * specifiedxPath
that satisfies the specifiedvalueMatcher
. -- * -+ * - * For example: - *assertThat(xml, hasXPath("/root/something[2]/cheese", equalTo("Cheddar")))- * + /** + * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node has a value at the + * specifiedxPath
that satisfies the specifiedvalueMatcher
. +- * ++ * + * For example: + *assertThat(xml, hasXPath("/root/something[2]/cheese", equalTo("Cheddar")))+ * @@ -124,7 +124,7 @@ - * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node has a value at the - * specifiedxPath
, within the specifiednamespaceContext
, that satisfies - * the specifiedvalueMatcher
. -- * -+ * - * For example: - *assertThat(xml, hasXPath("/root/something[2]/cheese", myNs, equalTo("Cheddar")))- * + * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node has a value at the + * specifiedxPath
, within the specifiednamespaceContext
, that satisfies + * the specifiedvalueMatcher
. +- * ++ * + * For example: + *assertThat(xml, hasXPath("/root/something[2]/cheese", myNs, equalTo("Cheddar")))+ * @@ -143,7 +143,7 @@ - /** - * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node contains a node - * at the specifiedxPath
, with any content. -- * -+ * - * For example: - *assertThat(xml, hasXPath("/root/something[2]/cheese"))- * + /** + * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node contains a node + * at the specifiedxPath
, with any content. +- * ++ * + * For example: + *assertThat(xml, hasXPath("/root/something[2]/cheese"))+ * @@ -158,7 +158,7 @@ - /** - * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node contains a node - * at the specifiedxPath
within the specified namespace context, with any content. -- * -+ * - * For example: - *assertThat(xml, hasXPath("/root/something[2]/cheese", myNs))- * + /** + * Creates a matcher of {@link org.w3c.dom.Node}s that matches when the examined node contains a node + * at the specifiedxPath
within the specified namespace context, with any content. +- * ++ * + * For example: + *assertThat(xml, hasXPath("/root/something[2]/cheese", myNs))+ * diff --git a/hamcrest-1.3-no-integration.patch b/hamcrest-1.3-no-integration.patch deleted file mode 100644 index 45d2e64..0000000 --- a/hamcrest-1.3-no-integration.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- - build.xml | 12 +----------- - 1 file changed, 1 insertion(+), 11 deletions(-) - -Index: hamcrest-1.3/build.xml -=================================================================== ---- hamcrest-1.3.orig/build.xml -+++ hamcrest-1.3/build.xml -@@ -110,7 +110,7 @@ - build/hamcrest-integration-${version}.jar"/> - - --- - -@@ -138,24 +136,16 @@ -- -@@ -124,13 +124,11 @@ - - - -- - - - -- - -- - - - -- - - - -- -- --- ---- - -- - - - -- - - - diff --git a/hamcrest-1.3-no-jarjar.patch b/hamcrest-1.3-no-jarjar.patch index 70e068d..aea9578 100644 --- a/hamcrest-1.3-no-jarjar.patch +++ b/hamcrest-1.3-no-jarjar.patch @@ -3,21 +3,21 @@ index 54d43fe..ed57763 100644 --- a/build.xml +++ b/build.xml @@ -13,17 +13,8 @@ - - - - --- -- -- -- -- ---- -- -- - + + + + ++- +- +- +- +- +-+- +- +- + diff --git a/hamcrest-1.3-qdox-2.0.patch b/hamcrest-1.3-qdox-2.0.patch index 0a63cc4..c28c762 100644 --- a/hamcrest-1.3-qdox-2.0.patch +++ b/hamcrest-1.3-qdox-2.0.patch @@ -1,94 +1,105 @@ -diff -urEbwB hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java ---- hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java 2019-01-01 15:27:38.332599832 +0100 -+++ hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java 2019-01-01 15:29:19.560043471 +0100 -@@ -4,8 +4,10 @@ - import com.thoughtworks.qdox.model.JavaClass; - import com.thoughtworks.qdox.model.JavaMethod; - import com.thoughtworks.qdox.model.JavaParameter; --import com.thoughtworks.qdox.model.Type; -+import com.thoughtworks.qdox.model.JavaType; -+import com.thoughtworks.qdox.model.impl.DefaultJavaClass; - -+import java.util.ArrayList; - import java.util.Iterator; - import java.util.List; - import java.util.regex.Pattern; -@@ -56,15 +58,15 @@ - JavaMethod methodSource = findMethodInSource(factoryMethod); - if (methodSource != null) { - factoryMethod.setJavaDoc(createJavaDocComment(methodSource)); -- JavaParameter[] parametersFromSource -+ List - -parametersFromSource - = methodSource.getParameters(); - List parametersFromReflection - = factoryMethod.getParameters(); - -- if (parametersFromReflection.size() == parametersFromSource.length) { -- for (int i = 0; i < parametersFromSource.length; i++) { -+ if (parametersFromReflection.size() == parametersFromSource.size()) { -+ for (int i = 0; i < parametersFromSource.size(); i++) { - parametersFromReflection.get(i).setName( -- parametersFromSource[i].getName()); -+ parametersFromSource.get(i).getName()); - } - } - } -@@ -79,18 +81,18 @@ - // Note, this doesn't always work - it struggles with some kinds of generics. - // This seems to cover most cases though. - List params = factoryMethod.getParameters(); -- Type[] types = new Type[params.size()]; -+ List types = new ArrayList (params.size()); - boolean varArgs = false; -- for (int i = 0; i < types.length; i++) { -+ for (int i = 0; i < params.size(); i++) { - String type = params.get(i).getType(); - varArgs = VARARGS_REGEX.matcher(type).find(); - // QDox ignores varargs and generics, so we strip them out to help QDox. - type = GENERIC_REGEX.matcher(type).replaceAll(""); - type = VARARGS_REGEX.matcher(type).replaceAll(""); -- types[i] = new Type(type); -+ types.add(new DefaultJavaClass(type)); - } -- JavaMethod[] methods = classSource.getMethodsBySignature(factoryMethod.getName(), types, false, varArgs); -- return methods.length == 1 ? methods[0] : null; -+ List methods = classSource.getMethodsBySignature(factoryMethod.getName(), types, false, varArgs); -+ return methods.size() == 1 ? methods.get(0) : null; - } - - /** -@@ -98,8 +100,8 @@ - */ - private static String createJavaDocComment(JavaMethod methodSource) { - String comment = methodSource.getComment(); -- DocletTag[] tags = methodSource.getTags(); -- if ((comment == null || comment.trim().length() == 0) && tags.length == 0) { -+ List tags = methodSource.getTags(); -+ if ((comment == null || comment.trim().length() == 0) && tags.size() == 0) { - return null; - } - StringBuilder result = new StringBuilder(); -Only in hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator: QDoxFactoryReader.java.orig -Only in hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator: QDoxFactoryReader.java.rej -diff -urEbwB hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java ---- hamcrest-1.3/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java 2019-01-01 15:27:38.332599832 +0100 -+++ hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java 2019-01-01 15:29:19.556043651 +0100 +From 6d7da5456a7458a249bed9c4c1e768cc7cc2fe40 Mon Sep 17 00:00:00 2001 +From: Michael Simacek +Date: Wed, 1 Feb 2017 12:57:14 +0100 +Subject: [PATCH] Port to qdox 2.0 + +--- + .../src/main/java/org/hamcrest/generator/QDox.java | 4 ++-- + .../org/hamcrest/generator/QDoxFactoryReader.java | 26 ++++++++++++---------- + 2 files changed, 16 insertions(+), 14 deletions(-) + +diff --git a/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java b/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java +index efaf615..338178d 100644 +--- a/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java ++++ b/hamcrest-generator/src/main/java/org/hamcrest/generator/QDox.java @@ -1,6 +1,6 @@ - package org.hamcrest.generator; - --import com.thoughtworks.qdox.JavaDocBuilder; -+import com.thoughtworks.qdox.JavaProjectBuilder; - import com.thoughtworks.qdox.model.JavaClass; - - import java.io.File; -@@ -16,7 +16,7 @@ - */ - public class QDox { - -- private final JavaDocBuilder javaDocBuilder = new JavaDocBuilder(); -+ private final JavaProjectBuilder javaDocBuilder = new JavaProjectBuilder(); - - public void addSourceTree(File sourceDir) { - javaDocBuilder.addSourceTree(sourceDir); -Only in hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator: QDox.java.orig -Only in hamcrest-1.3.new/hamcrest-generator/src/main/java/org/hamcrest/generator: QDox.java.rej + package org.hamcrest.generator; + +-import com.thoughtworks.qdox.JavaDocBuilder; ++import com.thoughtworks.qdox.JavaProjectBuilder; + import com.thoughtworks.qdox.model.JavaClass; + + import java.io.File; +@@ -16,7 +16,7 @@ import java.io.Reader; + */ + public class QDox { + +- private final JavaDocBuilder javaDocBuilder = new JavaDocBuilder(); ++ private final JavaProjectBuilder javaDocBuilder = new JavaProjectBuilder(); + + public void addSourceTree(File sourceDir) { + javaDocBuilder.addSourceTree(sourceDir); +diff --git a/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java b/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java +index 5108140..97fce01 100644 +--- a/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java ++++ b/hamcrest-generator/src/main/java/org/hamcrest/generator/QDoxFactoryReader.java +@@ -4,8 +4,10 @@ import com.thoughtworks.qdox.model.DocletTag; + import com.thoughtworks.qdox.model.JavaClass; + import com.thoughtworks.qdox.model.JavaMethod; + import com.thoughtworks.qdox.model.JavaParameter; +-import com.thoughtworks.qdox.model.Type; ++import com.thoughtworks.qdox.model.JavaType; ++import com.thoughtworks.qdox.model.impl.DefaultJavaClass; + ++import java.util.ArrayList; + import java.util.Iterator; + import java.util.List; + import java.util.regex.Pattern; +@@ -56,15 +58,15 @@ public class QDoxFactoryReader implements Iterable { + JavaMethod methodSource = findMethodInSource(factoryMethod); + if (methodSource != null) { + factoryMethod.setJavaDoc(createJavaDocComment(methodSource)); +- JavaParameter[] parametersFromSource ++ List parametersFromSource + = methodSource.getParameters(); + List parametersFromReflection + = factoryMethod.getParameters(); + +- if (parametersFromReflection.size() == parametersFromSource.length) { +- for (int i = 0; i < parametersFromSource.length; i++) { ++ if (parametersFromReflection.size() == parametersFromSource.size()) { ++ for (int i = 0; i < parametersFromSource.size(); i++) { + parametersFromReflection.get(i).setName( +- parametersFromSource[i].getName()); ++ parametersFromSource.get(i).getName()); + } + } + } +@@ -79,18 +81,18 @@ public class QDoxFactoryReader implements Iterable { + // Note, this doesn't always work - it struggles with some kinds of generics. + // This seems to cover most cases though. + List params = factoryMethod.getParameters(); +- Type[] types = new Type[params.size()]; ++ List types = new ArrayList (params.size()); + boolean varArgs = false; +- for (int i = 0; i < types.length; i++) { ++ for (int i = 0; i < params.size(); i++) { + String type = params.get(i).getType(); + varArgs = VARARGS_REGEX.matcher(type).find(); + // QDox ignores varargs and generics, so we strip them out to help QDox. + type = GENERIC_REGEX.matcher(type).replaceAll(""); + type = VARARGS_REGEX.matcher(type).replaceAll(""); +- types[i] = new Type(type); ++ types.add(new DefaultJavaClass(type)); + } +- JavaMethod[] methods = classSource.getMethodsBySignature(factoryMethod.getName(), types, false, varArgs); +- return methods.length == 1 ? methods[0] : null; ++ List methods = classSource.getMethodsBySignature(factoryMethod.getName(), types, false, varArgs); ++ return methods.size() == 1 ? methods.get(0) : null; + } + + /** +@@ -98,8 +100,8 @@ public class QDoxFactoryReader implements Iterable { + */ + private static String createJavaDocComment(JavaMethod methodSource) { + String comment = methodSource.getComment(); +- DocletTag[] tags = methodSource.getTags(); +- if ((comment == null || comment.trim().length() == 0) && tags.length == 0) { ++ List tags = methodSource.getTags(); ++ if ((comment == null || comment.trim().length() == 0) && tags.size() == 0) { + return null; + } + StringBuilder result = new StringBuilder(); +-- +2.9.3 + diff --git a/hamcrest-1.3-random-build-crash.patch b/hamcrest-1.3-random-build-crash.patch index 0370ee9..8c1704c 100644 --- a/hamcrest-1.3-random-build-crash.patch +++ b/hamcrest-1.3-random-build-crash.patch @@ -2,41 +2,41 @@ diff -urN hamcrest-1.3.old/build.xml hamcrest-1.3/build.xml --- hamcrest-1.3.old/build.xml 2014-06-16 13:00:29.321699344 +0200 +++ hamcrest-1.3/build.xml 2014-06-16 14:24:30.160165471 +0200 @@ -27,6 +27,7 @@ - -+ + +- - - + ++ - -+ -+ + @@ -36,7 +37,7 @@ - fork="yes" - failonerror="yes" - classpath=" -- build/hamcrest-core-${version}.jar; -+ build/temp/hamcrest-core-${version}.jar.contents; - build/hamcrest-generator-${version}.jar; - "> - + fork="yes" + failonerror="yes" + classpath=" +- build/hamcrest-core-${version}.jar; ++ build/temp/hamcrest-core-${version}.jar.contents; + build/hamcrest-generator-${version}.jar; + "> + @@ -48,11 +49,13 @@ - -+ -+ + +- +- ++ ++ - -+ -+ -+ + + +++ + diff --git a/hamcrest-1.3.tgz b/hamcrest-1.3.tgz deleted file mode 100644 index 1372908..0000000 --- a/hamcrest-1.3.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6428e40d069fff3f99780efaae96c35ebdbf7cbfd475504254ebffcc19620c2 -size 3686096 diff --git a/hamcrest-all-1.3.pom b/hamcrest-all-1.3.pom deleted file mode 100644 index b996505..0000000 --- a/hamcrest-all-1.3.pom +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/hamcrest-core-1.3.pom b/hamcrest-core-1.3.pom deleted file mode 100644 index 540bbfb..0000000 --- a/hamcrest-core-1.3.pom +++ /dev/null @@ -1,18 +0,0 @@ - -4.0.0 - -- - -org.hamcrest -hamcrest-parent -1.3 -hamcrest-all -jar -Hamcrest All -- A self-contained hamcrest jar containing all of the sub-modules in a single artifact. - -- diff --git a/hamcrest-generator-1.3.pom b/hamcrest-generator-1.3.pom deleted file mode 100644 index 001100a..0000000 --- a/hamcrest-generator-1.3.pom +++ /dev/null @@ -1,17 +0,0 @@ - -4.0.0 - -- - -org.hamcrest -hamcrest-parent -1.3 -hamcrest-core -jar -Hamcrest Core -- This is the core API of hamcrest matcher framework to be used by third-party framework providers. This includes the a foundation set of matcher implementations for common operations. - -- diff --git a/hamcrest-integration-1.3.pom b/hamcrest-integration-1.3.pom deleted file mode 100644 index c0d5d35..0000000 --- a/hamcrest-integration-1.3.pom +++ /dev/null @@ -1,40 +0,0 @@ - -4.0.0 - -- - -org.hamcrest -hamcrest-parent -1.3 -hamcrest-generator -Hamcrest generator -- A tool to allow many Matcher implementations to be combined into a single class so users don't have to remember many classes/packages to import. Generates code. - -- diff --git a/hamcrest-java-1.3.tar.gz b/hamcrest-java-1.3.tar.gz new file mode 100644 index 0000000..d1b1ca7 --- /dev/null +++ b/hamcrest-java-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ac31de50c6f3b047a7bd7f62ab7ca3e88b2a8449d22b0978c9f575740d0e085 +size 2007925 diff --git a/hamcrest-library-1.3.pom b/hamcrest-library-1.3.pom deleted file mode 100644 index 2922828..0000000 --- a/hamcrest-library-1.3.pom +++ /dev/null @@ -1,26 +0,0 @@ - -4.0.0 - -- - -org.hamcrest -hamcrest-parent -1.3 -hamcrest-integration -jar -Hamcrest Integration -- Provides integration between Hamcrest and other testing tools, including JUnit (3 and 4), TestNG, jMock and EasyMock. - - -- -- - -org.hamcrest -hamcrest-library -1.3 -- - -jmock -jmock -1.1.0 -true -- -org.easymock -easymock -2.2 -true -- \ No newline at end of file diff --git a/hamcrest-parent-1.3.pom b/hamcrest-parent-1.3.pom deleted file mode 100644 index 611ac3e..0000000 --- a/hamcrest-parent-1.3.pom +++ /dev/null @@ -1,72 +0,0 @@ - -4.0.0 - -- - -org.hamcrest -hamcrest-parent -1.3 -hamcrest-library -jar -Hamcrest library -- Hamcrest library of matcher implementations. - - -- -- -org.hamcrest -hamcrest-core -1.3 -- diff --git a/hamcrest-text-1.3.pom b/hamcrest-text-1.3.pom deleted file mode 100644 index acf3863..0000000 --- a/hamcrest-text-1.3.pom +++ /dev/null @@ -1,20 +0,0 @@ -4.0.0 - -org.hamcrest -hamcrest-parent -1.3 -pom - -Hamcrest Maven Parent -https://github.com/hamcrest/JavaHamcrest -General parent POM for all hamcrest libraries. - -- - -- -New BSD License -http://www.opensource.org/licenses/bsd-license.php -repo -- - -https://github.com/hamcrest/JavaHamcrest -scm:git:git@github.com:hamcrest/JavaHamcrest.git -- - -- -joe.walnes -Joe Walnes -- -Developer -- -nat.pryce -Nat Pryce -- -Developer -- -smgfreeman -Steve Freeman -- -Developer -- -neildunn -Neil Dunn -- -Developer -- -scarytom -Tom Denley -- -Developer -- -hamcrest-core -hamcrest-generator -hamcrest-library -hamcrest-integration -- diff --git a/hamcrest-text-MANIFEST.MF b/hamcrest-text-MANIFEST.MF deleted file mode 100644 index 07661e7..0000000 --- a/hamcrest-text-MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Vendor: %providerName -Bundle-ActivationPolicy: lazy -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Bundle-Name: %pluginName -Bundle-SymbolicName: org.hamcrest.text -Require-Bundle: org.hamcrest.core;bundle-version="1.3.0",org.hamcrest. - library;bundle-version="1.3.0" -Bundle-Version: 1.3.0.v20090501071000 -Export-Package: org.hamcrest.text.pattern;version="1.3.0",org.hamcrest - .text.pattern.internal.ast;version="1.3.0";x-internal:=true,org.hamcr - est.text.pattern.internal.naming;version="1.3.0";x-internal:=true -Bundle-ManifestVersion: 2 diff --git a/hamcrest.spec b/hamcrest.spec index ba05a58..4a9696e 100644 --- a/hamcrest.spec +++ b/hamcrest.spec @@ -22,45 +22,26 @@ Release: 0 Summary: Library of matchers for building test expressions License: BSD-3-Clause Group: Development/Libraries/Java -Url: https://github.com/hamcrest/JavaHamcrest -Source0: http://%{name}.googlecode.com/files/%{name}-%{version}.tgz -Source1: http://repo1.maven.org/maven2/org/%{name}/%{name}-parent/%{version}/%{name}-parent-%{version}.pom -Source2: http://repo1.maven.org/maven2/org/%{name}/%{name}-library/%{version}/%{name}-library-%{version}.pom -Source3: http://repo1.maven.org/maven2/org/%{name}/%{name}-integration/%{version}/%{name}-integration-%{version}.pom -Source4: http://repo1.maven.org/maven2/org/%{name}/%{name}-generator/%{version}/%{name}-generator-%{version}.pom -Source5: http://repo1.maven.org/maven2/org/%{name}/%{name}-core/%{version}/%{name}-core-%{version}.pom -Source6: http://repo1.maven.org/maven2/org/%{name}/%{name}-all/%{version}/%{name}-all-%{version}.pom -# This file was added by the maintainer for compatibility with maven dep -# solving system -Source7: %{name}-text-%{version}.pom +URL: https://github.com/hamcrest/JavaHamcrest +Source0: https://github.com/hamcrest/JavaHamcrest/archive/hamcrest-java-%{version}.tar.gz Source8: hamcrest-core-MANIFEST.MF Source9: hamcrest-library-MANIFEST.MF -Source10: hamcrest-text-MANIFEST.MF Source11: hamcrest-integration-MANIFEST.MF Source12: hamcrest-generator-MANIFEST.MF -#PATCH-FIX-OPENSUSE: don't use versioned deps, no overview in html Patch0: %{name}-%{version}-build.patch -#PATCH-FIX-OPENSUSE: don't bundle QDox classes into hamcrest-generator.jar Patch1: %{name}-%{version}-no-jarjar.patch -#PATCH-FIX-OPENSUSE: don't build hamcrest-integration.jar -Patch2: %{name}-%{version}-no-integration.patch -#PATCH-FIX-OPENSUSE: there is no hamcrest-generator-nodeps Patch3: %{name}-%{version}-javadoc.patch -#PATCH-FIX-UPSTREAM: random build crash fix -Patch4: hamcrest-1.3-random-build-crash.patch -Patch5: hamcrest-1.3-fork-javac.patch -Patch6: hamcrest-1.3-javadoc9.patch -Patch7: hamcrest-1.3-javadoc10.patch -Patch8: hamcrest-1.3-qdox-2.0.patch -BuildRequires: ant >= 1.6.5 -BuildRequires: java-devel >= 1.6.0 +Patch4: %{name}-%{version}-qdox-2.0.patch +Patch5: %{name}-%{version}-fork-javac.patch +Patch6: %{name}-%{version}-javadoc9.patch +Patch7: %{name}-%{version}-javadoc10.patch +Patch8: %{name}-%{version}-random-build-crash.patch +BuildRequires: ant +BuildRequires: fdupes BuildRequires: javapackages-local -BuildRequires: javapackages-tools BuildRequires: qdox >= 2.0 -BuildRequires: zip -Requires: java >= 1.6.0 +Requires: %{name}-core = %{version}-%{release} Requires: qdox >= 2.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description @@ -69,6 +50,14 @@ predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks. Typical scenarios include testing frameworks, mocking libraries and UI validation rules. +%package core +Summary: Core API of hamcrest matcher framework. +Group: Development/Libraries/Java + +%description core +The core API of hamcrest matcher framework to be used by third-party framework providers. +This includes the a foundation set of matcher implementations for common operations. + %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML @@ -79,23 +68,25 @@ Javadoc for %{name}. %package demo Summary: Demo files for %{name} Group: Development/Libraries/Java -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} Requires: junit %description demo Demo files for %{name}. %prep -%setup -q +%setup -q -n JavaHamcrest-%{name}-java-%{version} + find . -type f -name "*.jar" | xargs -t rm rm -fr hamcrest-integration/src/main/java/org/hamcrest/integration/JMock1Adapter.java rm -fr hamcrest-integration/src/main/java/org/hamcrest/JMock1Matchers.java -rm -fr hamcrest-unit-test/src/main/java/org/hamcrest/integration/JMock1AdapterTest.java +rm -fr hamcrest-integration/src/main/java/org/hamcrest/integration/EasyMock2Adapter.java +rm -fr hamcrest-integration/src/main/java/org/hamcrest/EasyMock2Matchers.java +# BUILD/hamcrest-1.1/lib/generator/qdox-1.6.1.jar.no ln -sf $(build-classpath qdox) lib/generator/ %patch0 -p1 %patch1 -p1 -%patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 @@ -103,49 +94,51 @@ ln -sf $(build-classpath qdox) lib/generator/ %patch7 -p1 %patch8 -p1 -perl -pi -e 's/\r$//g' LICENSE.txt +sed -i 's/\r//' LICENSE.txt %build export CLASSPATH=$(build-classpath qdox) -ant -Dant.build.javac.source=1.6 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc +ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc # inject OSGi manifests jar ufm build/%{name}-core-%{version}.jar %{SOURCE8} jar ufm build/%{name}-library-%{version}.jar %{SOURCE9} -jar ufm build/%{name}-text-%{version}.jar %{SOURCE10} jar ufm build/%{name}-integration-%{version}.jar %{SOURCE11} jar ufm build/%{name}-generator-%{version}.jar %{SOURCE12} %install +sed -i 's/@VERSION@/%{version}/g' pom/*.pom + # jars install -d -m 755 %{buildroot}%{_javadir}/%{name} -install -d -m 755 %{buildroot}%{_mavenpomdir} -install -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP.%{name}-parent.pom -%add_maven_depmap JPP.%{name}-parent.pom - -install -m 644 build/%{name}-all-%{version}.jar %{buildroot}%{_javadir}/%{name}/all.jar -install -m 644 %{SOURCE6} %{buildroot}%{_mavenpomdir}/JPP.%{name}-all.pom -%add_maven_depmap JPP.%{name}-all.pom %{name}/all.jar +install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name} +install -m 644 pom/%{name}-parent.pom %{buildroot}%{_mavenpomdir}/%{name}/parent.pom +%add_maven_depmap %{name}/parent.pom -f core install -m 644 build/%{name}-core-%{version}.jar %{buildroot}%{_javadir}/%{name}/core.jar -install -m 644 %{SOURCE5} %{buildroot}%{_mavenpomdir}/JPP.%{name}-core.pom -%add_maven_depmap JPP.%{name}-core.pom %{name}/core.jar +install -m 644 pom/%{name}-core.pom %{buildroot}%{_mavenpomdir}/%{name}/core.pom +%add_maven_depmap %{name}/core.pom %{name}/core.jar -f core + +install -m 644 build/%{name}-all-%{version}.jar %{buildroot}%{_javadir}/%{name}/all.jar +install -m 644 pom/%{name}-all.pom %{buildroot}%{_mavenpomdir}/%{name}/all.pom +%add_maven_depmap %{name}/all.pom %{name}/all.jar install -m 644 build/%{name}-generator-%{version}.jar %{buildroot}%{_javadir}/%{name}/generator.jar -install -m 644 %{SOURCE4} %{buildroot}%{_mavenpomdir}/JPP.%{name}-generator.pom -%add_maven_depmap JPP.%{name}-generator.pom %{name}/generator.jar +install -m 644 pom/%{name}-generator.pom %{buildroot}%{_mavenpomdir}/%{name}/generator.pom +%add_maven_depmap %{name}/generator.pom %{name}/generator.jar + +install -m 644 build/%{name}-integration-%{version}.jar %{buildroot}%{_javadir}/%{name}/integration.jar +install -m 644 pom/%{name}-integration.pom %{buildroot}%{_mavenpomdir}/%{name}/integration.pom +%add_maven_depmap %{name}/integration.pom %{name}/integration.jar install -m 644 build/%{name}-library-%{version}.jar %{buildroot}%{_javadir}/%{name}/library.jar -install -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP.%{name}-library.pom -%add_maven_depmap JPP.%{name}-library.pom %{name}/library.jar - -install -m 644 build/%{name}-text-%{version}.jar %{buildroot}%{_javadir}/%{name}/text.jar -install -m 644 %{SOURCE7} %{buildroot}%{_mavenpomdir}/JPP.%{name}-text.pom -%add_maven_depmap JPP.%{name}-text.pom %{name}/text.jar +install -m 644 pom/%{name}-library.pom %{buildroot}%{_mavenpomdir}/%{name}/library.pom +%add_maven_depmap %{name}/library.pom %{name}/library.jar # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} -cp -pr build/temp/hamcrest-all-1.3-javadoc.jar.contents/* %{buildroot}%{_javadocdir}/%{name} +cp -pr build/temp/hamcrest-all-%{version}-javadoc.jar.contents/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} # demo install -d -m 755 %{buildroot}%{_datadir}/%{name} @@ -153,22 +146,27 @@ cp -pr %{name}-examples %{buildroot}%{_datadir}/%{name}/ %files %defattr(0644,root,root,0755) -%doc LICENSE.txt -%dir %{_javadir}/%{name} +%license LICENSE.txt %{_javadir}/%{name}/all.jar -%{_javadir}/%{name}/core.jar %{_javadir}/%{name}/generator.jar -%if %with integration %{_javadir}/%{name}/integration.jar -%endif %{_javadir}/%{name}/library.jar -%{_javadir}/%{name}/text.jar -%if %with tests -%{_javadir}/%{name}/unit-test.jar -%endif -%{_mavenpomdir}/* +%{_mavenpomdir}/%{name}/all.pom +%{_mavenpomdir}/%{name}/generator.pom +%{_mavenpomdir}/%{name}/integration.pom +%{_mavenpomdir}/%{name}/library.pom %{_datadir}/maven-metadata/%{name}.xml* +%files core +%defattr(0644,root,root,0755) +%license LICENSE.txt +%dir %{_javadir}/%{name} +%dir %{_mavenpomdir}/%{name} +%{_javadir}/%{name}/core.jar +%{_mavenpomdir}/%{name}/parent.pom +%{_mavenpomdir}/%{name}/core.pom +%{_datadir}/maven-metadata/%{name}-core.xml* + %files javadoc %defattr(0644,root,root,0755) %{_javadocdir}/%{name}4.0.0 -- -org.hamcrest -hamcrest-parent -1.1 -hamcrest-text -jar -Hamcrest Text - -- - -- -${pom.groupId} -hamcrest-core -${pom.version} -