Class MapSubject.MapInOrder

  • All Implemented Interfaces:
    Ordered
    Enclosing class:
    MapSubject

    private class MapSubject.MapInOrder
    extends java.lang.Object
    implements Ordered
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<?,​?> expectedMap  
      private java.lang.String failVerb  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapInOrder​(java.util.Map<?,​?> expectedMap, java.lang.String failVerb)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void inOrder()
      Checks whether the common elements between actual and expected are in the same order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • expectedMap

        private final java.util.Map<?,​?> expectedMap
      • failVerb

        private final java.lang.String failVerb
    • Constructor Detail

      • MapInOrder

        MapInOrder​(java.util.Map<?,​?> expectedMap,
                   java.lang.String failVerb)
    • Method Detail

      • inOrder

        public void inOrder()
        Checks whether the common elements between actual and expected are in the same order.

        This doesn't check whether the keys have the same values or whether all the required keys are actually present. That was supposed to be done before the "in order" part.

        Specified by:
        inOrder in interface Ordered