Browse Source

Move server testing infrastructure to test sources

pull/1111/head
Brian Clozel 10 years ago
parent
commit
e906a78e0f
  1. 2
      spring-web-reactive/.gitignore
  2. 12
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/AbstractHttpHandlerIntegrationTests.java
  3. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlerIntegrationTests.java
  4. 4
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ZeroCopyIntegrationTests.java
  5. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/HttpServer.java
  6. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/HttpServerSupport.java
  7. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/JettyHttpServer.java
  8. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/ReactorHttpServer.java
  9. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/RxNettyHttpServer.java
  10. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/TomcatHttpServer.java
  11. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/UndertowHttpServer.java
  12. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/package-info.java

2
spring-web-reactive/.gitignore vendored

@ -6,5 +6,5 @@ target @@ -6,5 +6,5 @@ target
/.idea/
bin
.gradle
tomcat*
/tomcat.*/
build

12
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/AbstractHttpHandlerIntegrationTests.java

@ -23,12 +23,12 @@ import org.junit.Before; @@ -23,12 +23,12 @@ import org.junit.Before;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.springframework.http.server.reactive.boot.HttpServer;
import org.springframework.http.server.reactive.boot.JettyHttpServer;
import org.springframework.http.server.reactive.boot.ReactorHttpServer;
import org.springframework.http.server.reactive.boot.RxNettyHttpServer;
import org.springframework.http.server.reactive.boot.TomcatHttpServer;
import org.springframework.http.server.reactive.boot.UndertowHttpServer;
import org.springframework.http.server.reactive.bootstrap.HttpServer;
import org.springframework.http.server.reactive.bootstrap.JettyHttpServer;
import org.springframework.http.server.reactive.bootstrap.ReactorHttpServer;
import org.springframework.http.server.reactive.bootstrap.RxNettyHttpServer;
import org.springframework.http.server.reactive.bootstrap.TomcatHttpServer;
import org.springframework.http.server.reactive.bootstrap.UndertowHttpServer;
import org.springframework.util.SocketUtils;

2
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlerIntegrationTests.java

@ -25,7 +25,7 @@ import reactor.core.publisher.Mono; @@ -25,7 +25,7 @@ import reactor.core.publisher.Mono;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.http.server.reactive.boot.ReactorHttpServer;
import org.springframework.http.server.reactive.bootstrap.ReactorHttpServer;
import org.springframework.web.client.ResponseErrorHandler;
import org.springframework.web.client.RestTemplate;

4
spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ZeroCopyIntegrationTests.java

@ -28,8 +28,8 @@ import org.springframework.http.MediaType; @@ -28,8 +28,8 @@ import org.springframework.http.MediaType;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.http.ZeroCopyHttpOutputMessage;
import org.springframework.http.server.reactive.boot.ReactorHttpServer;
import org.springframework.http.server.reactive.boot.UndertowHttpServer;
import org.springframework.http.server.reactive.bootstrap.ReactorHttpServer;
import org.springframework.http.server.reactive.bootstrap.UndertowHttpServer;
import org.springframework.web.client.RestTemplate;
import static org.junit.Assert.assertEquals;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/HttpServer.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/HttpServer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import org.springframework.beans.factory.InitializingBean;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/HttpServerSupport.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/HttpServerSupport.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import org.springframework.http.server.reactive.HttpHandler;
import org.springframework.util.SocketUtils;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/JettyHttpServer.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/JettyHttpServer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/ReactorHttpServer.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/ReactorHttpServer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import reactor.core.flow.Loopback;
import reactor.core.state.Completable;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/RxNettyHttpServer.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/RxNettyHttpServer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import java.net.InetSocketAddress;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/TomcatHttpServer.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/TomcatHttpServer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import java.io.File;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/UndertowHttpServer.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/UndertowHttpServer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
import io.undertow.Undertow;
import io.undertow.server.HttpHandler;

2
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/package-info.java → spring-web-reactive/src/test/java/org/springframework/http/server/reactive/bootstrap/package-info.java

@ -2,4 +2,4 @@ @@ -2,4 +2,4 @@
* This package contains temporary interfaces and classes for running embedded servers.
* They are expected to be replaced by an upcoming Spring Boot support.
*/
package org.springframework.http.server.reactive.boot;
package org.springframework.http.server.reactive.bootstrap;
Loading…
Cancel
Save