Skip to content

Commit

Permalink
Merge pull request #451 from yujhe/fix_locale_to_us
Browse files Browse the repository at this point in the history
fix: Set default locale to US
  • Loading branch information
HenryCaiHaiying authored Sep 1, 2018
2 parents 5d2fc90 + 6dfba97 commit ce0ddd7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.mockito.Mockito;
import org.powermock.modules.junit4.PowerMockRunner;

import java.util.Locale;
import java.util.TimeZone;

@RunWith(PowerMockRunner.class)
Expand All @@ -41,6 +42,7 @@ public class DateMessageParserTest extends TestCase {

@Override
public void setUp() throws Exception {
Locale.setDefault(Locale.US);
mConfig = Mockito.mock(SecorConfig.class);
Mockito.when(mConfig.getTimeZone()).thenReturn(TimeZone.getTimeZone("UTC"));

Expand Down

0 comments on commit ce0ddd7

Please sign in to comment.