Class MapSubject<S extends MapSubject<S,​K,​V,​M>,​K,​V,​M extends Map<K,​V>>


  • public class MapSubject<S extends MapSubject<S,​K,​V,​M>,​K,​V,​M extends Map<K,​V>>
    extends Subject<S,​M>
    Propositions for Map subjects.
    Author:
    Christian Gruber (cgruber@israfil.net), Kurt Alfred Kluever
    • Method Detail

      • isEmpty

        public void isEmpty()
        Fails if the map is not empty.
      • isNotEmpty

        public void isNotEmpty()
        Fails if the map is empty.
      • hasSize

        public final void hasSize​(int expectedSize)
        Fails if the map does not have the given size.
      • containsKey

        public void containsKey​(Object key)
        Fails if the map does not contain the given key.
      • doesNotContainKey

        public void doesNotContainKey​(Object key)
        Fails if the map contains the given key.
      • containsEntry

        public void containsEntry​(Object key,
                                  Object value)
        Fails if the map does not contain the given entry.
      • doesNotContainEntry

        public void doesNotContainEntry​(Object key,
                                        Object value)
        Fails if the map contains the given entry.