Skip to content

Commit f92a056

Browse files
committed
Use @DefaultLocale on TypeHandlerTest.testCreateDate(Date)
1 parent c5a3be6 commit f92a056

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
<artifactId>junit-jupiter-params</artifactId>
6262
<scope>test</scope>
6363
</dependency>
64+
<dependency>
65+
<groupId>org.junit-pioneer</groupId>
66+
<artifactId>junit-pioneer</artifactId>
67+
</dependency>
6468
<dependency>
6569
<groupId>commons-io</groupId>
6670
<artifactId>commons-io</artifactId>

src/test/java/org/apache/commons/cli/TypeHandlerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
4646
import org.junit.jupiter.params.ParameterizedTest;
4747
import org.junit.jupiter.params.provider.Arguments;
4848
import org.junit.jupiter.params.provider.MethodSource;
49+
import org.junitpioneer.jupiter.DefaultLocale;
4950

5051
class TypeHandlerTest {
5152

@@ -176,6 +177,7 @@ void testCreateClass() throws ParseException {
176177

177178
@ParameterizedTest
178179
@MethodSource("createDateFixtures")
180+
@DefaultLocale(language = "en", country = "US")
179181
void testCreateDate(final Date date) {
180182
assertEquals(date, TypeHandler.createDate(date.toString()));
181183
}

0 commit comments

Comments
 (0)