|
@@ -170,14 +170,14 @@ public class FakeZincControllerUnitTest {
|
170
|
170
|
@Test
|
171
|
171
|
public void getOrder() throws Exception {
|
172
|
172
|
|
173
|
|
- this.mockMvc.perform(get("/v1/order/1234546"))
|
|
173
|
+ this.mockMvc.perform(get("/v1/orders/1234546"))
|
174
|
174
|
.andDo(print()).andExpect(status().isOk())
|
175
|
175
|
.andExpect(content().string(FakeZincController.GET_ORDER_RESPONSE));
|
176
|
176
|
}
|
177
|
177
|
|
178
|
178
|
@Test
|
179
|
179
|
public void postOrder_withString() throws Exception {
|
180
|
|
- this.mockMvc.perform(post("/v1/order")
|
|
180
|
+ this.mockMvc.perform(post("/v1/orders")
|
181
|
181
|
.contentType(contentType)
|
182
|
182
|
.content(POST_ORDER_REQUEST))
|
183
|
183
|
.andDo(print())
|
|
@@ -189,7 +189,7 @@ public class FakeZincControllerUnitTest {
|
189
|
189
|
public void postOrder_withObject() throws Exception {
|
190
|
190
|
final String idempotencyKey = "Carina-β-Carinae-Miaplacidus";
|
191
|
191
|
orderRequest.setIdempotencyKey(idempotencyKey);
|
192
|
|
- this.mockMvc.perform(post("/v1/order")
|
|
192
|
+ this.mockMvc.perform(post("/v1/orders")
|
193
|
193
|
.contentType(contentType)
|
194
|
194
|
.content(new Gson().toJson(orderRequest)))
|
195
|
195
|
.andDo(print())
|
|
@@ -207,7 +207,7 @@ public class FakeZincControllerUnitTest {
|
207
|
207
|
final MediaType contentType = new MediaType(MediaType.APPLICATION_JSON.getType(),
|
208
|
208
|
MediaType.APPLICATION_JSON.getSubtype(),
|
209
|
209
|
Charset.forName("utf8"));
|
210
|
|
- this.mockMvc.perform(post("/v1/order")
|
|
210
|
+ this.mockMvc.perform(post("/v1/orders")
|
211
|
211
|
.contentType(contentType)
|
212
|
212
|
.content(new Gson().toJson(orderRequest)))
|
213
|
213
|
.andDo(print())
|