@ CanIgnoreReturnValue public Ordered containsAtLeastEntriesIn ( Map < ? , ? > expectedMap ) { if ( expectedMap . isEmpty ( ) ) { return IN_ORDER ; } boolean containsAnyOrder = containsEntriesInAnyOrder ( expectedMap , "contains at least" , /* allowUnexpected= */ true ) ; if ( containsAnyOrder ) { return new MapInOrder ( expectedMap , "contains at least these entries in order" ) ; } else { return ALREADY_FAILED ; } }
Fails if the map does not contain at least the given set of entries in the given map .