mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Allow ProtobufHttpMessageConverter extensions
Make ProtobufFormatDelegate protected and visible to subclasses. Expose constructor that allows passing the delegate in. See gh-35403
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ class ProtobufHttpMessageConverterTests {
|
||||
@Test
|
||||
void writeJsonWithGoogleProtobuf() throws IOException {
|
||||
this.converter = new ProtobufHttpMessageConverter(
|
||||
new ProtobufHttpMessageConverter.ProtobufJavaUtilSupport(null, null),
|
||||
new ProtobufHttpMessageConverter.ProtobufJavaUtilDelegate(null, null),
|
||||
this.extensionRegistry);
|
||||
MockHttpOutputMessage outputMessage = new MockHttpOutputMessage();
|
||||
MediaType contentType = MediaType.APPLICATION_JSON;
|
||||
|
||||
Reference in New Issue
Block a user