Class EqualsBodyMatcher

  • All Implemented Interfaces:
    BodyMatcher

    public class EqualsBodyMatcher
    extends java.lang.Object
    implements BodyMatcher
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String expected  
    • Constructor Summary

      Constructors 
      Constructor Description
      EqualsBodyMatcher​(java.lang.String body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MatchStatus matches​(java.util.List<java.lang.String> body)
      indicates if the Matcher succeeded in matching the body
      • Methods inherited from class java.lang.Object

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

      • expected

        private final java.lang.String expected
    • Constructor Detail

      • EqualsBodyMatcher

        public EqualsBodyMatcher​(java.lang.String body)
    • Method Detail

      • matches

        public MatchStatus matches​(java.util.List<java.lang.String> body)
                            throws java.lang.AssertionError
        Description copied from interface: BodyMatcher
        indicates if the Matcher succeeded in matching the body
        Specified by:
        matches in interface BodyMatcher
        Parameters:
        body - the list of body parts
        Returns:
        MatchStatus indicating if the Matcher succeeded in matching the body
        Throws:
        java.lang.AssertionError