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
efff4a00
Commit
efff4a00
authored
Nov 19, 2015
by
Johnny Lim
Committed by
Stephane Nicoll
Nov 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-4554
parent
30791599
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
34 additions
and
34 deletions
+34
-34
PropertyPlaceholderAutoConfigurationTests.java
...oconfigure/PropertyPlaceholderAutoConfigurationTests.java
+1
-1
ServerPropertiesAutoConfigurationTests.java
...configure/web/ServerPropertiesAutoConfigurationTests.java
+2
-2
WebSocketMessagingAutoConfigurationTests.java
...e/websocket/WebSocketMessagingAutoConfigurationTests.java
+1
-1
InitCommand.java
...rg/springframework/boot/cli/command/init/InitCommand.java
+1
-1
ServiceCapabilitiesReportGenerator.java
.../cli/command/init/ServiceCapabilitiesReportGenerator.java
+1
-1
AnsiString.java
...rg/springframework/boot/cli/command/shell/AnsiString.java
+1
-1
CommandCompleter.java
...ingframework/boot/cli/command/shell/CommandCompleter.java
+2
-2
Shell.java
...ava/org/springframework/boot/cli/command/shell/Shell.java
+1
-1
DependencyCustomizer.java
...ringframework/boot/cli/compiler/DependencyCustomizer.java
+4
-4
SpringTestCompilerAutoConfiguration.java
...er/autoconfigure/SpringTestCompilerAutoConfiguration.java
+3
-3
GroovyTemplate.java
.../java/org/springframework/boot/groovy/GroovyTemplate.java
+1
-1
RemoteDevToolsAutoConfiguration.java
...vtools/autoconfigure/RemoteDevToolsAutoConfiguration.java
+4
-4
FileSystemWatcher.java
...gframework/boot/devtools/filewatch/FileSystemWatcher.java
+1
-1
Connection.java
.../springframework/boot/devtools/livereload/Connection.java
+1
-1
UrlHandlerMapper.java
...amework/boot/devtools/remote/server/UrlHandlerMapper.java
+3
-3
HttpTunnelConnection.java
...ork/boot/devtools/tunnel/client/HttpTunnelConnection.java
+2
-2
LocalDevToolsAutoConfigurationTests.java
...ls/autoconfigure/LocalDevToolsAutoConfigurationTests.java
+2
-2
RemoteDevToolsAutoConfigurationTests.java
...s/autoconfigure/RemoteDevToolsAutoConfigurationTests.java
+2
-2
HttpTunnelServerTests.java
...rk/boot/devtools/tunnel/server/HttpTunnelServerTests.java
+1
-1
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/PropertyPlaceholderAutoConfigurationTests.java
View file @
efff4a00
...
@@ -46,7 +46,7 @@ public class PropertyPlaceholderAutoConfigurationTests {
...
@@ -46,7 +46,7 @@ public class PropertyPlaceholderAutoConfigurationTests {
}
}
@Test
@Test
public
void
propertyPlaceholders
e
()
throws
Exception
{
public
void
propertyPlaceholders
()
throws
Exception
{
this
.
context
.
register
(
PropertyPlaceholderAutoConfiguration
.
class
,
this
.
context
.
register
(
PropertyPlaceholderAutoConfiguration
.
class
,
PlaceholderConfig
.
class
);
PlaceholderConfig
.
class
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"foo:two"
);
EnvironmentTestUtils
.
addEnvironment
(
this
.
context
,
"foo:two"
);
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfigurationTests.java
View file @
efff4a00
...
@@ -147,7 +147,7 @@ public class ServerPropertiesAutoConfigurationTests {
...
@@ -147,7 +147,7 @@ public class ServerPropertiesAutoConfigurationTests {
@Test
@Test
public
void
testAccidentalMultipleServerPropertiesBeans
()
throws
Exception
{
public
void
testAccidentalMultipleServerPropertiesBeans
()
throws
Exception
{
this
.
context
=
new
AnnotationConfigEmbeddedWebApplicationContext
();
this
.
context
=
new
AnnotationConfigEmbeddedWebApplicationContext
();
this
.
context
.
register
(
Config
.
class
,
MutiServerPropertiesBeanConfig
.
class
,
this
.
context
.
register
(
Config
.
class
,
Mu
l
tiServerPropertiesBeanConfig
.
class
,
ServerPropertiesAutoConfiguration
.
class
,
ServerPropertiesAutoConfiguration
.
class
,
PropertyPlaceholderAutoConfiguration
.
class
);
PropertyPlaceholderAutoConfiguration
.
class
);
this
.
thrown
.
expect
(
ApplicationContextException
.
class
);
this
.
thrown
.
expect
(
ApplicationContextException
.
class
);
...
@@ -222,7 +222,7 @@ public class ServerPropertiesAutoConfigurationTests {
...
@@ -222,7 +222,7 @@ public class ServerPropertiesAutoConfigurationTests {
}
}
@Configuration
@Configuration
protected
static
class
MutiServerPropertiesBeanConfig
{
protected
static
class
Mu
l
tiServerPropertiesBeanConfig
{
@Bean
@Bean
public
ServerProperties
serverPropertiesOne
()
{
public
ServerProperties
serverPropertiesOne
()
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/websocket/WebSocketMessagingAutoConfigurationTests.java
View file @
efff4a00
...
@@ -192,7 +192,7 @@ public class WebSocketMessagingAutoConfigurationTests {
...
@@ -192,7 +192,7 @@ public class WebSocketMessagingAutoConfigurationTests {
}
}
@Bean
@Bean
public
TomcatWebSocketContainerCustomizer
tomcatCu
ztomis
er
()
{
public
TomcatWebSocketContainerCustomizer
tomcatCu
stomiz
er
()
{
return
new
TomcatWebSocketContainerCustomizer
();
return
new
TomcatWebSocketContainerCustomizer
();
}
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java
View file @
efff4a00
...
@@ -48,7 +48,7 @@ public class InitCommand extends OptionParsingCommand {
...
@@ -48,7 +48,7 @@ public class InitCommand extends OptionParsingCommand {
public
InitCommand
(
InitOptionHandler
handler
)
{
public
InitCommand
(
InitOptionHandler
handler
)
{
super
(
"init"
,
super
(
"init"
,
"Initialize a new project using Spring "
+
"Initialzr (start.spring.io)"
,
"Initialize a new project using Spring "
+
"Initial
i
zr (start.spring.io)"
,
handler
);
handler
);
}
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ServiceCapabilitiesReportGenerator.java
View file @
efff4a00
...
@@ -38,7 +38,7 @@ class ServiceCapabilitiesReportGenerator {
...
@@ -38,7 +38,7 @@ class ServiceCapabilitiesReportGenerator {
/**
/**
* Creates an instance using the specified {@link InitializrService}.
* Creates an instance using the specified {@link InitializrService}.
* @param initializrService the initialzr service
* @param initializrService the initial
i
zr service
*/
*/
ServiceCapabilitiesReportGenerator
(
InitializrService
initializrService
)
{
ServiceCapabilitiesReportGenerator
(
InitializrService
initializrService
)
{
this
.
initializrService
=
initializrService
;
this
.
initializrService
=
initializrService
;
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java
View file @
efff4a00
...
@@ -21,7 +21,7 @@ import org.fusesource.jansi.Ansi;
...
@@ -21,7 +21,7 @@ import org.fusesource.jansi.Ansi;
import
org.fusesource.jansi.AnsiRenderer.Code
;
import
org.fusesource.jansi.AnsiRenderer.Code
;
/**
/**
* Simple uti
tli
y class to build an ANSI string when supported by the {@link Terminal}.
* Simple uti
lit
y class to build an ANSI string when supported by the {@link Terminal}.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/CommandCompleter.java
View file @
efff4a00
...
@@ -59,10 +59,10 @@ public class CommandCompleter extends StringsCompleter {
...
@@ -59,10 +59,10 @@ public class CommandCompleter extends StringsCompleter {
for
(
OptionHelp
optionHelp
:
command
.
getOptionsHelp
())
{
for
(
OptionHelp
optionHelp
:
command
.
getOptionsHelp
())
{
options
.
addAll
(
optionHelp
.
getOptions
());
options
.
addAll
(
optionHelp
.
getOptions
());
}
}
AggregateCompleter
argu
e
mentCompleters
=
new
AggregateCompleter
(
AggregateCompleter
argumentCompleters
=
new
AggregateCompleter
(
new
StringsCompleter
(
options
),
new
FileNameCompleter
());
new
StringsCompleter
(
options
),
new
FileNameCompleter
());
ArgumentCompleter
argumentCompleter
=
new
ArgumentCompleter
(
argumentDelimiter
,
ArgumentCompleter
argumentCompleter
=
new
ArgumentCompleter
(
argumentDelimiter
,
argu
e
mentCompleters
);
argumentCompleters
);
argumentCompleter
.
setStrict
(
false
);
argumentCompleter
.
setStrict
(
false
);
this
.
commandCompleters
.
put
(
command
.
getName
(),
argumentCompleter
);
this
.
commandCompleters
.
put
(
command
.
getName
(),
argumentCompleter
);
}
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/Shell.java
View file @
efff4a00
...
@@ -175,7 +175,7 @@ public class Shell {
...
@@ -175,7 +175,7 @@ public class Shell {
}
}
/**
/**
* Final handle an interrup signal (CTRL-C).
* Final handle an interrup
t
signal (CTRL-C).
*/
*/
protected
void
handleSigInt
()
{
protected
void
handleSigInt
()
{
if
(
this
.
commandRunner
.
handleSigInt
())
{
if
(
this
.
commandRunner
.
handleSigInt
())
{
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java
View file @
efff4a00
...
@@ -92,9 +92,9 @@ public class DependencyCustomizer {
...
@@ -92,9 +92,9 @@ public class DependencyCustomizer {
return
new
DependencyCustomizer
(
this
)
{
return
new
DependencyCustomizer
(
this
)
{
@Override
@Override
protected
boolean
canAdd
()
{
protected
boolean
canAdd
()
{
for
(
String
class
n
ame
:
classNames
)
{
for
(
String
class
N
ame
:
classNames
)
{
try
{
try
{
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
n
ame
);
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
N
ame
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
return
true
;
return
true
;
...
@@ -115,9 +115,9 @@ public class DependencyCustomizer {
...
@@ -115,9 +115,9 @@ public class DependencyCustomizer {
return
new
DependencyCustomizer
(
this
)
{
return
new
DependencyCustomizer
(
this
)
{
@Override
@Override
protected
boolean
canAdd
()
{
protected
boolean
canAdd
()
{
for
(
String
class
n
ame
:
classNames
)
{
for
(
String
class
N
ame
:
classNames
)
{
try
{
try
{
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
n
ame
);
DependencyCustomizer
.
this
.
loader
.
loadClass
(
class
N
ame
);
return
false
;
return
false
;
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringTestCompilerAutoConfiguration.java
View file @
efff4a00
...
@@ -56,10 +56,10 @@ public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfigurati
...
@@ -56,10 +56,10 @@ public class SpringTestCompilerAutoConfiguration extends CompilerAutoConfigurati
GeneratorContext
generatorContext
,
SourceUnit
source
,
ClassNode
classNode
)
GeneratorContext
generatorContext
,
SourceUnit
source
,
ClassNode
classNode
)
throws
CompilationFailedException
{
throws
CompilationFailedException
{
if
(!
AstUtils
.
hasAtLeastOneAnnotation
(
classNode
,
"RunWith"
))
{
if
(!
AstUtils
.
hasAtLeastOneAnnotation
(
classNode
,
"RunWith"
))
{
AnnotationNode
run
w
ith
=
new
AnnotationNode
(
ClassHelper
.
make
(
"RunWith"
));
AnnotationNode
run
W
ith
=
new
AnnotationNode
(
ClassHelper
.
make
(
"RunWith"
));
run
w
ith
.
addMember
(
"value"
,
run
W
ith
.
addMember
(
"value"
,
new
ClassExpression
(
ClassHelper
.
make
(
"SpringJUnit4ClassRunner"
)));
new
ClassExpression
(
ClassHelper
.
make
(
"SpringJUnit4ClassRunner"
)));
classNode
.
addAnnotation
(
run
w
ith
);
classNode
.
addAnnotation
(
run
W
ith
);
}
}
}
}
...
...
spring-boot-cli/src/main/java/org/springframework/boot/groovy/GroovyTemplate.java
View file @
efff4a00
...
@@ -30,7 +30,7 @@ import groovy.text.TemplateEngine;
...
@@ -30,7 +30,7 @@ import groovy.text.TemplateEngine;
import
org.codehaus.groovy.control.CompilationFailedException
;
import
org.codehaus.groovy.control.CompilationFailedException
;
/**
/**
* Helpful utilties for working with Groovy {@link Template}s.
* Helpful util
i
ties for working with Groovy {@link Template}s.
*
*
* @author Dave Syer
* @author Dave Syer
*/
*/
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/RemoteDevToolsAutoConfiguration.java
View file @
efff4a00
...
@@ -130,8 +130,8 @@ public class RemoteDevToolsAutoConfiguration {
...
@@ -130,8 +130,8 @@ public class RemoteDevToolsAutoConfiguration {
}
}
@Bean
@Bean
@ConditionalOnMissingBean
(
name
=
"remoteRestartHanderMapper"
)
@ConditionalOnMissingBean
(
name
=
"remoteRestartHand
l
erMapper"
)
public
UrlHandlerMapper
remoteRestartHanderMapper
(
HttpRestartServer
server
)
{
public
UrlHandlerMapper
remoteRestartHand
l
erMapper
(
HttpRestartServer
server
)
{
String
url
=
(
this
.
serverProperties
.
getContextPath
()
==
null
?
""
String
url
=
(
this
.
serverProperties
.
getContextPath
()
==
null
?
""
:
this
.
serverProperties
.
getContextPath
())
:
this
.
serverProperties
.
getContextPath
())
+
this
.
properties
.
getRemote
().
getContextPath
()
+
"/restart"
;
+
this
.
properties
.
getRemote
().
getContextPath
()
+
"/restart"
;
...
@@ -155,8 +155,8 @@ public class RemoteDevToolsAutoConfiguration {
...
@@ -155,8 +155,8 @@ public class RemoteDevToolsAutoConfiguration {
private
ServerProperties
serverProperties
;
private
ServerProperties
serverProperties
;
@Bean
@Bean
@ConditionalOnMissingBean
(
name
=
"remoteDebugHanderMapper"
)
@ConditionalOnMissingBean
(
name
=
"remoteDebugHand
l
erMapper"
)
public
UrlHandlerMapper
remoteDebugHanderMapper
(
public
UrlHandlerMapper
remoteDebugHand
l
erMapper
(
@Qualifier
(
"remoteDebugHttpTunnelServer"
)
HttpTunnelServer
server
)
{
@Qualifier
(
"remoteDebugHttpTunnelServer"
)
HttpTunnelServer
server
)
{
String
url
=
(
this
.
serverProperties
.
getContextPath
()
==
null
?
""
String
url
=
(
this
.
serverProperties
.
getContextPath
()
==
null
?
""
:
this
.
serverProperties
.
getContextPath
())
:
this
.
serverProperties
.
getContextPath
())
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java
View file @
efff4a00
...
@@ -240,7 +240,7 @@ public class FileSystemWatcher {
...
@@ -240,7 +240,7 @@ public class FileSystemWatcher {
/**
/**
* Stop monitoring the source folders.
* Stop monitoring the source folders.
* @param remainingScans the number of
scans remaming
* @param remainingScans the number of
remaining scans
*/
*/
synchronized
void
stopAfter
(
int
remainingScans
)
{
synchronized
void
stopAfter
(
int
remainingScans
)
{
Thread
thread
=
this
.
watchThread
;
Thread
thread
=
this
.
watchThread
;
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java
View file @
efff4a00
...
@@ -113,7 +113,7 @@ class Connection {
...
@@ -113,7 +113,7 @@ class Connection {
throw
new
ConnectionClosedException
();
throw
new
ConnectionClosedException
();
}
}
else
if
(
frame
.
getType
()
==
Frame
.
Type
.
TEXT
)
{
else
if
(
frame
.
getType
()
==
Frame
.
Type
.
TEXT
)
{
logger
.
debug
(
"Rec
ie
ved LiveReload text frame "
+
frame
);
logger
.
debug
(
"Rec
ei
ved LiveReload text frame "
+
frame
);
}
}
else
{
else
{
throw
new
IOException
(
"Unexpected Frame Type "
+
frame
.
getType
());
throw
new
IOException
(
"Unexpected Frame Type "
+
frame
.
getType
());
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapper.java
View file @
efff4a00
...
@@ -30,7 +30,7 @@ public class UrlHandlerMapper implements HandlerMapper {
...
@@ -30,7 +30,7 @@ public class UrlHandlerMapper implements HandlerMapper {
private
final
String
requestUri
;
private
final
String
requestUri
;
private
final
Handler
hander
;
private
final
Handler
hand
l
er
;
/**
/**
* Create a new {@link UrlHandlerMapper}.
* Create a new {@link UrlHandlerMapper}.
...
@@ -41,13 +41,13 @@ public class UrlHandlerMapper implements HandlerMapper {
...
@@ -41,13 +41,13 @@ public class UrlHandlerMapper implements HandlerMapper {
Assert
.
hasLength
(
url
,
"URL must not be empty"
);
Assert
.
hasLength
(
url
,
"URL must not be empty"
);
Assert
.
isTrue
(
url
.
startsWith
(
"/"
),
"URL must start with '/'"
);
Assert
.
isTrue
(
url
.
startsWith
(
"/"
),
"URL must start with '/'"
);
this
.
requestUri
=
url
;
this
.
requestUri
=
url
;
this
.
hander
=
handler
;
this
.
hand
l
er
=
handler
;
}
}
@Override
@Override
public
Handler
getHandler
(
ServerHttpRequest
request
)
{
public
Handler
getHandler
(
ServerHttpRequest
request
)
{
if
(
this
.
requestUri
.
equals
(
request
.
getURI
().
getPath
()))
{
if
(
this
.
requestUri
.
equals
(
request
.
getURI
().
getPath
()))
{
return
this
.
hander
;
return
this
.
hand
l
er
;
}
}
return
null
;
return
null
;
}
}
...
...
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/HttpTunnelConnection.java
View file @
efff4a00
...
@@ -158,11 +158,11 @@ public class HttpTunnelConnection implements TunnelConnection {
...
@@ -158,11 +158,11 @@ public class HttpTunnelConnection implements TunnelConnection {
}
}
catch
(
IOException
ex
)
{
catch
(
IOException
ex
)
{
logger
.
trace
(
"Unexpected connection error"
,
ex
);
logger
.
trace
(
"Unexpected connection error"
,
ex
);
closeQui
te
ly
();
closeQui
et
ly
();
}
}
}
}
private
void
closeQui
te
ly
()
{
private
void
closeQui
et
ly
()
{
try
{
try
{
close
();
close
();
}
}
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java
View file @
efff4a00
...
@@ -92,7 +92,7 @@ public class LocalDevToolsAutoConfigurationTests {
...
@@ -92,7 +92,7 @@ public class LocalDevToolsAutoConfigurationTests {
}
}
@Test
@Test
public
void
defaultPropertyCanBeOverridenFromCommandLine
()
throws
Exception
{
public
void
defaultPropertyCanBeOverrid
d
enFromCommandLine
()
throws
Exception
{
this
.
context
=
initializeAndRun
(
Config
.
class
,
"--spring.thymeleaf.cache=true"
);
this
.
context
=
initializeAndRun
(
Config
.
class
,
"--spring.thymeleaf.cache=true"
);
TemplateResolver
resolver
=
this
.
context
.
getBean
(
TemplateResolver
.
class
);
TemplateResolver
resolver
=
this
.
context
.
getBean
(
TemplateResolver
.
class
);
resolver
.
initialize
();
resolver
.
initialize
();
...
@@ -100,7 +100,7 @@ public class LocalDevToolsAutoConfigurationTests {
...
@@ -100,7 +100,7 @@ public class LocalDevToolsAutoConfigurationTests {
}
}
@Test
@Test
public
void
defaultPropertyCanBeOverridenFromUserHomeProperties
()
throws
Exception
{
public
void
defaultPropertyCanBeOverrid
d
enFromUserHomeProperties
()
throws
Exception
{
String
userHome
=
System
.
getProperty
(
"user.home"
);
String
userHome
=
System
.
getProperty
(
"user.home"
);
System
.
setProperty
(
"user.home"
,
System
.
setProperty
(
"user.home"
,
new
File
(
"src/test/resources/user-home"
).
getAbsolutePath
());
new
File
(
"src/test/resources/user-home"
).
getAbsolutePath
());
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/RemoteDevToolsAutoConfigurationTests.java
View file @
efff4a00
...
@@ -153,7 +153,7 @@ public class RemoteDevToolsAutoConfigurationTests {
...
@@ -153,7 +153,7 @@ public class RemoteDevToolsAutoConfigurationTests {
loadContext
(
"spring.devtools.remote.secret:supersecret"
,
loadContext
(
"spring.devtools.remote.secret:supersecret"
,
"spring.devtools.remote.restart.enabled:false"
);
"spring.devtools.remote.restart.enabled:false"
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
this
.
context
.
getBean
(
"remoteRestartHanderMapper"
);
this
.
context
.
getBean
(
"remoteRestartHand
l
erMapper"
);
}
}
@Test
@Test
...
@@ -193,7 +193,7 @@ public class RemoteDevToolsAutoConfigurationTests {
...
@@ -193,7 +193,7 @@ public class RemoteDevToolsAutoConfigurationTests {
loadContext
(
"spring.devtools.remote.secret:supersecret"
,
loadContext
(
"spring.devtools.remote.secret:supersecret"
,
"spring.devtools.remote.debug.enabled:false"
);
"spring.devtools.remote.debug.enabled:false"
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
this
.
thrown
.
expect
(
NoSuchBeanDefinitionException
.
class
);
this
.
context
.
getBean
(
"remoteDebugHanderMapper"
);
this
.
context
.
getBean
(
"remoteDebugHand
l
erMapper"
);
}
}
@Test
@Test
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServerTests.java
View file @
efff4a00
...
@@ -223,7 +223,7 @@ public class HttpTunnelServerTests {
...
@@ -223,7 +223,7 @@ public class HttpTunnelServerTests {
}
}
@Test
@Test
public
void
requestRec
ie
vedOutOfOrder
()
throws
Exception
{
public
void
requestRec
ei
vedOutOfOrder
()
throws
Exception
{
MockHttpConnection
h1
=
new
MockHttpConnection
();
MockHttpConnection
h1
=
new
MockHttpConnection
();
MockHttpConnection
h2
=
new
MockHttpConnection
(
"1+2"
,
1
);
MockHttpConnection
h2
=
new
MockHttpConnection
(
"1+2"
,
1
);
MockHttpConnection
h3
=
new
MockHttpConnection
(
"+3"
,
2
);
MockHttpConnection
h3
=
new
MockHttpConnection
(
"+3"
,
2
);
...
...
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