public final class RqWithAuth extends RqWrap
This class is very useful for unit testing, when you need to test a "take" that requires a request to contain an already authenticated user.
The class is immutable and thread-safe.
Constructor and Description |
---|
RqWithAuth(Identity identity)
Ctor.
|
RqWithAuth(Identity identity,
Request req)
Ctor.
|
RqWithAuth(Identity identity,
String header,
Request req)
Ctor.
|
RqWithAuth(String urn)
Ctor.
|
RqWithAuth(String urn,
Request req)
Ctor.
|
public RqWithAuth(String urn) throws IOException
urn
- URN of the testerIOException
- If failspublic RqWithAuth(Identity identity) throws IOException
identity
- IdentityIOException
- If failspublic RqWithAuth(String urn, Request req) throws IOException
urn
- URN of the testerreq
- RequestIOException
- If failspublic RqWithAuth(Identity identity, Request req) throws IOException
identity
- Identityreq
- RequestIOException
- If failspublic RqWithAuth(Identity identity, String header, Request req) throws IOException
identity
- Identityheader
- Header namereq
- RequestIOException
- If failsCopyright © 2015–2016 Take. All rights reserved.