abstract out metadata type

This commit is contained in:
danikov 2012-02-07 15:15:03 +00:00
parent a1ebfc36f7
commit 86289bd703
1 changed files with 2 additions and 3 deletions

View File

@ -65,10 +65,9 @@ public class BaseVCloudDirectorRestClientExpectTest extends BaseRestClientExpect
.build()).build();
}
protected HttpResponse getStandardPaylodResponse(String relativeFilePath) {
protected HttpResponse getStandardPaylodResponse(String relativeFilePath, String mediaType) {
return HttpResponse.builder().statusCode(200)
.payload(payloadFromResourceWithContentType(relativeFilePath, VCloudDirectorMediaType.ORGLIST_XML
+ ";version=1.5")).build();
.payload(payloadFromResourceWithContentType(relativeFilePath, mediaType+";version=1.5")).build();
}
}