Class BambooMatchers
java.lang.Object
com.atlassian.bamboo.utils.matchers.BambooMatchers
-
Method Summary
Modifier and TypeMethodDescriptionstatic <F,
T> org.hamcrest.Matcher<F> convertAndMatch
(@NotNull Function<F, T> conversion, @NotNull org.hamcrest.Matcher<? super T> subMatcher) Deprecated.static <F,
T> org.hamcrest.Matcher<F> convertAndMatch
(@NotNull Function<F, T> conversion, @NotNull org.hamcrest.Matcher<? super T> subMatcher, @NotNull String featureDescription, @NotNull String featureName) static <K,
V> @NotNull org.hamcrest.Matcher<Map<? extends K, ? extends V>> emptyMap()
Copied from Hamcrest sources, as this method is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform).static <K,
V> @NotNull org.hamcrest.Matcher<Map<? extends K, ? extends V>> mapWithSize
(int size) Copied from Hamcrest sources, as this method is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform).static <K,
V> @NotNull org.hamcrest.Matcher<Map<? extends K, ? extends V>> mapWithSize
(@NotNull org.hamcrest.Matcher<? super Integer> sizeMatcher) Copied from Hamcrest sources, as this method is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform).static <T> org.hamcrest.Matcher<T>
predicateApplies
(@NotNull Predicate<T> predicate)
-
Method Details
-
predicateApplies
public static <T> org.hamcrest.Matcher<T> predicateApplies(@NotNull @NotNull Predicate<T> predicate) -
convertAndMatch
@Deprecated public static <F,T> org.hamcrest.Matcher<F> convertAndMatch(@NotNull @NotNull Function<F, T> conversion, @NotNull @NotNull org.hamcrest.Matcher<? super T> subMatcher) Deprecated.since 6.2 useconvertAndMatch(Function, Matcher, String, String)
-
convertAndMatch
-
mapWithSize
@NotNull public static <K,V> @NotNull org.hamcrest.Matcher<Map<? extends K,? extends V>> mapWithSize(@NotNull @NotNull org.hamcrest.Matcher<? super Integer> sizeMatcher) Copied from Hamcrest sources, as this method is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform). -
mapWithSize
@NotNull public static <K,V> @NotNull org.hamcrest.Matcher<Map<? extends K,? extends V>> mapWithSize(int size) Copied from Hamcrest sources, as this method is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform). -
emptyMap
@NotNull public static <K,V> @NotNull org.hamcrest.Matcher<Map<? extends K,? extends V>> emptyMap()Copied from Hamcrest sources, as this method is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform).
-
convertAndMatch(Function, Matcher, String, String)