Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
83cb6f3c
Commit
83cb6f3c
authored
Nov 05, 2019
by
dreis2211
Committed by
Stephane Nicoll
Nov 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let Liquibase smoke test pass on non-english systems
See gh-18873
parent
c81cbb2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
SampleLiquibaseApplicationTests.java
...ava/sample/liquibase/SampleLiquibaseApplicationTests.java
+16
-0
No files found.
spring-boot-samples/spring-boot-sample-liquibase/src/test/java/sample/liquibase/SampleLiquibaseApplicationTests.java
View file @
83cb6f3c
...
@@ -17,7 +17,10 @@
...
@@ -17,7 +17,10 @@
package
sample
.
liquibase
;
package
sample
.
liquibase
;
import
java.net.ConnectException
;
import
java.net.ConnectException
;
import
java.util.Locale
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Rule
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.Test
;
...
@@ -31,6 +34,19 @@ public class SampleLiquibaseApplicationTests {
...
@@ -31,6 +34,19 @@ public class SampleLiquibaseApplicationTests {
@Rule
@Rule
public
OutputCapture
outputCapture
=
new
OutputCapture
();
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
@Test
public
void
testDefaultSettings
()
throws
Exception
{
public
void
testDefaultSettings
()
throws
Exception
{
try
{
try
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment