[JAVA-27762] Upgrade spring-reactive-3 to boot-3 (#16214)
This commit is contained in:
parent
8d8acb9117
commit
0facf5ca65
@ -10,9 +10,10 @@
|
|||||||
<description>spring sample project about new features</description>
|
<description>spring sample project about new features</description>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung.spring.reactive</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
<artifactId>spring-reactive-modules</artifactId>
|
<artifactId>parent-boot-3</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<relativePath>../../parent-boot-3</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -74,6 +75,11 @@
|
|||||||
<artifactId>kotlin-stdlib</artifactId>
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
<version>${kotlin-stdlib.version}</version>
|
<version>${kotlin-stdlib.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>commons-io</groupId>
|
||||||
|
<artifactId>commons-io</artifactId>
|
||||||
|
<version>${commons-io.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
@ -93,6 +99,7 @@
|
|||||||
<spring-cloud.version>2021.0.4</spring-cloud.version>
|
<spring-cloud.version>2021.0.4</spring-cloud.version>
|
||||||
<mockwebserver.version>5.0.0-alpha.12</mockwebserver.version>
|
<mockwebserver.version>5.0.0-alpha.12</mockwebserver.version>
|
||||||
<kotlin-stdlib.version>2.0.0-Beta4</kotlin-stdlib.version>
|
<kotlin-stdlib.version>2.0.0-Beta4</kotlin-stdlib.version>
|
||||||
|
<start-class>com.baeldung.custom.deserialization.Application</start-class>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
@ -3,8 +3,8 @@ package com.baeldung.websocket;
|
|||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import javax.websocket.*;
|
import jakarta.websocket.*;
|
||||||
import javax.websocket.server.ServerEndpoint;
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@ServerEndpoint("/event-emitter")
|
@ServerEndpoint("/event-emitter")
|
||||||
|
@ -1,11 +1,15 @@
|
|||||||
package com.baeldung.databuffer;
|
package com.baeldung.databuffer;
|
||||||
|
|
||||||
import com.baeldung.databuffer.DataBufferToInputStream;
|
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
||||||
|
|
||||||
import io.restassured.internal.util.IOUtils;
|
import java.io.BufferedReader;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.io.InputStreamReader;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.mockito.Mockito;
|
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.springframework.web.reactive.function.client.ClientResponse;
|
import org.springframework.web.reactive.function.client.ClientResponse;
|
||||||
import org.springframework.web.reactive.function.client.ExchangeFunction;
|
import org.springframework.web.reactive.function.client.ExchangeFunction;
|
||||||
@ -13,17 +17,6 @@ import org.springframework.web.reactive.function.client.WebClient;
|
|||||||
|
|
||||||
import reactor.core.publisher.Mono;
|
import reactor.core.publisher.Mono;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.net.URI;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
|
||||||
import static org.mockito.Mockito.mock;
|
|
||||||
import static org.mockito.Mockito.when;
|
|
||||||
|
|
||||||
class DataBufferToInputStreamUnitTest {
|
class DataBufferToInputStreamUnitTest {
|
||||||
private String getResponseStub() throws IOException {
|
private String getResponseStub() throws IOException {
|
||||||
InputStream inputStream = null;
|
InputStream inputStream = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user