Class BambooMatchers

java.lang.Object
com.atlassian.bamboo.utils.matchers.BambooMatchers

public class BambooMatchers extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static <F, T> org.hamcrest.Matcher<F>
    convertAndMatch(@NotNull Function<F,T> conversion, @NotNull org.hamcrest.Matcher<? super T> subMatcher)
    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>>
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)
    • convertAndMatch

      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)
    • 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).