commit
945ce2e6b9
|
@ -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;
|
||||
|
||||
|
@ -30,6 +33,19 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
@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 {
|
||||
|
|
Loading…
Reference in New Issue