Skip to content

Commit ed60476

Browse files
committed
Renamed factory classes from MatchX to MatchingX
1 parent f006632 commit ed60476

39 files changed

Lines changed: 117 additions & 117 deletions

‎hamcrest-core/src/test/java/org/hamcrest/core/IsEqualTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.junit.Test;
77

88
import static org.hamcrest.AbstractMatcherTest.*;
9-
import static org.hamcrest.object.MatchObjects.equalTo;
10-
import static org.hamcrest.object.MatchObjects.equalToObject;
9+
import static org.hamcrest.object.MatchingObjects.equalTo;
10+
import static org.hamcrest.object.MatchingObjects.equalToObject;
1111

1212
public final class IsEqualTest {
1313

‎hamcrest-library/src/main/java/org/hamcrest/Matchers.java‎

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

hamcrest-library/src/main/java/org/hamcrest/beans/MatchBeans.java renamed to hamcrest-library/src/main/java/org/hamcrest/beans/MatchingBeans.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.hamcrest.beans;
22

3-
public class MatchBeans {
3+
public class MatchingBeans {
44
/**
55
* Creates a matcher that matches when the examined object has a JavaBean property
66
* with the specified name.

hamcrest-library/src/main/java/org/hamcrest/collection/MatchArrays.java renamed to hamcrest-library/src/main/java/org/hamcrest/collection/MatchingArrays.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import static org.hamcrest.core.DescribedAs.describedAs;
1212
import static org.hamcrest.core.IsEqual.equalTo;
1313

14-
public class MatchArrays {
14+
public class MatchingArrays {
1515
/**
1616
* Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. Matches
1717
* positively only if the number of matchers specified is equal to the length of the examined array and
@@ -196,7 +196,7 @@ public static <E> Matcher<E[]> arrayWithSize(int size) {
196196
* <pre>assertThat(new String[0], emptyArray())</pre>
197197
*/
198198
public static <E> Matcher<E[]> emptyArray() {
199-
return describedAs("an empty array", MatchArrays.<E>arrayWithSize(0));
199+
return describedAs("an empty array", MatchingArrays.<E>arrayWithSize(0));
200200
}
201201

202202
}

hamcrest-library/src/main/java/org/hamcrest/collection/MatchCollections.java renamed to hamcrest-library/src/main/java/org/hamcrest/collection/MatchingCollections.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import java.util.Collection;
66

7-
import static org.hamcrest.object.MatchObjects.equalTo;
7+
import static org.hamcrest.object.MatchingObjects.equalTo;
88

99
/**
1010
* @since 2.0
1111
*/
12-
public class MatchCollections {
12+
public class MatchingCollections {
1313
/**
1414
* Creates a matcher for {@link java.util.Collection}s that matches when the <code>size()</code> method returns
1515
* a value that satisfies the specified matcher.

hamcrest-library/src/main/java/org/hamcrest/collection/MatchIterables.java renamed to hamcrest-library/src/main/java/org/hamcrest/collection/MatchingIterables.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.hamcrest.Matchers;
55
import org.hamcrest.core.Every;
66
import org.hamcrest.core.IsCollectionContaining;
7-
import org.hamcrest.object.MatchObjects;
7+
import org.hamcrest.object.MatchingObjects;
88

99
import java.util.ArrayList;
1010
import java.util.Collection;
@@ -14,9 +14,9 @@
1414
import static java.util.Arrays.asList;
1515
import static org.hamcrest.internal.Wrapping.asEqualToMatchers;
1616
import static org.hamcrest.internal.Wrapping.nullSafe;
17-
import static org.hamcrest.object.MatchObjects.equalTo;
17+
import static org.hamcrest.object.MatchingObjects.equalTo;
1818

19-
public class MatchIterables {
19+
public class MatchingIterables {
2020
/**
2121
* Creates a matcher for {@link Iterable}s that only matches when a single pass over the
2222
* examined {@link Iterable} yields items that are all matched by the specified
@@ -328,7 +328,7 @@ public static <T> Matcher<Iterable<? extends T>> hasSubsequence(Matcher<? super
328328
public static <T> Matcher<Iterable<? extends T>> hasSubsequence(Iterable<? extends T> items) {
329329
List<Matcher<? super T>> matchers = new ArrayList<>();
330330
for (Object item : items) {
331-
matchers.add(MatchObjects.equalTo(item));
331+
matchers.add(MatchingObjects.equalTo(item));
332332
}
333333
return new HasSubsequence<>(matchers);
334334
}

hamcrest-library/src/main/java/org/hamcrest/collection/MatchMaps.java renamed to hamcrest-library/src/main/java/org/hamcrest/collection/MatchingMaps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.hamcrest.collection;
22

3-
public class MatchMaps {
3+
public class MatchingMaps {
44
/**
55
* Creates a matcher for {@link java.util.Map}s that matches when the <code>size()</code> method returns
66
* a value that satisfies the specified matcher.

hamcrest-library/src/main/java/org/hamcrest/number/MatchNumbers.java renamed to hamcrest-library/src/main/java/org/hamcrest/number/MatchingNumbers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import java.math.BigDecimal;
66

7-
public class MatchNumbers {
7+
public class MatchingNumbers {
88
/**
99
* Creates a matcher of {@link Double}s that matches when an examined double is equal
1010
* to the specified <code>operand</code>, within a range of +/- <code>error</code>.

hamcrest-library/src/main/java/org/hamcrest/object/MatchObjects.java renamed to hamcrest-library/src/main/java/org/hamcrest/object/MatchingObjects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import static org.hamcrest.core.IsNot.not;
1313

14-
public class MatchObjects {
14+
public class MatchingObjects {
1515
/**
1616
* Creates a matcher that always matches, regardless of the examined object.
1717
*/

hamcrest-library/src/main/java/org/hamcrest/text/MatchStrings.java renamed to hamcrest-library/src/main/java/org/hamcrest/text/MatchingStrings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import static org.hamcrest.core.AnyOf.anyOf;
1111
import static org.hamcrest.core.IsNull.nullValue;
1212

13-
public class MatchStrings {
13+
public class MatchingStrings {
1414
public static final Matcher<String> IS_EMPTY_STRING = new TypeSafeMatcher<String>() {
1515
@Override public void describeTo(Description description) { description.appendText("an empty string"); }
1616
@Override protected boolean matchesSafely(String item) { return item.isEmpty(); }

0 commit comments

Comments
 (0)