public class TestClient extends Object
Constructor and Description |
---|
TestClient() |
TestClient(AppContextLoader app) |
Modifier and Type | Method and Description |
---|---|
MockRequest |
build(String path,
String method) |
MockResponse |
get(String path) |
MockResponse |
post(String path,
Map<String,Object> data) |
MockResponse |
post(String path,
Object dataObject) |
MockResponse |
put(String path,
Map<String,Object> data) |
MockResponse |
put(String path,
Object dataObject) |
MockResponse |
request(StRequest request) |
TestClient |
withCookie(String name,
String value) |
TestClient |
withUser(Long userId) |
TestClient |
withUser(String email) |
public TestClient()
public TestClient(AppContextLoader app)
public TestClient withUser(String email)
public TestClient withUser(Long userId)
public TestClient withCookie(String name, String value)
public MockResponse get(String path)
public MockResponse post(String path, Object dataObject)
public MockResponse put(String path, Object dataObject)
public MockRequest build(String path, String method)
public MockResponse request(StRequest request)
Copyright © 2016. All rights reserved.