Package org.takes.rq

Class RqFake

  • All Implemented Interfaces:
    Body, Head, Request

    public final class RqFake
    extends RqWrap
    Fake request (for unit tests).

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • RqFake

        public RqFake()
        Ctor.
      • RqFake

        public RqFake​(CharSequence method)
        Ctor.
        Parameters:
        method - HTTP method
      • RqFake

        public RqFake​(CharSequence method,
                      CharSequence query)
        Ctor.
        Parameters:
        method - HTTP method
        query - HTTP query
      • RqFake

        public RqFake​(List<String> head,
                      org.cactoos.Text body)
        Ctor.
        Parameters:
        head - Head
        body - Body
      • RqFake

        public RqFake​(List<String> head,
                      byte[] body)
        Ctor.
        Parameters:
        head - Head
        body - Body
      • RqFake

        public RqFake​(List<String> head,
                      InputStream body)
        Ctor.
        Parameters:
        head - Head
        body - Body