Upgrade to JUnit 5.8
Closes gh-27392
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -77,7 +77,9 @@ public class ClientHttpConnectorTests {
|
||||
server.shutdown();
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
// Do not auto-close arguments since HttpComponentsClientHttpConnector implements
|
||||
// AutoCloseable and is shared between parameterized test invocations.
|
||||
@ParameterizedTest(autoCloseArguments = false)
|
||||
@MethodSource("org.springframework.http.client.reactive.ClientHttpConnectorTests#methodsWithConnectors")
|
||||
void basic(ClientHttpConnector connector, HttpMethod method) throws Exception {
|
||||
URI uri = this.server.url("/").uri();
|
||||
@@ -198,10 +200,11 @@ public class ClientHttpConnectorTests {
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.METHOD)
|
||||
@ParameterizedTest
|
||||
// Do not auto-close arguments since HttpComponentsClientHttpConnector implements
|
||||
// AutoCloseable and is shared between parameterized test invocations.
|
||||
@ParameterizedTest(autoCloseArguments = false)
|
||||
@MethodSource("org.springframework.http.client.reactive.ClientHttpConnectorTests#connectors")
|
||||
public @interface ParameterizedConnectorTest {
|
||||
|
||||
}
|
||||
|
||||
static List<ClientHttpConnector> connectors() {
|
||||
|
||||
Reference in New Issue
Block a user