Polish contribution

See gh-28549
This commit is contained in:
Sam Brannen
2022-10-07 16:35:55 +02:00
parent 2434470457
commit 72307bbb20
2 changed files with 7 additions and 7 deletions

View File

@@ -147,7 +147,7 @@ public class EnableAsyncTests {
Future<Thread> workerThread2 = asyncBean.myWork2();
assertThat(workerThread2.get().getName()).startsWith("myExecutor2-");
Future<Thread> workerThread3 = asyncBean.defaultExecutor();
Future<Thread> workerThread3 = asyncBean.fallBackToDefaultExecutor();
assertThat(workerThread3.get().getName()).startsWith("SimpleAsyncTaskExecutor");
}
finally {
@@ -386,8 +386,8 @@ public class EnableAsyncTests {
return new AsyncResult<>(Thread.currentThread());
}
@Async("${my.app.targetExecutor:}")
public Future<Thread> defaultExecutor() {
@Async("${my.app.myExecutor.UNDEFINED:}")
public Future<Thread> fallBackToDefaultExecutor() {
return new AsyncResult<>(Thread.currentThread());
}
}