Skip to content

Commit

Permalink
Merge branch '2.1.x' into 2.2.x
Browse files Browse the repository at this point in the history
Closes gh-19096
  • Loading branch information
snicoll committed Nov 22, 2019
2 parents 58bfbb9 + a38e6b4 commit 945ce2e
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 smoketest.liquibase;

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

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

Expand All @@ -30,6 +33,19 @@
@ExtendWith(OutputCaptureExtension.class)
class SampleLiquibaseApplicationTests {

private Locale defaultLocale;

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

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

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

0 comments on commit 945ce2e

Please sign in to comment.