This commit is contained in:
Adrian Cole 2012-04-24 17:42:15 -07:00
parent 058213dd20
commit bf0b15aff0
1 changed files with 5 additions and 4 deletions

View File

@ -41,8 +41,7 @@ public class ContainerClientExpectTest extends BaseCDMIClientExpectTest {
public void testGetContainerWhenResponseIs2xx() throws Exception { public void testGetContainerWhenResponseIs2xx() throws Exception {
HttpRequest getContainer = HttpRequest HttpRequest getContainer = HttpRequest.builder()
.builder()
.method("GET") .method("GET")
.endpoint(URI.create("http://localhost:8080/MyContainer/")) .endpoint(URI.create("http://localhost:8080/MyContainer/"))
.headers(ImmutableMultimap.<String, String> builder() .headers(ImmutableMultimap.<String, String> builder()
@ -53,8 +52,10 @@ public class ContainerClientExpectTest extends BaseCDMIClientExpectTest {
.build()) .build())
.build(); .build();
HttpResponse getContainerResponse = HttpResponse.builder().statusCode(200) HttpResponse getContainerResponse = HttpResponse.builder()
.payload(payloadFromResource("/container.json")).build(); .statusCode(200)
.payload(payloadFromResource("/container.json"))
.build();
CDMIClient clientWhenContainersExist = requestSendsResponse(getContainer, getContainerResponse); CDMIClient clientWhenContainersExist = requestSendsResponse(getContainer, getContainerResponse);