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
1e4f8fdd
Commit
1e4f8fdd
authored
Nov 14, 2015
by
Johnny Lim
Committed by
Phillip Webb
Nov 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
6a05927e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
21 deletions
+21
-21
TestCommandIntegrationTests.java
...springframework/boot/cli/TestCommandIntegrationTests.java
+2
-2
LiveReloadServerTests.java
...ework/boot/devtools/livereload/LiveReloadServerTests.java
+2
-2
ConfigurationWarningsApplicationContextInitializerTests.java
...figurationWarningsApplicationContextInitializerTests.java
+1
-1
AbstractEmbeddedServletContainerFactoryTests.java
...mbedded/AbstractEmbeddedServletContainerFactoryTests.java
+3
-3
AbstractFilterRegistrationBeanTests.java
...context/embedded/AbstractFilterRegistrationBeanTests.java
+5
-5
FileSessionPersistenceTests.java
...ontext/embedded/undertow/FileSessionPersistenceTests.java
+1
-1
ErrorPageFilterTests.java
...pringframework/boot/context/web/ErrorPageFilterTests.java
+6
-6
AbstractJsonParserTests.java
...rg/springframework/boot/json/AbstractJsonParserTests.java
+1
-1
No files found.
spring-boot-cli/src/test/java/org/springframework/boot/cli/TestCommandIntegrationTests.java
View file @
1e4f8fdd
...
...
@@ -42,12 +42,12 @@ public class TestCommandIntegrationTests {
public
CliTester
cli
=
new
CliTester
(
"test-samples/"
);
@Before
public
void
set
u
p
()
throws
Exception
{
public
void
set
U
p
()
throws
Exception
{
System
.
setProperty
(
"disableSpringSnapshotRepos"
,
"false"
);
}
@After
public
void
tear
d
own
()
{
public
void
tear
D
own
()
{
System
.
clearProperty
(
"disableSpringSnapshotRepos"
);
}
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java
View file @
1e4f8fdd
...
...
@@ -63,13 +63,13 @@ public class LiveReloadServerTests {
private
MonitoredLiveReloadServer
server
;
@Before
public
void
set
u
p
()
throws
Exception
{
public
void
set
U
p
()
throws
Exception
{
this
.
server
=
new
MonitoredLiveReloadServer
(
this
.
port
);
this
.
server
.
start
();
}
@After
public
void
tear
d
own
()
throws
Exception
{
public
void
tear
D
own
()
throws
Exception
{
this
.
server
.
stop
();
}
...
...
spring-boot/src/test/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializerTests.java
View file @
1e4f8fdd
...
...
@@ -66,7 +66,7 @@ public class ConfigurationWarningsApplicationContextInitializerTests {
}
@Test
public
void
noLogWithoutComponetScanAnnotation
()
throws
Exception
{
public
void
noLogWithoutCompone
n
tScanAnnotation
()
throws
Exception
{
load
(
InDefaultPackageWithoutScanConfiguration
.
class
);
assertThat
(
this
.
output
.
toString
(),
not
(
containsString
(
SCAN_WARNING
)));
}
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java
View file @
1e4f8fdd
...
...
@@ -118,7 +118,7 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
private
final
HttpClientContext
httpClientContext
=
HttpClientContext
.
create
();
@After
public
void
tear
d
own
()
{
public
void
tear
D
own
()
{
if
(
this
.
container
!=
null
)
{
try
{
this
.
container
.
stop
();
...
...
@@ -866,13 +866,13 @@ public abstract class AbstractEmbeddedServletContainerFactoryTests {
private
final
AtomicBoolean
requested
=
new
AtomicBoolean
(
false
);
@Override
public
InputStream
create
(
InputStream
in
stream
)
throws
IOException
{
public
InputStream
create
(
InputStream
in
)
throws
IOException
{
if
(
this
.
requested
.
get
())
{
throw
new
IllegalStateException
(
"On deflated InputStream already requested"
);
}
this
.
requested
.
set
(
true
);
return
new
GZIPInputStream
(
in
stream
);
return
new
GZIPInputStream
(
in
);
}
public
boolean
wasCompressionUsed
()
{
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractFilterRegistrationBeanTests.java
View file @
1e4f8fdd
...
...
@@ -87,8 +87,8 @@ public abstract class AbstractFilterRegistrationBeanTests {
bean
.
setServletNames
(
new
LinkedHashSet
<
String
>(
Arrays
.
asList
(
"s1"
,
"s2"
)));
bean
.
addServletNames
(
"s3"
);
bean
.
setServletRegistrationBeans
(
Collections
.
singleton
(
mockServletRegistation
(
"s4"
)));
bean
.
addServletRegistrationBeans
(
mockServletRegistation
(
"s5"
));
Collections
.
singleton
(
mockServletRegist
r
ation
(
"s4"
)));
bean
.
addServletRegistrationBeans
(
mockServletRegist
r
ation
(
"s5"
));
bean
.
setMatchAfter
(
true
);
bean
.
onStartup
(
this
.
servletContext
);
verify
(
this
.
servletContext
).
addFilter
(
eq
(
"test"
),
getExpectedFilter
());
...
...
@@ -148,9 +148,9 @@ public abstract class AbstractFilterRegistrationBeanTests {
@Test
public
void
setServletRegistrationBeanReplacesValue
()
throws
Exception
{
AbstractFilterRegistrationBean
bean
=
createFilterRegistrationBean
(
mockServletRegistation
(
"a"
));
mockServletRegist
r
ation
(
"a"
));
bean
.
setServletRegistrationBeans
(
new
LinkedHashSet
<
ServletRegistrationBean
>(
Arrays
.
asList
(
mockServletRegistation
(
"b"
))));
Arrays
.
asList
(
mockServletRegist
r
ation
(
"b"
))));
bean
.
onStartup
(
this
.
servletContext
);
verify
(
this
.
registration
).
addMappingForServletNames
(
AbstractFilterRegistrationBean
.
ASYNC_DISPATCHER_TYPES
,
false
,
"b"
);
...
...
@@ -221,7 +221,7 @@ public abstract class AbstractFilterRegistrationBeanTests {
protected
abstract
AbstractFilterRegistrationBean
createFilterRegistrationBean
(
ServletRegistrationBean
...
servletRegistrationBeans
);
protected
final
ServletRegistrationBean
mockServletRegistation
(
String
name
)
{
protected
final
ServletRegistrationBean
mockServletRegist
r
ation
(
String
name
)
{
ServletRegistrationBean
bean
=
new
ServletRegistrationBean
();
bean
.
setName
(
name
);
return
bean
;
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistenceTests.java
View file @
1e4f8fdd
...
...
@@ -65,7 +65,7 @@ public class FileSessionPersistenceTests {
}
@Test
public
void
p
re
sistAndLoad
()
throws
Exception
{
public
void
p
er
sistAndLoad
()
throws
Exception
{
Map
<
String
,
PersistentSession
>
sessionData
=
new
LinkedHashMap
<
String
,
PersistentSession
>();
Map
<
String
,
Object
>
data
=
new
LinkedHashMap
<
String
,
Object
>();
data
.
put
(
"spring"
,
"boot"
);
...
...
spring-boot/src/test/java/org/springframework/boot/context/web/ErrorPageFilterTests.java
View file @
1e4f8fdd
...
...
@@ -334,7 +334,7 @@ public class ErrorPageFilterTests {
}
@Test
public
void
responseIsNotCommitedWhenRequestIsAsync
()
throws
Exception
{
public
void
responseIsNotCommit
t
edWhenRequestIsAsync
()
throws
Exception
{
this
.
request
.
setAsyncStarted
(
true
);
this
.
filter
.
doFilter
(
this
.
request
,
this
.
response
,
this
.
chain
);
assertThat
(
this
.
chain
.
getRequest
(),
equalTo
((
ServletRequest
)
this
.
request
));
...
...
@@ -344,7 +344,7 @@ public class ErrorPageFilterTests {
}
@Test
public
void
responseIsCommitedWhenRequestIsAsyncAndExceptionIsThrown
()
public
void
responseIsCommit
t
edWhenRequestIsAsyncAndExceptionIsThrown
()
throws
Exception
{
this
.
filter
.
addErrorPages
(
new
ErrorPage
(
"/error"
));
this
.
request
.
setAsyncStarted
(
true
);
...
...
@@ -364,7 +364,7 @@ public class ErrorPageFilterTests {
}
@Test
public
void
responseIsCommitedWhenRequestIsAsyncAndStatusIs400Plus
()
public
void
responseIsCommit
t
edWhenRequestIsAsyncAndStatusIs400Plus
()
throws
Exception
{
this
.
filter
.
addErrorPages
(
new
ErrorPage
(
"/error"
));
this
.
request
.
setAsyncStarted
(
true
);
...
...
@@ -384,7 +384,7 @@ public class ErrorPageFilterTests {
}
@Test
public
void
responseIsNotCommitedDuringAsyncDispatch
()
throws
Exception
{
public
void
responseIsNotCommit
t
edDuringAsyncDispatch
()
throws
Exception
{
setUpAsyncDispatch
();
this
.
filter
.
doFilter
(
this
.
request
,
this
.
response
,
this
.
chain
);
assertThat
(
this
.
chain
.
getRequest
(),
equalTo
((
ServletRequest
)
this
.
request
));
...
...
@@ -394,7 +394,7 @@ public class ErrorPageFilterTests {
}
@Test
public
void
responseIsCommitedWhenExceptionIsThrownDuringAsyncDispatch
()
public
void
responseIsCommit
t
edWhenExceptionIsThrownDuringAsyncDispatch
()
throws
Exception
{
this
.
filter
.
addErrorPages
(
new
ErrorPage
(
"/error"
));
setUpAsyncDispatch
();
...
...
@@ -414,7 +414,7 @@ public class ErrorPageFilterTests {
}
@Test
public
void
responseIsCommitedWhenStatusIs400PlusDuringAsyncDispatch
()
public
void
responseIsCommit
t
edWhenStatusIs400PlusDuringAsyncDispatch
()
throws
Exception
{
this
.
filter
.
addErrorPages
(
new
ErrorPage
(
"/error"
));
setUpAsyncDispatch
();
...
...
spring-boot/src/test/java/org/springframework/boot/json/AbstractJsonParserTests.java
View file @
1e4f8fdd
...
...
@@ -43,7 +43,7 @@ public abstract class AbstractJsonParserTests {
}
@Test
public
void
testDoubleVal
i
e
()
{
public
void
testDoubleVal
u
e
()
{
Map
<
String
,
Object
>
map
=
this
.
parser
.
parseMap
(
"{\"foo\":\"bar\",\"spam\":1.23}"
);
assertEquals
(
2
,
map
.
size
());
assertEquals
(
"bar"
,
map
.
get
(
"foo"
));
...
...
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