File tree Expand file tree Collapse file tree
src/test/java/org/jenkinsci/plugins/parameterizedscheduler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212import java .util .Collections ;
1313import java .util .GregorianCalendar ;
1414import java .util .List ;
15+ import java .util .Locale ;
1516import java .util .Map ;
1617
1718import antlr .ANTLRException ;
19+ import org .junit .AfterClass ;
20+ import org .junit .BeforeClass ;
1821import org .junit .Test ;
1922import org .junit .runner .RunWith ;
2023import org .mockito .Mock ;
2326
2427@ RunWith (MockitoJUnitRunner .class )
2528public class ParameterizedCronTabListTest {
29+ private static final Locale defaultLocale = Locale .getDefault ();
2630 @ Mock
2731 private ParameterizedCronTab mockParameterizedCronTab ;
2832 @ Mock
2933 private ParameterizedCronTab mockParameterizedCronTabToo ;
3034
35+ @ BeforeClass
36+ public static void initLocale () {
37+ Locale .setDefault (Locale .ENGLISH );
38+ }
39+
40+ @ AfterClass
41+ public static void resetLocale () {
42+ Locale .setDefault (defaultLocale );
43+ }
44+
3145 @ Test
3246 public void create () throws Exception {
3347 ParameterizedCronTabList testObject = ParameterizedCronTabList .create ("* * * * *%foo=bar" );
You can’t perform that action at this time.
0 commit comments