We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e7045 commit 7a28ef8Copy full SHA for 7a28ef8
hamcrest-library/src/main/java/org/hamcrest/collection/IsArray.java
@@ -3,6 +3,7 @@
3
import java.util.Arrays;
4
5
import org.hamcrest.Description;
6
+import org.hamcrest.Factory;
7
import org.hamcrest.Matcher;
8
import org.hamcrest.TypeSafeMatcher;
9
@@ -80,6 +81,7 @@ protected String descriptionEnd() {
80
81
/**
82
* Evaluates to true only if each matcher[i] is satisfied by array[i].
83
*/
84
+ @Factory
85
public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers) {
86
return new IsArray<T>(elementMatchers);
87
}
0 commit comments