Rename Application->HelloWebFluxApplication

This commit is contained in:
Rob Winch 2017-05-17 15:33:38 -05:00
parent 93dd10917c
commit d9c7f42b4c
3 changed files with 5 additions and 5 deletions

View File

@ -40,9 +40,9 @@ import static org.springframework.web.reactive.function.client.ExchangeFilterFun
* @since 5.0
*/
@RunWith(SpringRunner.class)
@ContextConfiguration(classes = Application.class)
@ContextConfiguration(classes = HelloWebfluxApplication.class)
@TestPropertySource(properties = "server.port=0")
public class SecurityTests {
public class HelloWebfluxApplicationITests {
@Value("#{@nettyContext.address().getPort()}")
int port;

View File

@ -31,7 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
@SuppressWarnings("unused")
@RunWith(SpringRunner.class)
@ContextConfiguration(classes = Application.class)
@ContextConfiguration(classes = HelloWebfluxApplication.class)
@TestPropertySource(properties = "server.port=0")
public class UserRepositoryTests {

View File

@ -53,7 +53,7 @@ import static org.springframework.security.config.web.server.HttpSecurity.http;
@Configuration
@EnableWebFlux
@ComponentScan
public class Application implements WebFluxConfigurer {
public class HelloWebfluxApplication implements WebFluxConfigurer {
@Value("${server.port:8080}")
private int port = 8080;
@ -61,7 +61,7 @@ public class Application implements WebFluxConfigurer {
private ReactiveAdapterRegistry adapterRegistry = new ReactiveAdapterRegistry();
public static void main(String[] args) throws Exception {
try(AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Application.class)) {
try(AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(HelloWebfluxApplication.class)) {
context.getBean(NettyContext.class).onClose().block();
}
}