Rename Application->HelloWebFluxApplication
This commit is contained in:
parent
93dd10917c
commit
d9c7f42b4c
|
@ -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;
|
||||
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue