Class MkGrizzlyContainer

    • Constructor Detail

      • MkGrizzlyContainer

        public MkGrizzlyContainer()
    • Method Detail

      • next

        public MkContainer next​(MkAnswer answer)
        Description copied from interface: MkContainer
        Give this answer on the next request.
        Specified by:
        next in interface MkContainer
        Parameters:
        answer - Next answer to give
        Returns:
        This object
      • next

        public MkContainer next​(MkAnswer answer,
                                org.hamcrest.Matcher<MkQuery> condition)
        Description copied from interface: MkContainer
        Give this answer on the next request if the matcher condition is satisfied.
        Specified by:
        next in interface MkContainer
        Parameters:
        answer - Next answer to give
        condition - The condition to match
        Returns:
        This object
      • next

        public MkContainer next​(MkAnswer answer,
                                org.hamcrest.Matcher<MkQuery> condition,
                                int count)
        Description copied from interface: MkContainer
        Give this answer on the next request(s) if the matcher condition is satisfied up to a certain number of requests.
        Specified by:
        next in interface MkContainer
        Parameters:
        answer - Next answer to give
        condition - The condition to match
        count - Number of requests to match
        Returns:
        This object
      • take

        public MkQuery take​(org.hamcrest.Matcher<MkAnswer> matcher)
        Description copied from interface: MkContainer
        Get the oldest request received subject to the matching condition. (NoSuchElementException if no elements satisfy the condition).
        Specified by:
        take in interface MkContainer
        Parameters:
        matcher - The matcher specifying the condition
        Returns:
        Request received satisfying the matcher
      • takeAll

        public Collection<MkQuery> takeAll​(org.hamcrest.Matcher<MkAnswer> matcher)
        Description copied from interface: MkContainer
        Get the all requests received satisfying the given matcher. (NoSuchElementException if no elements satisfy the condition).
        Specified by:
        takeAll in interface MkContainer
        Parameters:
        matcher - The matcher specifying the condition
        Returns:
        Collection of all requests satisfying the matcher, ordered from oldest to newest.
      • start

        public MkContainer start​(int prt)
                          throws IOException
        Description copied from interface: MkContainer
        Start it on a provided port.
        Specified by:
        start in interface MkContainer
        Parameters:
        prt - The port where it should start listening
        Returns:
        This object
        Throws:
        IOException - If fails
      • stop

        public void stop()
        Description copied from interface: MkContainer
        Stop container.
        Specified by:
        stop in interface MkContainer
      • home

        public URI home()
        Description copied from interface: MkContainer
        Get its home.
        Specified by:
        home in interface MkContainer
        Returns:
        URI of the started container