Browse Source

Move JSON and XML codecs to org.springframework.http.codec

pull/1111/head
Sebastien Deleuze 10 years ago
parent
commit
b115f1885d
  1. 3
      spring-web-reactive/src/main/java/org/springframework/http/codec/json/JacksonJsonDecoder.java
  2. 3
      spring-web-reactive/src/main/java/org/springframework/http/codec/json/JacksonJsonEncoder.java
  3. 3
      spring-web-reactive/src/main/java/org/springframework/http/codec/json/JsonObjectDecoder.java
  4. 3
      spring-web-reactive/src/main/java/org/springframework/http/codec/xml/Jaxb2Decoder.java
  5. 3
      spring-web-reactive/src/main/java/org/springframework/http/codec/xml/Jaxb2Encoder.java
  6. 2
      spring-web-reactive/src/main/java/org/springframework/http/codec/xml/JaxbContextContainer.java
  7. 3
      spring-web-reactive/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java
  8. 4
      spring-web-reactive/src/main/java/org/springframework/web/client/reactive/WebClient.java
  9. 8
      spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java
  10. 2
      spring-web-reactive/src/test/java/org/springframework/core/codec/support/StringDecoderTests.java
  11. 2
      spring-web-reactive/src/test/java/org/springframework/http/codec/Pojo.java
  12. 4
      spring-web-reactive/src/test/java/org/springframework/http/codec/SseEventEncoderTests.java
  13. 4
      spring-web-reactive/src/test/java/org/springframework/http/codec/json/JacksonJsonDecoderTests.java
  14. 4
      spring-web-reactive/src/test/java/org/springframework/http/codec/json/JacksonJsonEncoderTests.java
  15. 2
      spring-web-reactive/src/test/java/org/springframework/http/codec/json/JsonObjectDecoderTests.java
  16. 5
      spring-web-reactive/src/test/java/org/springframework/http/codec/xml/Jaxb2DecoderTests.java
  17. 3
      spring-web-reactive/src/test/java/org/springframework/http/codec/xml/Jaxb2EncoderTests.java
  18. 3
      spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlEventDecoderTests.java
  19. 2
      spring-web-reactive/src/test/java/org/springframework/web/client/reactive/WebClientIntegrationTests.java
  20. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/config/ViewResolverRegistryTests.java
  21. 6
      spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java
  22. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageConverterResultHandlerTests.java
  23. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java
  24. 2
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java
  25. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java
  26. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java
  27. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java
  28. 4
      spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/HttpMessageConverterViewTests.java

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/JacksonJsonDecoder.java → spring-web-reactive/src/main/java/org/springframework/http/codec/json/JacksonJsonDecoder.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.json;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@ -29,6 +29,7 @@ import reactor.core.publisher.Flux; @@ -29,6 +29,7 @@ import reactor.core.publisher.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.CodecException;
import org.springframework.core.codec.Decoder;
import org.springframework.core.codec.support.AbstractDecoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.support.DataBufferUtils;
import org.springframework.util.Assert;

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/JacksonJsonEncoder.java → spring-web-reactive/src/main/java/org/springframework/http/codec/json/JacksonJsonEncoder.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.json;
import java.io.IOException;
import java.io.OutputStream;
@ -31,6 +31,7 @@ import reactor.core.publisher.Mono; @@ -31,6 +31,7 @@ import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.CodecException;
import org.springframework.core.codec.support.AbstractEncoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.util.Assert;

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/JsonObjectDecoder.java → spring-web-reactive/src/main/java/org/springframework/http/codec/json/JsonObjectDecoder.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.json;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
@ -28,6 +28,7 @@ import org.reactivestreams.Publisher; @@ -28,6 +28,7 @@ import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.AbstractDecoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.core.io.buffer.support.DataBufferUtils;

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/Jaxb2Decoder.java → spring-web-reactive/src/main/java/org/springframework/http/codec/xml/Jaxb2Decoder.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import java.util.ArrayList;
import java.util.List;
@ -36,6 +36,7 @@ import reactor.core.publisher.Mono; @@ -36,6 +36,7 @@ import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.CodecException;
import org.springframework.core.codec.support.AbstractDecoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.util.ClassUtils;
import org.springframework.util.MimeType;

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/Jaxb2Encoder.java → spring-web-reactive/src/main/java/org/springframework/http/codec/xml/Jaxb2Encoder.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlType; @@ -26,6 +26,7 @@ import javax.xml.bind.annotation.XmlType;
import reactor.core.publisher.Flux;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.AbstractSingleValueEncoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.DataBufferFactory;
import org.springframework.util.ClassUtils;

2
spring-web-reactive/src/main/java/org/springframework/core/codec/support/JaxbContextContainer.java → spring-web-reactive/src/main/java/org/springframework/http/codec/xml/JaxbContextContainer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

3
spring-web-reactive/src/main/java/org/springframework/core/codec/support/XmlEventDecoder.java → spring-web-reactive/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import java.io.InputStream;
import java.util.ArrayList;
@ -35,6 +35,7 @@ import reactor.core.publisher.Flux; @@ -35,6 +35,7 @@ import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.AbstractDecoder;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.support.DataBufferUtils;
import org.springframework.util.ClassUtils;

4
spring-web-reactive/src/main/java/org/springframework/web/client/reactive/WebClient.java

@ -26,8 +26,8 @@ import org.springframework.core.codec.Decoder; @@ -26,8 +26,8 @@ import org.springframework.core.codec.Decoder;
import org.springframework.core.codec.Encoder;
import org.springframework.core.codec.support.ByteBufferDecoder;
import org.springframework.core.codec.support.ByteBufferEncoder;
import org.springframework.core.codec.support.JacksonJsonDecoder;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.core.codec.support.StringDecoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.http.HttpStatus;

8
spring-web-reactive/src/main/java/org/springframework/web/reactive/config/WebReactiveConfiguration.java

@ -32,10 +32,10 @@ import org.springframework.core.codec.Decoder; @@ -32,10 +32,10 @@ import org.springframework.core.codec.Decoder;
import org.springframework.core.codec.Encoder;
import org.springframework.core.codec.support.ByteBufferDecoder;
import org.springframework.core.codec.support.ByteBufferEncoder;
import org.springframework.core.codec.support.JacksonJsonDecoder;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.core.codec.support.Jaxb2Decoder;
import org.springframework.core.codec.support.Jaxb2Encoder;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Decoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.core.codec.support.StringDecoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.core.convert.converter.Converter;

2
spring-web-reactive/src/test/java/org/springframework/core/codec/support/StringDecoderTests.java

@ -54,7 +54,7 @@ public class StringDecoderTests extends AbstractDataBufferAllocatingTestCase { @@ -54,7 +54,7 @@ public class StringDecoderTests extends AbstractDataBufferAllocatingTestCase {
MediaType.APPLICATION_JSON));
assertFalse(this.decoder
.canDecode(ResolvableType.forClass(Integer.class), MediaType.TEXT_PLAIN));
assertFalse(this.decoder.canDecode(ResolvableType.forClass(Pojo.class),
assertFalse(this.decoder.canDecode(ResolvableType.forClass(Object.class),
MediaType.APPLICATION_JSON));
}

2
spring-web-reactive/src/test/java/org/springframework/core/codec/support/Pojo.java → spring-web-reactive/src/test/java/org/springframework/http/codec/Pojo.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec;
import javax.xml.bind.annotation.XmlRootElement;

4
spring-web-reactive/src/test/java/org/springframework/core/codec/support/SseEventEncoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/SseEventEncoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec;
import java.util.Arrays;
@ -28,7 +28,7 @@ import org.springframework.core.ResolvableType; @@ -28,7 +28,7 @@ import org.springframework.core.ResolvableType;
import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.FlushingDataBuffer;
import org.springframework.http.codec.SseEventEncoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.util.MimeType;
import org.springframework.web.reactive.sse.SseEvent;

4
spring-web-reactive/src/test/java/org/springframework/core/codec/support/JacksonJsonDecoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/json/JacksonJsonDecoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.json;
import java.lang.reflect.Method;
import java.util.Arrays;
@ -29,6 +29,8 @@ import org.springframework.core.ResolvableType; @@ -29,6 +29,8 @@ import org.springframework.core.ResolvableType;
import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.MediaType;
import org.springframework.http.codec.Pojo;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

4
spring-web-reactive/src/test/java/org/springframework/core/codec/support/JacksonJsonEncoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/json/JacksonJsonEncoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.json;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@ -27,6 +27,8 @@ import org.springframework.core.ResolvableType; @@ -27,6 +27,8 @@ import org.springframework.core.ResolvableType;
import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.MediaType;
import org.springframework.http.codec.Pojo;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

2
spring-web-reactive/src/test/java/org/springframework/core/codec/support/JsonObjectDecoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/json/JsonObjectDecoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.json;
import java.nio.charset.StandardCharsets;

5
spring-web-reactive/src/test/java/org/springframework/core/codec/support/Jaxb2DecoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/xml/Jaxb2DecoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import java.util.List;
import javax.xml.namespace.QName;
@ -34,6 +34,9 @@ import org.springframework.core.codec.support.jaxb.XmlTypeWithNameAndNamespace; @@ -34,6 +34,9 @@ import org.springframework.core.codec.support.jaxb.XmlTypeWithNameAndNamespace;
import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.http.MediaType;
import org.springframework.http.codec.Pojo;
import org.springframework.http.codec.xml.Jaxb2Decoder;
import org.springframework.http.codec.xml.XmlEventDecoder;
import static org.junit.Assert.*;

3
spring-web-reactive/src/test/java/org/springframework/core/codec/support/Jaxb2EncoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/xml/Jaxb2EncoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@ -31,6 +31,7 @@ import org.springframework.core.io.buffer.DataBuffer; @@ -31,6 +31,7 @@ import org.springframework.core.io.buffer.DataBuffer;
import org.springframework.core.io.buffer.support.DataBufferTestUtils;
import org.springframework.core.io.buffer.support.DataBufferUtils;
import org.springframework.http.MediaType;
import org.springframework.http.codec.Pojo;
import static org.custommonkey.xmlunit.XMLAssert.assertXMLEqual;
import static org.custommonkey.xmlunit.XMLAssert.fail;

3
spring-web-reactive/src/test/java/org/springframework/core/codec/support/XmlEventDecoderTests.java → spring-web-reactive/src/test/java/org/springframework/http/codec/xml/XmlEventDecoderTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.core.codec.support;
package org.springframework.http.codec.xml;
import javax.xml.stream.events.XMLEvent;
@ -23,6 +23,7 @@ import reactor.core.publisher.Flux; @@ -23,6 +23,7 @@ import reactor.core.publisher.Flux;
import reactor.core.test.TestSubscriber;
import org.springframework.core.io.buffer.AbstractDataBufferAllocatingTestCase;
import org.springframework.http.codec.xml.XmlEventDecoder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

2
spring-web-reactive/src/test/java/org/springframework/web/client/reactive/WebClientIntegrationTests.java

@ -34,7 +34,7 @@ import reactor.core.publisher.Flux; @@ -34,7 +34,7 @@ import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.test.TestSubscriber;
import org.springframework.core.codec.support.Pojo;
import org.springframework.http.codec.Pojo;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/ViewResolverRegistryTests.java

@ -19,7 +19,7 @@ import org.junit.Before; @@ -19,7 +19,7 @@ import org.junit.Before;
import org.junit.Test;
import org.springframework.core.Ordered;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.web.context.support.StaticWebApplicationContext;
import org.springframework.web.reactive.result.view.HttpMessageConverterView;
import org.springframework.web.reactive.result.view.UrlBasedViewResolver;

6
spring-web-reactive/src/test/java/org/springframework/web/reactive/config/WebReactiveConfigurationTests.java

@ -35,9 +35,9 @@ import org.springframework.context.annotation.Bean; @@ -35,9 +35,9 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.core.codec.support.Jaxb2Decoder;
import org.springframework.core.codec.support.Jaxb2Encoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Decoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.core.codec.support.StringDecoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.core.convert.ConversionService;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/MessageConverterResultHandlerTests.java

@ -38,8 +38,8 @@ import rx.Observable; @@ -38,8 +38,8 @@ import rx.Observable;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.ByteBufferEncoder;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.core.codec.support.Jaxb2Encoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.core.convert.support.ReactiveStreamsToCompletableFutureConverter;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestBodyArgumentResolverTests.java

@ -43,7 +43,7 @@ import org.springframework.core.MethodParameter; @@ -43,7 +43,7 @@ import org.springframework.core.MethodParameter;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.core.annotation.SynthesizingMethodParameter;
import org.springframework.core.codec.Decoder;
import org.springframework.core.codec.support.JacksonJsonDecoder;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.core.codec.support.StringDecoder;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.core.convert.support.ReactiveStreamsToCompletableFutureConverter;

2
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingIntegrationTests.java

@ -39,7 +39,7 @@ import org.springframework.context.annotation.Bean; @@ -39,7 +39,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.core.io.buffer.DataBuffer;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java

@ -27,8 +27,8 @@ import reactor.core.publisher.Mono; @@ -27,8 +27,8 @@ import reactor.core.publisher.Mono;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.ByteBufferEncoder;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.core.codec.support.Jaxb2Encoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.core.convert.support.GenericConversionService;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java

@ -31,8 +31,8 @@ import rx.Single; @@ -31,8 +31,8 @@ import rx.Single;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.ByteBufferEncoder;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.core.codec.support.Jaxb2Encoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.core.convert.support.ReactiveStreamsToCompletableFutureConverter;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java

@ -31,8 +31,8 @@ import org.springframework.context.annotation.Bean; @@ -31,8 +31,8 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.codec.Encoder;
import org.springframework.core.codec.support.ByteBufferDecoder;
import org.springframework.core.codec.support.JacksonJsonDecoder;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.http.codec.json.JacksonJsonDecoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.core.codec.support.StringDecoder;
import org.springframework.http.MediaType;
import org.springframework.http.client.reactive.ReactorHttpClientRequestFactory;

4
spring-web-reactive/src/test/java/org/springframework/web/reactive/result/view/HttpMessageConverterViewTests.java

@ -32,8 +32,8 @@ import org.junit.Test; @@ -32,8 +32,8 @@ import org.junit.Test;
import reactor.core.test.TestSubscriber;
import org.springframework.core.ResolvableType;
import org.springframework.core.codec.support.JacksonJsonEncoder;
import org.springframework.core.codec.support.Jaxb2Encoder;
import org.springframework.http.codec.json.JacksonJsonEncoder;
import org.springframework.http.codec.xml.Jaxb2Encoder;
import org.springframework.core.codec.support.StringEncoder;
import org.springframework.core.io.buffer.support.DataBufferTestUtils;
import org.springframework.http.HttpMethod;

Loading…
Cancel
Save