mirror of https://github.com/apache/jclouds.git
pretty
This commit is contained in:
parent
058213dd20
commit
bf0b15aff0
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue