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
068e22d6
Commit
068e22d6
authored
Jul 15, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-13776
parent
f325ee94
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
JndiConnectionFactoryAutoConfigurationTests.java
...gure/jms/JndiConnectionFactoryAutoConfigurationTests.java
+1
-1
UndertowWebServerFactoryCustomizerTests.java
...web/embedded/UndertowWebServerFactoryCustomizerTests.java
+3
-3
FileSystemWatcherTests.java
...ework/boot/devtools/filewatch/FileSystemWatcherTests.java
+3
-2
Slf4JLoggingSystem.java
.../org/springframework/boot/logging/Slf4JLoggingSystem.java
+5
-0
SampleWebJspApplicationTests.java
...rc/test/java/sample/jsp/SampleWebJspApplicationTests.java
+2
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/JndiConnectionFactoryAutoConfigurationTests.java
View file @
068e22d6
...
@@ -60,7 +60,7 @@ public class JndiConnectionFactoryAutoConfigurationTests {
...
@@ -60,7 +60,7 @@ public class JndiConnectionFactoryAutoConfigurationTests {
}
}
@After
@After
public
void
cl
ose
()
{
public
void
cl
eanUp
()
{
TestableInitialContextFactory
.
clearAll
();
TestableInitialContextFactory
.
clearAll
();
if
(
this
.
initialContextFactory
!=
null
)
{
if
(
this
.
initialContextFactory
!=
null
)
{
System
.
setProperty
(
Context
.
INITIAL_CONTEXT_FACTORY
,
System
.
setProperty
(
Context
.
INITIAL_CONTEXT_FACTORY
,
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/UndertowWebServerFactoryCustomizerTests.java
View file @
068e22d6
...
@@ -75,7 +75,7 @@ public class UndertowWebServerFactoryCustomizerTests {
...
@@ -75,7 +75,7 @@ public class UndertowWebServerFactoryCustomizerTests {
}
}
@Test
@Test
public
void
deduceUseForwardHeaders
Undertow
()
{
public
void
deduceUseForwardHeaders
()
{
this
.
environment
.
setProperty
(
"DYNO"
,
"-"
);
this
.
environment
.
setProperty
(
"DYNO"
,
"-"
);
ConfigurableUndertowWebServerFactory
factory
=
mock
(
ConfigurableUndertowWebServerFactory
factory
=
mock
(
ConfigurableUndertowWebServerFactory
.
class
);
ConfigurableUndertowWebServerFactory
.
class
);
...
@@ -84,7 +84,7 @@ public class UndertowWebServerFactoryCustomizerTests {
...
@@ -84,7 +84,7 @@ public class UndertowWebServerFactoryCustomizerTests {
}
}
@Test
@Test
public
void
defaultUseForwardHeaders
Undertow
()
{
public
void
defaultUseForwardHeaders
()
{
ConfigurableUndertowWebServerFactory
factory
=
mock
(
ConfigurableUndertowWebServerFactory
factory
=
mock
(
ConfigurableUndertowWebServerFactory
.
class
);
ConfigurableUndertowWebServerFactory
.
class
);
this
.
customizer
.
customize
(
factory
);
this
.
customizer
.
customize
(
factory
);
...
@@ -92,7 +92,7 @@ public class UndertowWebServerFactoryCustomizerTests {
...
@@ -92,7 +92,7 @@ public class UndertowWebServerFactoryCustomizerTests {
}
}
@Test
@Test
public
void
setUseForwardHeaders
Undertow
()
{
public
void
setUseForwardHeaders
()
{
this
.
serverProperties
.
setUseForwardHeaders
(
true
);
this
.
serverProperties
.
setUseForwardHeaders
(
true
);
ConfigurableUndertowWebServerFactory
factory
=
mock
(
ConfigurableUndertowWebServerFactory
factory
=
mock
(
ConfigurableUndertowWebServerFactory
.
class
);
ConfigurableUndertowWebServerFactory
.
class
);
...
...
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/filewatch/FileSystemWatcherTests.java
View file @
068e22d6
...
@@ -149,10 +149,11 @@ public class FileSystemWatcherTests {
...
@@ -149,10 +149,11 @@ public class FileSystemWatcherTests {
this
.
watcher
.
addSourceFolder
(
folder
);
this
.
watcher
.
addSourceFolder
(
folder
);
this
.
watcher
.
start
();
this
.
watcher
.
start
();
folder
.
mkdirs
();
folder
.
mkdirs
();
touch
(
new
File
(
folder
,
"text.txt"
));
File
file
=
touch
(
new
File
(
folder
,
"text.txt"
));
this
.
watcher
.
stopAfter
(
1
);
this
.
watcher
.
stopAfter
(
1
);
ChangedFiles
changedFiles
=
getSingleChangedFiles
();
ChangedFiles
changedFiles
=
getSingleChangedFiles
();
System
.
out
.
println
(
changedFiles
);
ChangedFile
expected
=
new
ChangedFile
(
folder
,
file
,
Type
.
ADD
);
assertThat
(
changedFiles
.
getFiles
()).
contains
(
expected
);
}
}
@Test
@Test
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/Slf4JLoggingSystem.java
View file @
068e22d6
...
@@ -75,6 +75,11 @@ public abstract class Slf4JLoggingSystem extends AbstractLoggingSystem {
...
@@ -75,6 +75,11 @@ public abstract class Slf4JLoggingSystem extends AbstractLoggingSystem {
}
}
}
}
/**
* Return whether bridging JUL into SLF4J or not.
* @return whether bridging JUL into SLF4J or not
* @since 2.0.4
*/
protected
final
boolean
isBridgeJulIntoSlf4j
()
{
protected
final
boolean
isBridgeJulIntoSlf4j
()
{
return
isBridgeHandlerAvailable
()
&&
isJulUsingItsDefaultConfiguration
();
return
isBridgeHandlerAvailable
()
&&
isJulUsingItsDefaultConfiguration
();
}
}
...
...
spring-boot-samples/spring-boot-sample-web-jsp/src/test/java/sample/jsp/SampleWebJspApplicationTests.java
View file @
068e22d6
...
@@ -63,7 +63,8 @@ public class SampleWebJspApplicationTests {
...
@@ -63,7 +63,8 @@ public class SampleWebJspApplicationTests {
URI
.
create
(
"/foo"
));
URI
.
create
(
"/foo"
));
ResponseEntity
<
String
>
entity
=
this
.
restTemplate
.
exchange
(
request
,
String
.
class
);
ResponseEntity
<
String
>
entity
=
this
.
restTemplate
.
exchange
(
request
,
String
.
class
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
INTERNAL_SERVER_ERROR
);
assertThat
(
entity
.
getStatusCode
()).
isEqualTo
(
HttpStatus
.
INTERNAL_SERVER_ERROR
);
assertThat
(
entity
.
getBody
()).
contains
(
"Something went wrong"
);
assertThat
(
entity
.
getBody
())
.
contains
(
"Something went wrong: 500 Internal Server Error"
);
}
}
}
}
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