Class BambooMatchers


  • public class BambooMatchers
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      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>>
      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 Detail

      • predicateApplies

        public static <T> org.hamcrest.Matcher<T> predicateApplies​(@NotNull
                                                                   @NotNull Predicate<T> predicate)
      • 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).