public class BambooMatchers extends Object
Modifier and Type | Method and Description |
---|---|
static <F,T> org.hamcrest.Matcher<F> |
convertAndMatch(@NotNull Function<F,T> conversion,
@NotNull org.hamcrest.Matcher<? super T> subMatcher)
Deprecated.
since 6.2 use
convertAndMatch(Function, Matcher, String, String) |
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) |
public static <T> org.hamcrest.Matcher<T> predicateApplies(@NotNull @NotNull Predicate<T> predicate)
@Deprecated public static <F,T> org.hamcrest.Matcher<F> convertAndMatch(@NotNull @NotNull Function<F,T> conversion, @NotNull @NotNull org.hamcrest.Matcher<? super T> subMatcher)
convertAndMatch(Function, Matcher, String, String)
public static <F,T> org.hamcrest.Matcher<F> convertAndMatch(@NotNull @NotNull Function<F,T> conversion, @NotNull @NotNull org.hamcrest.Matcher<? super T> subMatcher, @NotNull @NotNull String featureDescription, @NotNull @NotNull String featureName)
@NotNull public static <K,V> @NotNull org.hamcrest.Matcher<Map<? extends K,? extends V>> mapWithSize(@NotNull @NotNull org.hamcrest.Matcher<? super Integer> sizeMatcher)
@NotNull public static <K,V> @NotNull org.hamcrest.Matcher<Map<? extends K,? extends V>> mapWithSize(int size)
@NotNull public static <K,V> @NotNull org.hamcrest.Matcher<Map<? extends K,? extends V>> emptyMap()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.