Skip to content

Commit

Permalink
Merge pull request #18873 from dreis2211
Browse files Browse the repository at this point in the history
* pr/18873:
  Let Liquibase smoke test pass on non-english systems

Closes gh-18873
  • Loading branch information
snicoll committed Nov 22, 2019
2 parents c81cbb2 + 83cb6f3 commit a38e6b4
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
package sample.liquibase;

import java.net.ConnectException;
import java.util.Locale;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

Expand All @@ -31,6 +34,19 @@ public class SampleLiquibaseApplicationTests {
@Rule
public OutputCapture outputCapture = new OutputCapture();

private Locale defaultLocale;

@Before
public void init() throws SecurityException {
this.defaultLocale = Locale.getDefault();
Locale.setDefault(Locale.ENGLISH);
}

@After
public void restoreLocale() {
Locale.setDefault(this.defaultLocale);
}

@Test
public void testDefaultSettings() throws Exception {
try {
Expand Down

0 comments on commit a38e6b4

Please sign in to comment.