@Test(expected = IllegalStateException.class) public void testStringBodyIfBodyIsAlreadyDefined() { bodyBuilder.string("body1", HttpConstants.CONTENT_TEXT_PLAIN); bodyBuilder.string("body2", HttpConstants.CONTENT_TEXT_PLAIN); }
@Override public void string(String str, String mediaType) { initBody(RequestBody.create(str, MediaType.parse(mediaType))); }
RequestBodyBuilderImpl implements RequestBodyBuilder { @Override public void string(String str, String mediaType) { initBody(RequestBody.create(str, MediaType.parse(mediaType))); } }
RequestBodyBuilderImpl implements RequestBodyBuilder { @Override public void string(String str, String mediaType) { initBody(RequestBody.create(str, MediaType.parse(mediaType))); } RequestBodyBuilderImpl(ObjectMapper mapper); }
RequestBodyBuilderImpl implements RequestBodyBuilder { @Override public void string(String str, String mediaType) { initBody(RequestBody.create(str, MediaType.parse(mediaType))); } RequestBodyBuilderImpl(ObjectMapper mapper); @Override void string(String str, String mediaType); @Override void file(Path path, String mediaType); @Override void json(Object payload); RequestBody getBody(); String getFileName(); }
RequestBodyBuilderImpl implements RequestBodyBuilder { @Override public void string(String str, String mediaType) { initBody(RequestBody.create(str, MediaType.parse(mediaType))); } RequestBodyBuilderImpl(ObjectMapper mapper); @Override void string(String str, String mediaType); @Override void file(Path path, String mediaType); @Override void json(Object payload); RequestBody getBody(); String getFileName();  }