@Test public void testBuilderTextBody() throws UnsupportedEncodingException { ODataResponse response = new ODataResponse.Builder() .setStatus(ODataResponse.Status.CREATED) .setBodyText("The bike costs € 725", "UTF-8") .build(); assertThat(response.getStatus(), is(ODataResponse.Status.CREATED)); assertThat(response.getBodyText("UTF-8"), is("The bike costs € 725")); }
public Status getStatus() { return status; }
ODataResponse extends ODataRequestResponseBase { public Status getStatus() { return status; } }
ODataResponse extends ODataRequestResponseBase { public Status getStatus() { return status; } private  ODataResponse(Builder builder); }
ODataResponse extends ODataRequestResponseBase { public Status getStatus() { return status; } private  ODataResponse(Builder builder); Status getStatus(); @Override String toString(); }
ODataResponse extends ODataRequestResponseBase { public Status getStatus() { return status; } private  ODataResponse(Builder builder); Status getStatus(); @Override String toString();  }