See gh-43316
This commit is contained in:
Johnny Lim
2024-11-28 23:17:38 +09:00
committed by Stéphane Nicoll
parent a0309a5475
commit 859c235a95
11 changed files with 22 additions and 23 deletions

View File

@@ -19,7 +19,6 @@ package org.springframework.boot.testsupport.assertj;
import java.lang.reflect.Method;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.assertj.core.api.AbstractAssert;
@@ -28,7 +27,7 @@ import org.assertj.core.api.Assert;
import org.springframework.util.ReflectionUtils;
/**
* AssertJ {@link Assert} for {@link ScheduledThreadPoolExecutor}.
* AssertJ {@link Assert} for {@link ScheduledExecutorService}.
*
* @author Mike Turbe
* @author Moritz Halbritter
@@ -82,9 +81,9 @@ public final class ScheduledExecutorServiceAssert
}
/**
* Creates a new assertion class with the given {@link ScheduledExecutorService}.
* Creates a new assertion instance with the given {@link ScheduledExecutorService}.
* @param actual the {@link ScheduledExecutorService}
* @return the assertion class
* @return the assertion instance
*/
public static ScheduledExecutorServiceAssert assertThat(ScheduledExecutorService actual) {
return new ScheduledExecutorServiceAssert(actual);

View File

@@ -73,9 +73,9 @@ public final class SimpleAsyncTaskExecutorAssert
}
/**
* Creates a new assertion class with the given {@link SimpleAsyncTaskExecutor}.
* Creates a new assertion instance with the given {@link SimpleAsyncTaskExecutor}.
* @param actual the {@link SimpleAsyncTaskExecutor}
* @return the assertion class
* @return the assertion instance
*/
public static SimpleAsyncTaskExecutorAssert assertThat(SimpleAsyncTaskExecutor actual) {
return new SimpleAsyncTaskExecutorAssert(actual);