Class Verifying

    • Constructor Detail

      • Verifying

        public Verifying​(RequestManager requestManager)
        Parameters:
        requestManager - request manager instance to assist the verification
    • Method Detail

      • receivedTimes

        public void receivedTimes​(org.hamcrest.Matcher<Integer> nrRequestsPredicate)
        Checks whether the number of requests described in this verifying object received so far matches the given predicate.
        Parameters:
        nrRequestsPredicate - to be applied on the number of requests
        Throws:
        VerificationException - if the number of requests described by this verifying is not matched by the given predicate
      • receivedTimes

        public void receivedTimes​(int count)
        Checks whether the number of requests described in this verifying object received so far matches the exact value.
        Parameters:
        count - expected number of requests described by this verifying object
        Throws:
        VerificationException - if the number of requests described in this verifying object received so far is not equal to the expected value
      • receivedOnce

        public void receivedOnce()
        Checks that exactly one request described in this verifying object has been received so far.
        Throws:
        VerificationException - if the number of expected requests is not equal to one
      • receivedNever

        public void receivedNever()
        Checks that no request described in this verifying object has been received so far.
        Throws:
        VerificationException - if at least one request described in this object has already been received