Skip to content

Commit 172fcbb

Browse files
committed
Fix test class name.
1 parent c862311 commit 172fcbb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/circuitbreaker/AsyncCircuitBreakerTest.java renamed to spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/circuitbreaker/AsyncCircuitBreakerTests.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
*
6666
* @author John Niang
6767
*/
68-
@SpringBootTest(classes = AsyncCircuitBreakerTest.Application.class, webEnvironment = RANDOM_PORT,
68+
@SpringBootTest(classes = AsyncCircuitBreakerTests.Application.class, webEnvironment = RANDOM_PORT,
6969
properties = "feign.circuitbreaker.enabled=true")
7070
@AutoConfigureMockMvc
71-
class AsyncCircuitBreakerTest {
71+
class AsyncCircuitBreakerTests {
7272

7373
@Autowired
7474
MockMvc mvc;
@@ -99,11 +99,9 @@ void shouldProxyHeaderWhenHeaderSet() throws Exception {
9999
@Test
100100
void shouldProxyHeaderWhenHeaderSetAndCleanRequestAttributesAfterReturn() throws Exception {
101101
shouldNotProxyAnyHeadersWithoutHeaderSet();
102-
Future<ServletRequestAttributes> future = asyncCircuitBreakerExecutor.submit(() -> (ServletRequestAttributes)
103-
RequestContextHolder.getRequestAttributes());
104-
assertThat(future.get())
105-
.as("the RequestAttributes has been cleared")
106-
.isNull();
102+
Future<ServletRequestAttributes> future = asyncCircuitBreakerExecutor
103+
.submit(() -> (ServletRequestAttributes) RequestContextHolder.getRequestAttributes());
104+
assertThat(future.get()).as("the RequestAttributes has been cleared").isNull();
107105
}
108106

109107
@EnableAutoConfiguration
@@ -119,7 +117,7 @@ ExecutorService asyncCircuitBreakerExecutor() {
119117

120118
@Bean
121119
CircuitBreakerFactory<Duration, ConfigBuilder<Duration>> circuitBreakerFactory(
122-
@Qualifier("asyncWorker") ExecutorService asyncCircuitBreakerExecutor) {
120+
@Qualifier("asyncWorker") ExecutorService asyncCircuitBreakerExecutor) {
123121
return new CircuitBreakerFactory<Duration, ConfigBuilder<Duration>>() {
124122

125123
Function<String, Duration> defaultConfiguration = id -> Duration.ofMillis(1000);

0 commit comments

Comments
 (0)