mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 15:39:29 +00:00
Improve display names for parameterized invocations
See gh-35833
This commit is contained in:
+3
-2
@@ -31,6 +31,7 @@ import org.springframework.scheduling.TriggerContext;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException;
|
||||
import static org.junit.jupiter.api.Named.named;
|
||||
import static org.junit.jupiter.params.provider.Arguments.arguments;
|
||||
|
||||
/**
|
||||
@@ -47,8 +48,8 @@ import static org.junit.jupiter.params.provider.Arguments.arguments;
|
||||
class CronTriggerTests {
|
||||
|
||||
static List<Arguments> parameters = List.of(
|
||||
arguments(new Date(), TimeZone.getTimeZone("PST")),
|
||||
arguments(new Date(), TimeZone.getTimeZone("CET")));
|
||||
arguments(new Date(), named("PST", TimeZone.getTimeZone("PST"))),
|
||||
arguments(new Date(), named("CET", TimeZone.getTimeZone("CET"))));
|
||||
|
||||
|
||||
private final Calendar calendar = new GregorianCalendar();
|
||||
|
||||
Reference in New Issue
Block a user