executeAndValidateRequest(ODataHttpMethod.PUT, UriType.URI17, "image/jpeg", null);
}
@Test
public void requestContentTypeFunctionImport() throws Exception {
EdmFunctionImport function = edm.getDefaultEntityContainer().getFunctionImport("MaximalAge");
when(function.getHttpMethod()).thenReturn(ODataHttpMethod.PUT.name());
executeAndValidateRequest(ODataHttpMethod.PUT, UriType.URI14, null, null);
executeAndValidateRequest(ODataHttpMethod.PUT, UriType.URI14, HttpContentType.WILDCARD, null);
checkValueContentType(ODataHttpMethod.PUT, UriType.URI14, null);
checkValueContentType(ODataHttpMethod.PUT, UriType.URI14, HttpContentType.WILDCARD);
function = edm.getDefaultEntityContainer().getFunctionImport("OldestEmployee");
when(function.getHttpMethod()).thenReturn(ODataHttpMethod.POST.name());
executeAndValidateRequest(ODataHttpMethod.POST, UriType.URI10, null, null);
}