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
64f32893
Commit
64f32893
authored
Nov 16, 2013
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Source format and clean-up
parent
883fd916
Changes
46
Hide whitespace changes
Inline
Side-by-side
Showing
46 changed files
with
133 additions
and
99 deletions
+133
-99
ErrorMvcAutoConfiguration.java
...boot/actuate/autoconfigure/ErrorMvcAutoConfiguration.java
+6
-2
SimpleHealthIndicator.java
...gframework/boot/actuate/health/SimpleHealthIndicator.java
+1
-0
OnWebApplicationCondition.java
...ot/autoconfigure/condition/OnWebApplicationCondition.java
+2
-1
DataSourceAutoConfiguration.java
.../boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java
+4
-2
AutoConfigurationReportLoggingInitializerTests.java
...igure/AutoConfigurationReportLoggingInitializerTests.java
+1
-1
JpaRepositoriesAutoConfigurationTests.java
...configure/data/JpaRepositoriesAutoConfigurationTests.java
+3
-2
JmsTemplateAutoConfigurationTests.java
.../autoconfigure/jms/JmsTemplateAutoConfigurationTests.java
+19
-8
DeviceResolverAutoConfigurationTests.java
...onfigure/mobile/DeviceResolverAutoConfigurationTests.java
+1
-1
OptionHandler.java
...a/org/springframework/boot/cli/command/OptionHandler.java
+1
-0
SampleActuatorUiApplicationPortTests.java
...t/sample/ops/ui/SampleActuatorUiApplicationPortTests.java
+2
-2
SampleActuatorUiApplicationTests.java
.../boot/sample/ops/ui/SampleActuatorUiApplicationTests.java
+5
-3
EndpointsPropertiesSampleActuatorApplicationTests.java
...ps/EndpointsPropertiesSampleActuatorApplicationTests.java
+1
-2
ManagementAddressSampleActuatorApplicationTests.java
.../ops/ManagementAddressSampleActuatorApplicationTests.java
+2
-2
ManagementSampleActuatorApplicationTests.java
.../sample/ops/ManagementSampleActuatorApplicationTests.java
+2
-2
NoManagementSampleActuatorApplicationTests.java
...ample/ops/NoManagementSampleActuatorApplicationTests.java
+2
-2
SampleActuatorApplicationTests.java
...ework/boot/sample/ops/SampleActuatorApplicationTests.java
+3
-4
ShutdownSampleActuatorApplicationTests.java
...ot/sample/ops/ShutdownSampleActuatorApplicationTests.java
+1
-1
UnsecureManagementSampleActuatorApplicationTests.java
...ops/UnsecureManagementSampleActuatorApplicationTests.java
+6
-5
UnsecureSampleActuatorApplicationTests.java
...ot/sample/ops/UnsecureSampleActuatorApplicationTests.java
+3
-3
SampleController.java
...gframework/boot/sample/data/jpa/web/SampleController.java
+1
-1
SampleDataJpaApplicationTests.java
...k/boot/sample/data/jpa/SampleDataJpaApplicationTests.java
+3
-2
CityRepositoryIntegrationTests.java
...mple/data/jpa/service/CityRepositoryIntegrationTests.java
+1
-1
HotelRepositoryIntegrationTests.java
...ple/data/jpa/service/HotelRepositoryIntegrationTests.java
+1
-1
Customer.java
.../org/springframework/boot/sample/data/mongo/Customer.java
+15
-16
CustomerRepository.java
...gframework/boot/sample/data/mongo/CustomerRepository.java
+2
-2
SampleMongoApplicationTests.java
...k/boot/sample/data/mongo/SampleMongoApplicationTests.java
+5
-3
SampleIntegrationApplicationTests.java
...tegration/consumer/SampleIntegrationApplicationTests.java
+1
-2
SampleJettyApplicationTests.java
...mework/boot/sample/jetty/SampleJettyApplicationTests.java
+1
-1
SpringTestSampleSimpleApplicationTests.java
...sample/simple/SpringTestSampleSimpleApplicationTests.java
+1
-1
NonAutoConfigurationSampleTomcatApplicationTests.java
...cat/NonAutoConfigurationSampleTomcatApplicationTests.java
+1
-1
SampleTomcatApplicationTests.java
...work/boot/sample/tomcat/SampleTomcatApplicationTests.java
+1
-1
SampleTraditionalApplicationTests.java
...sample/traditional/SampleTraditionalApplicationTests.java
+1
-1
SampleWebJspApplicationTests.java
...amework/boot/sample/jsp/SampleWebJspApplicationTests.java
+4
-4
SampleWebStaticApplicationTests.java
...ework/boot/sample/ui/SampleWebStaticApplicationTests.java
+2
-2
SampleWebUiApplicationTests.java
...framework/boot/sample/ui/SampleWebUiApplicationTests.java
+2
-2
SampleWebSocketsApplication.java
...samples/websocket/config/SampleWebSocketsApplication.java
+2
-2
SpringBootPlugin.java
...ovy/org/springframework/boot/gradle/SpringBootPlugin.java
+7
-5
ProjectLibraries.java
...rg/springframework/boot/gradle/task/ProjectLibraries.java
+3
-0
Repackage.java
...roovy/org/springframework/boot/gradle/task/Repackage.java
+2
-1
RunJar.java
...n/groovy/org/springframework/boot/gradle/task/RunJar.java
+2
-1
JarWriter.java
...java/org/springframework/boot/loader/tools/JarWriter.java
+1
-0
LaunchedURLClassLoader.java
...g/springframework/boot/loader/LaunchedURLClassLoader.java
+1
-0
AbstractEmbeddedServletContainerFactory.java
...ext/embedded/AbstractEmbeddedServletContainerFactory.java
+3
-0
EmbeddedServletContainer.java
...ework/boot/context/embedded/EmbeddedServletContainer.java
+1
-0
LiquibaseServiceLocatorInitializer.java
...rk/boot/liquibase/LiquibaseServiceLocatorInitializer.java
+4
-5
JacksonParserTests.java
...a/org/springframework/boot/config/JacksonParserTests.java
+0
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ErrorMvcAutoConfiguration.java
View file @
64f32893
...
@@ -28,11 +28,11 @@ import org.springframework.boot.actuate.web.BasicErrorController;
...
@@ -28,11 +28,11 @@ import org.springframework.boot.actuate.web.BasicErrorController;
import
org.springframework.boot.actuate.web.ErrorController
;
import
org.springframework.boot.actuate.web.ErrorController
;
import
org.springframework.boot.autoconfigure.AutoConfigureBefore
;
import
org.springframework.boot.autoconfigure.AutoConfigureBefore
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.condition.ConditionOutcome
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnClass
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnExpression
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
;
import
org.springframework.boot.autoconfigure.condition.ConditionOutcome
;
import
org.springframework.boot.autoconfigure.condition.SpringBootCondition
;
import
org.springframework.boot.autoconfigure.condition.SpringBootCondition
;
import
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration.DefaultTemplateResolverConfiguration
;
import
org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration.DefaultTemplateResolverConfiguration
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
import
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration
;
...
@@ -103,7 +103,8 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
...
@@ -103,7 +103,8 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
context
.
getClassLoader
()))
{
context
.
getClassLoader
()))
{
if
(
DefaultTemplateResolverConfiguration
.
templateExists
(
if
(
DefaultTemplateResolverConfiguration
.
templateExists
(
context
.
getEnvironment
(),
context
.
getResourceLoader
(),
"error"
))
{
context
.
getEnvironment
(),
context
.
getResourceLoader
(),
"error"
))
{
return
ConditionOutcome
.
noMatch
(
"Thymeleaf template found for error view"
);
return
ConditionOutcome
.
noMatch
(
"Thymeleaf template found for error view"
);
}
}
}
}
// FIXME: add matcher for JSP view if Jasper detected
// FIXME: add matcher for JSP view if Jasper detected
...
@@ -128,6 +129,7 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
...
@@ -128,6 +129,7 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
this
.
context
.
addPropertyAccessor
(
new
MapAccessor
());
this
.
context
.
addPropertyAccessor
(
new
MapAccessor
());
this
.
helper
=
new
PropertyPlaceholderHelper
(
"${"
,
"}"
);
this
.
helper
=
new
PropertyPlaceholderHelper
(
"${"
,
"}"
);
this
.
resolver
=
new
PlaceholderResolver
()
{
this
.
resolver
=
new
PlaceholderResolver
()
{
@Override
public
String
resolvePlaceholder
(
String
name
)
{
public
String
resolvePlaceholder
(
String
name
)
{
Expression
expression
=
SpelView
.
this
.
parser
.
parseExpression
(
name
);
Expression
expression
=
SpelView
.
this
.
parser
.
parseExpression
(
name
);
Object
value
=
expression
.
getValue
(
SpelView
.
this
.
context
);
Object
value
=
expression
.
getValue
(
SpelView
.
this
.
context
);
...
@@ -136,10 +138,12 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
...
@@ -136,10 +138,12 @@ public class ErrorMvcAutoConfiguration implements EmbeddedServletContainerCustom
};
};
}
}
@Override
public
String
getContentType
()
{
public
String
getContentType
()
{
return
"text/html"
;
return
"text/html"
;
}
}
@Override
public
void
render
(
Map
<
String
,
?>
model
,
HttpServletRequest
request
,
public
void
render
(
Map
<
String
,
?>
model
,
HttpServletRequest
request
,
HttpServletResponse
response
)
throws
Exception
{
HttpServletResponse
response
)
throws
Exception
{
if
(
response
.
getContentType
()
==
null
)
{
if
(
response
.
getContentType
()
==
null
)
{
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/SimpleHealthIndicator.java
View file @
64f32893
...
@@ -72,6 +72,7 @@ public class SimpleHealthIndicator implements HealthIndicator<Map<String, Object
...
@@ -72,6 +72,7 @@ public class SimpleHealthIndicator implements HealthIndicator<Map<String, Object
return
map
;
return
map
;
}
}
@Override
public
void
setEnvironment
(
Environment
environment
)
{
public
void
setEnvironment
(
Environment
environment
)
{
this
.
environment
=
environment
;
this
.
environment
=
environment
;
}
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnWebApplicationCondition.java
View file @
64f32893
...
@@ -69,7 +69,8 @@ class OnWebApplicationCondition extends SpringBootCondition {
...
@@ -69,7 +69,8 @@ class OnWebApplicationCondition extends SpringBootCondition {
}
}
if
(
context
.
getEnvironment
()
instanceof
StandardServletEnvironment
)
{
if
(
context
.
getEnvironment
()
instanceof
StandardServletEnvironment
)
{
return
ConditionOutcome
.
match
(
"found web application StandardServletEnvironment"
);
return
ConditionOutcome
.
match
(
"found web application StandardServletEnvironment"
);
}
}
return
ConditionOutcome
.
noMatch
(
"not a web application"
);
return
ConditionOutcome
.
noMatch
(
"not a web application"
);
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java
View file @
64f32893
...
@@ -281,7 +281,8 @@ public class DataSourceAutoConfiguration implements EnvironmentAware {
...
@@ -281,7 +281,8 @@ public class DataSourceAutoConfiguration implements EnvironmentAware {
public
ConditionOutcome
getMatchOutcome
(
ConditionContext
context
,
public
ConditionOutcome
getMatchOutcome
(
ConditionContext
context
,
AnnotatedTypeMetadata
metadata
)
{
AnnotatedTypeMetadata
metadata
)
{
if
(
anyMatches
(
context
,
metadata
,
this
.
tomcatCondition
,
this
.
dbcpCondition
))
{
if
(
anyMatches
(
context
,
metadata
,
this
.
tomcatCondition
,
this
.
dbcpCondition
))
{
return
ConditionOutcome
.
noMatch
(
"existing non-embedded database detected"
);
return
ConditionOutcome
.
noMatch
(
"existing non-embedded database detected"
);
}
}
EmbeddedDatabaseType
type
=
EmbeddedDatabaseConnection
.
get
(
EmbeddedDatabaseType
type
=
EmbeddedDatabaseConnection
.
get
(
context
.
getClassLoader
()).
getType
();
context
.
getClassLoader
()).
getType
();
...
@@ -311,7 +312,8 @@ public class DataSourceAutoConfiguration implements EnvironmentAware {
...
@@ -311,7 +312,8 @@ public class DataSourceAutoConfiguration implements EnvironmentAware {
if
(
BeanFactoryUtils
.
beanNamesForTypeIncludingAncestors
(
if
(
BeanFactoryUtils
.
beanNamesForTypeIncludingAncestors
(
context
.
getBeanFactory
(),
DataSource
.
class
,
true
,
false
).
length
>
0
)
{
context
.
getBeanFactory
(),
DataSource
.
class
,
true
,
false
).
length
>
0
)
{
return
ConditionOutcome
.
match
(
"Existing bean configured database detected"
);
return
ConditionOutcome
.
match
(
"Existing bean configured database detected"
);
}
}
return
ConditionOutcome
.
noMatch
(
"no existing bean configured database"
);
return
ConditionOutcome
.
noMatch
(
"no existing bean configured database"
);
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/AutoConfigurationReportLoggingInitializerTests.java
View file @
64f32893
...
@@ -48,7 +48,7 @@ import static org.mockito.Mockito.mock;
...
@@ -48,7 +48,7 @@ import static org.mockito.Mockito.mock;
/**
/**
* Tests for {@link AutoConfigurationReportLoggingInitializer}.
* Tests for {@link AutoConfigurationReportLoggingInitializer}.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
public
class
AutoConfigurationReportLoggingInitializerTests
{
public
class
AutoConfigurationReportLoggingInitializerTests
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/JpaRepositoriesAutoConfigurationTests.java
View file @
64f32893
...
@@ -34,7 +34,7 @@ import static org.junit.Assert.assertNotNull;
...
@@ -34,7 +34,7 @@ import static org.junit.Assert.assertNotNull;
/**
/**
* Tests for {@link JpaRepositoriesAutoConfiguration}.
* Tests for {@link JpaRepositoriesAutoConfiguration}.
*
*
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
JpaRepositoriesAutoConfigurationTests
{
public
class
JpaRepositoriesAutoConfigurationTests
{
...
@@ -46,7 +46,8 @@ public class JpaRepositoriesAutoConfigurationTests {
...
@@ -46,7 +46,8 @@ public class JpaRepositoriesAutoConfigurationTests {
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
.
register
(
TestConfiguration
.
class
,
this
.
context
.
register
(
TestConfiguration
.
class
,
ComponentScanDetectorConfiguration
.
class
,
ComponentScanDetectorConfiguration
.
class
,
EmbeddedDataSourceConfiguration
.
class
,
HibernateJpaAutoConfiguration
.
class
,
EmbeddedDataSourceConfiguration
.
class
,
HibernateJpaAutoConfiguration
.
class
,
JpaRepositoriesAutoConfiguration
.
class
,
JpaRepositoriesAutoConfiguration
.
class
,
PropertyPlaceholderAutoConfiguration
.
class
);
PropertyPlaceholderAutoConfiguration
.
class
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/JmsTemplateAutoConfigurationTests.java
View file @
64f32893
...
@@ -55,7 +55,10 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -55,7 +55,10 @@ public class JmsTemplateAutoConfigurationTests {
assertNotNull
(
jmsTemplate
);
assertNotNull
(
jmsTemplate
);
assertNotNull
(
connectionFactory
);
assertNotNull
(
connectionFactory
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
connectionFactory
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
connectionFactory
);
assertEquals
(((
ActiveMQConnectionFactory
)
jmsTemplate
.
getConnectionFactory
()).
getBrokerURL
(),
"vm://localhost"
);
assertEquals
(
((
ActiveMQConnectionFactory
)
jmsTemplate
.
getConnectionFactory
())
.
getBrokerURL
(),
"vm://localhost"
);
}
}
@Test
@Test
...
@@ -109,7 +112,7 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -109,7 +112,7 @@ public class JmsTemplateAutoConfigurationTests {
JmsTemplate
jmsTemplate
=
this
.
context
.
getBean
(
JmsTemplate
.
class
);
JmsTemplate
jmsTemplate
=
this
.
context
.
getBean
(
JmsTemplate
.
class
);
assertFalse
(
jmsTemplate
.
isPubSubDomain
());
assertFalse
(
jmsTemplate
.
isPubSubDomain
());
}
}
@Test
@Test
public
void
testJmsTemplateOverridden
()
{
public
void
testJmsTemplateOverridden
()
{
this
.
context
=
new
AnnotationConfigApplicationContext
();
this
.
context
=
new
AnnotationConfigApplicationContext
();
...
@@ -139,7 +142,9 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -139,7 +142,9 @@ public class JmsTemplateAutoConfigurationTests {
assertNotNull
(
jmsTemplate
);
assertNotNull
(
jmsTemplate
);
assertNotNull
(
connectionFactory
);
assertNotNull
(
connectionFactory
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
connectionFactory
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
connectionFactory
);
assertEquals
(((
ActiveMQConnectionFactory
)
jmsTemplate
.
getConnectionFactory
()).
getBrokerURL
(),
assertEquals
(
((
ActiveMQConnectionFactory
)
jmsTemplate
.
getConnectionFactory
())
.
getBrokerURL
(),
"tcp://localhost:61616"
);
"tcp://localhost:61616"
);
}
}
...
@@ -157,7 +162,9 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -157,7 +162,9 @@ public class JmsTemplateAutoConfigurationTests {
assertNotNull
(
jmsTemplate
);
assertNotNull
(
jmsTemplate
);
assertNotNull
(
connectionFactory
);
assertNotNull
(
connectionFactory
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
connectionFactory
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
connectionFactory
);
assertEquals
(((
ActiveMQConnectionFactory
)
jmsTemplate
.
getConnectionFactory
()).
getBrokerURL
(),
assertEquals
(
((
ActiveMQConnectionFactory
)
jmsTemplate
.
getConnectionFactory
())
.
getBrokerURL
(),
"tcp://remote-host:10000"
);
"tcp://remote-host:10000"
);
}
}
...
@@ -174,7 +181,8 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -174,7 +181,8 @@ public class JmsTemplateAutoConfigurationTests {
assertNotNull
(
jmsTemplate
);
assertNotNull
(
jmsTemplate
);
assertNotNull
(
pool
);
assertNotNull
(
pool
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
pool
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
pool
);
ActiveMQConnectionFactory
factory
=
(
ActiveMQConnectionFactory
)
pool
.
getConnectionFactory
();
ActiveMQConnectionFactory
factory
=
(
ActiveMQConnectionFactory
)
pool
.
getConnectionFactory
();
assertEquals
(
"vm://localhost"
,
factory
.
getBrokerURL
());
assertEquals
(
"vm://localhost"
,
factory
.
getBrokerURL
());
}
}
...
@@ -192,7 +200,8 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -192,7 +200,8 @@ public class JmsTemplateAutoConfigurationTests {
assertNotNull
(
jmsTemplate
);
assertNotNull
(
jmsTemplate
);
assertNotNull
(
pool
);
assertNotNull
(
pool
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
pool
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
pool
);
ActiveMQConnectionFactory
factory
=
(
ActiveMQConnectionFactory
)
pool
.
getConnectionFactory
();
ActiveMQConnectionFactory
factory
=
(
ActiveMQConnectionFactory
)
pool
.
getConnectionFactory
();
assertEquals
(
"tcp://localhost:61616"
,
factory
.
getBrokerURL
());
assertEquals
(
"tcp://localhost:61616"
,
factory
.
getBrokerURL
());
}
}
...
@@ -202,7 +211,8 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -202,7 +211,8 @@ public class JmsTemplateAutoConfigurationTests {
this
.
context
this
.
context
.
register
(
TestConfiguration
.
class
,
JmsTemplateAutoConfiguration
.
class
);
.
register
(
TestConfiguration
.
class
,
JmsTemplateAutoConfiguration
.
class
);
TestUtils
.
addEnviroment
(
this
.
context
,
"spring.activemq.pooled:true"
,
TestUtils
.
addEnviroment
(
this
.
context
,
"spring.activemq.pooled:true"
,
"spring.activemq.inMemory:false"
,
"spring.activemq.brokerURL:tcp://remote-host:10000"
);
"spring.activemq.inMemory:false"
,
"spring.activemq.brokerURL:tcp://remote-host:10000"
);
this
.
context
.
refresh
();
this
.
context
.
refresh
();
JmsTemplate
jmsTemplate
=
this
.
context
.
getBean
(
JmsTemplate
.
class
);
JmsTemplate
jmsTemplate
=
this
.
context
.
getBean
(
JmsTemplate
.
class
);
PooledConnectionFactory
pool
=
this
.
context
PooledConnectionFactory
pool
=
this
.
context
...
@@ -210,7 +220,8 @@ public class JmsTemplateAutoConfigurationTests {
...
@@ -210,7 +220,8 @@ public class JmsTemplateAutoConfigurationTests {
assertNotNull
(
jmsTemplate
);
assertNotNull
(
jmsTemplate
);
assertNotNull
(
pool
);
assertNotNull
(
pool
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
pool
);
assertEquals
(
jmsTemplate
.
getConnectionFactory
(),
pool
);
ActiveMQConnectionFactory
factory
=
(
ActiveMQConnectionFactory
)
pool
.
getConnectionFactory
();
ActiveMQConnectionFactory
factory
=
(
ActiveMQConnectionFactory
)
pool
.
getConnectionFactory
();
assertEquals
(
"tcp://remote-host:10000"
,
factory
.
getBrokerURL
());
assertEquals
(
"tcp://remote-host:10000"
,
factory
.
getBrokerURL
());
}
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java
View file @
64f32893
...
@@ -39,7 +39,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
...
@@ -39,7 +39,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
/**
/**
* Tests for {@link DeviceResolverAutoConfiguration}.
* Tests for {@link DeviceResolverAutoConfiguration}.
*
*
* @author Roy Clarkson
* @author Roy Clarkson
*/
*/
public
class
DeviceResolverAutoConfigurationTests
{
public
class
DeviceResolverAutoConfigurationTests
{
...
...
spring-boot-cli/src/main/java/org/springframework/boot/cli/command/OptionHandler.java
View file @
64f32893
...
@@ -133,6 +133,7 @@ public class OptionHandler {
...
@@ -133,6 +133,7 @@ public class OptionHandler {
@Override
@Override
public
String
format
(
Map
<
String
,
?
extends
OptionDescriptor
>
options
)
{
public
String
format
(
Map
<
String
,
?
extends
OptionDescriptor
>
options
)
{
Comparator
<
OptionDescriptor
>
comparator
=
new
Comparator
<
OptionDescriptor
>()
{
Comparator
<
OptionDescriptor
>
comparator
=
new
Comparator
<
OptionDescriptor
>()
{
@Override
public
int
compare
(
OptionDescriptor
first
,
OptionDescriptor
second
)
{
public
int
compare
(
OptionDescriptor
first
,
OptionDescriptor
second
)
{
return
first
.
options
().
iterator
().
next
()
return
first
.
options
().
iterator
().
next
()
.
compareTo
(
second
.
options
().
iterator
().
next
());
.
compareTo
(
second
.
options
().
iterator
().
next
());
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/test/java/org/springframework/boot/sample/ops/ui/SampleActuatorUiApplicationPortTests.java
View file @
64f32893
...
@@ -58,8 +58,8 @@ public class SampleActuatorUiApplicationPortTests {
...
@@ -58,8 +58,8 @@ public class SampleActuatorUiApplicationPortTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
.
run
(
SampleActuatorUiApplication
.
class
,
args
);
SampleActuatorUiApplication
.
class
,
args
);
}
}
});
});
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/test/java/org/springframework/boot/sample/ops/ui/SampleActuatorUiApplicationTests.java
View file @
64f32893
...
@@ -58,7 +58,7 @@ public class SampleActuatorUiApplicationTests {
...
@@ -58,7 +58,7 @@ public class SampleActuatorUiApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleActuatorUiApplication
.
class
);
.
run
(
SampleActuatorUiApplication
.
class
);
}
}
});
});
...
@@ -112,8 +112,10 @@ public class SampleActuatorUiApplicationTests {
...
@@ -112,8 +112,10 @@ public class SampleActuatorUiApplicationTests {
.
contains
(
"<html>"
));
.
contains
(
"<html>"
));
assertTrue
(
"Wrong body:\n"
+
entity
.
getBody
(),
entity
.
getBody
()
assertTrue
(
"Wrong body:\n"
+
entity
.
getBody
(),
entity
.
getBody
()
.
contains
(
"<body>"
));
.
contains
(
"<body>"
));
assertTrue
(
"Wrong body:\n"
+
entity
.
getBody
(),
entity
.
getBody
()
assertTrue
(
.
contains
(
"Please contact the operator with the above information"
));
"Wrong body:\n"
+
entity
.
getBody
(),
entity
.
getBody
().
contains
(
"Please contact the operator with the above information"
));
}
}
private
RestTemplate
getRestTemplate
()
{
private
RestTemplate
getRestTemplate
()
{
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/EndpointsPropertiesSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -59,8 +59,7 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
...
@@ -59,8 +59,7 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
configuration
,
args
);
.
run
(
configuration
,
args
);
}
}
});
});
this
.
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
this
.
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/ManagementAddressSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -67,8 +67,8 @@ public class ManagementAddressSampleActuatorApplicationTests {
...
@@ -67,8 +67,8 @@ public class ManagementAddressSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
.
run
(
SampleActuatorApplication
.
class
,
args
);
SampleActuatorApplication
.
class
,
args
);
}
}
});
});
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/ManagementSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -57,8 +57,8 @@ public class ManagementSampleActuatorApplicationTests {
...
@@ -57,8 +57,8 @@ public class ManagementSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
.
run
(
SampleActuatorApplication
.
class
,
args
);
SampleActuatorApplication
.
class
,
args
);
}
}
});
});
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/NoManagementSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -65,8 +65,8 @@ public class NoManagementSampleActuatorApplicationTests {
...
@@ -65,8 +65,8 @@ public class NoManagementSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
.
run
(
SampleActuatorApplication
.
class
,
args
);
SampleActuatorApplication
.
class
,
args
);
}
}
});
});
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/SampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -69,7 +69,7 @@ public class SampleActuatorApplicationTests {
...
@@ -69,7 +69,7 @@ public class SampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleActuatorApplication
.
class
);
.
run
(
SampleActuatorApplication
.
class
);
}
}
});
});
...
@@ -145,8 +145,7 @@ public class SampleActuatorApplicationTests {
...
@@ -145,8 +145,7 @@ public class SampleActuatorApplicationTests {
assertEquals
(
HttpStatus
.
INTERNAL_SERVER_ERROR
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
INTERNAL_SERVER_ERROR
,
entity
.
getStatusCode
());
String
body
=
entity
.
getBody
();
String
body
=
entity
.
getBody
();
assertNotNull
(
body
);
assertNotNull
(
body
);
assertTrue
(
"Wrong body: "
+
body
,
assertTrue
(
"Wrong body: "
+
body
,
body
.
contains
(
"\"error\":"
));
body
.
contains
(
"\"error\":"
));
}
}
@Test
@Test
...
@@ -171,7 +170,7 @@ public class SampleActuatorApplicationTests {
...
@@ -171,7 +170,7 @@ public class SampleActuatorApplicationTests {
.
getForEntity
(
"http://localhost:8080/trace"
,
List
.
class
);
.
getForEntity
(
"http://localhost:8080/trace"
,
List
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
List
<
Map
<
String
,
Object
>>
list
=
(
List
<
Map
<
String
,
Object
>>)
entity
.
getBody
();
List
<
Map
<
String
,
Object
>>
list
=
entity
.
getBody
();
Map
<
String
,
Object
>
trace
=
list
.
get
(
list
.
size
()
-
1
);
Map
<
String
,
Object
>
trace
=
list
.
get
(
list
.
size
()
-
1
);
@SuppressWarnings
(
"unchecked"
)
@SuppressWarnings
(
"unchecked"
)
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
((
Map
<
String
,
Object
>)
((
Map
<
String
,
Object
>)
trace
Map
<
String
,
Object
>
map
=
(
Map
<
String
,
Object
>)
((
Map
<
String
,
Object
>)
((
Map
<
String
,
Object
>)
trace
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/ShutdownSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -62,7 +62,7 @@ public class ShutdownSampleActuatorApplicationTests {
...
@@ -62,7 +62,7 @@ public class ShutdownSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleActuatorApplication
.
class
);
.
run
(
SampleActuatorApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/UnsecureManagementSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -41,7 +41,7 @@ import org.springframework.web.client.RestTemplate;
...
@@ -41,7 +41,7 @@ import org.springframework.web.client.RestTemplate;
/**
/**
* Integration tests for unsecured service endpoints (even with Spring Security on
* Integration tests for unsecured service endpoints (even with Spring Security on
* classpath).
* classpath).
*
*
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
UnsecureManagementSampleActuatorApplicationTests
{
public
class
UnsecureManagementSampleActuatorApplicationTests
{
...
@@ -55,9 +55,9 @@ public class UnsecureManagementSampleActuatorApplicationTests {
...
@@ -55,9 +55,9 @@ public class UnsecureManagementSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
.
run
(
SampleActuatorApplication
.
class
,
SampleActuatorApplication
.
class
,
"--security.management.enabled=false"
);
"--security.management.enabled=false"
);
}
}
});
});
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
@@ -87,7 +87,8 @@ public class UnsecureManagementSampleActuatorApplicationTests {
...
@@ -87,7 +87,8 @@ public class UnsecureManagementSampleActuatorApplicationTests {
public
void
testMetrics
()
throws
Exception
{
public
void
testMetrics
()
throws
Exception
{
try
{
try
{
testHomeIsSecure
();
// makes sure some requests have been made
testHomeIsSecure
();
// makes sure some requests have been made
}
catch
(
AssertionError
ex
)
{
}
catch
(
AssertionError
ex
)
{
// ignore;
// ignore;
}
}
@SuppressWarnings
(
"rawtypes"
)
@SuppressWarnings
(
"rawtypes"
)
...
...
spring-boot-samples/spring-boot-sample-actuator/src/test/java/org/springframework/boot/sample/ops/UnsecureSampleActuatorApplicationTests.java
View file @
64f32893
...
@@ -54,9 +54,9 @@ public class UnsecureSampleActuatorApplicationTests {
...
@@ -54,9 +54,9 @@ public class UnsecureSampleActuatorApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
.
run
(
SampleActuatorApplication
.
class
,
SampleActuatorApplication
.
class
,
"--security.basic.enabled=false"
);
"--security.basic.enabled=false"
);
}
}
});
});
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
context
=
future
.
get
(
60
,
TimeUnit
.
SECONDS
);
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/main/java/org/springframework/boot/sample/data/jpa/web/SampleController.java
View file @
64f32893
...
@@ -31,7 +31,7 @@ public class SampleController {
...
@@ -31,7 +31,7 @@ public class SampleController {
@RequestMapping
(
"/"
)
@RequestMapping
(
"/"
)
@ResponseBody
@ResponseBody
@Transactional
(
readOnly
=
true
)
@Transactional
(
readOnly
=
true
)
public
String
helloWorld
()
{
public
String
helloWorld
()
{
return
this
.
cityService
.
getCity
(
"Bath"
,
"UK"
).
getName
();
return
this
.
cityService
.
getCity
(
"Bath"
,
"UK"
).
getName
();
}
}
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/test/java/org/springframework/boot/sample/data/jpa/SampleDataJpaApplicationTests.java
View file @
64f32893
...
@@ -23,9 +23,10 @@ import org.springframework.web.context.WebApplicationContext;
...
@@ -23,9 +23,10 @@ import org.springframework.web.context.WebApplicationContext;
* @author Oliver Gierke
* @author Oliver Gierke
*/
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
@WebAppConfiguration
@WebAppConfiguration
@ActiveProfiles
(
"scratch"
)
// Separate profile for web tests to avoid clashing databases
@ActiveProfiles
(
"scratch"
)
// Separate profile for web tests to avoid clashing databases
public
class
SampleDataJpaApplicationTests
{
public
class
SampleDataJpaApplicationTests
{
@Autowired
@Autowired
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/test/java/org/springframework/boot/sample/data/jpa/service/CityRepositoryIntegrationTests.java
View file @
64f32893
...
@@ -36,7 +36,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
...
@@ -36,7 +36,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
* @author Oliver Gierke
* @author Oliver Gierke
*/
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
public
class
CityRepositoryIntegrationTests
{
public
class
CityRepositoryIntegrationTests
{
@Autowired
@Autowired
...
...
spring-boot-samples/spring-boot-sample-data-jpa/src/test/java/org/springframework/boot/sample/data/jpa/service/HotelRepositoryIntegrationTests.java
View file @
64f32893
...
@@ -44,7 +44,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
...
@@ -44,7 +44,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
* @author Oliver Gierke
* @author Oliver Gierke
*/
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
@ContextConfiguration
(
classes
=
SampleDataJpaApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
public
class
HotelRepositoryIntegrationTests
{
public
class
HotelRepositoryIntegrationTests
{
@Autowired
@Autowired
...
...
spring-boot-samples/spring-boot-sample-data-mongodb/src/main/java/org/springframework/boot/sample/data/mongo/Customer.java
View file @
64f32893
...
@@ -20,25 +20,24 @@ import org.springframework.data.annotation.Id;
...
@@ -20,25 +20,24 @@ import org.springframework.data.annotation.Id;
public
class
Customer
{
public
class
Customer
{
@Id
@Id
private
String
id
;
private
String
id
;
private
String
firstName
;
private
String
firstName
;
private
String
lastName
;
private
String
lastName
;
public
Customer
()
{}
public
Customer
()
{
}
public
Customer
(
String
firstName
,
String
lastName
)
{
public
Customer
(
String
firstName
,
String
lastName
)
{
this
.
firstName
=
firstName
;
this
.
firstName
=
firstName
;
this
.
lastName
=
lastName
;
this
.
lastName
=
lastName
;
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
String
.
format
(
return
String
.
format
(
"Customer[id=%s, firstName='%s', lastName='%s']"
,
id
,
"Customer[id=%s, firstName='%s', lastName='%s']"
,
firstName
,
lastName
);
id
,
firstName
,
lastName
);
}
}
}
}
spring-boot-samples/spring-boot-sample-data-mongodb/src/main/java/org/springframework/boot/sample/data/mongo/CustomerRepository.java
View file @
64f32893
...
@@ -22,8 +22,8 @@ import org.springframework.data.mongodb.repository.MongoRepository;
...
@@ -22,8 +22,8 @@ import org.springframework.data.mongodb.repository.MongoRepository;
public
interface
CustomerRepository
extends
MongoRepository
<
Customer
,
String
>
{
public
interface
CustomerRepository
extends
MongoRepository
<
Customer
,
String
>
{
public
Customer
findByFirstName
(
String
firstName
);
public
Customer
findByFirstName
(
String
firstName
);
public
List
<
Customer
>
findByLastName
(
String
lastName
);
public
List
<
Customer
>
findByLastName
(
String
lastName
);
}
}
spring-boot-samples/spring-boot-sample-data-mongodb/src/test/java/org/springframework/boot/sample/data/mongo/SampleMongoApplicationTests.java
View file @
64f32893
...
@@ -27,7 +27,7 @@ import org.springframework.core.NestedCheckedException;
...
@@ -27,7 +27,7 @@ import org.springframework.core.NestedCheckedException;
/**
/**
* Tests for {@link SampleMongoApplication}.
* Tests for {@link SampleMongoApplication}.
*
*
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
SampleMongoApplicationTests
{
public
class
SampleMongoApplicationTests
{
...
@@ -39,13 +39,15 @@ public class SampleMongoApplicationTests {
...
@@ -39,13 +39,15 @@ public class SampleMongoApplicationTests {
public
void
testDefaultSettings
()
throws
Exception
{
public
void
testDefaultSettings
()
throws
Exception
{
try
{
try
{
SampleMongoApplication
.
main
(
new
String
[
0
]);
SampleMongoApplication
.
main
(
new
String
[
0
]);
}
catch
(
IllegalStateException
ex
)
{
}
catch
(
IllegalStateException
ex
)
{
if
(
serverNotRunning
(
ex
))
{
if
(
serverNotRunning
(
ex
))
{
return
;
return
;
}
}
}
}
String
output
=
this
.
outputCapture
.
toString
();
String
output
=
this
.
outputCapture
.
toString
();
assertTrue
(
"Wrong output: "
+
output
,
output
.
contains
(
"firstName='Alice', lastName='Smith'"
));
assertTrue
(
"Wrong output: "
+
output
,
output
.
contains
(
"firstName='Alice', lastName='Smith'"
));
}
}
private
boolean
serverNotRunning
(
IllegalStateException
e
)
{
private
boolean
serverNotRunning
(
IllegalStateException
e
)
{
...
...
spring-boot-samples/spring-boot-sample-integration/src/test/java/org/springframework/boot/sample/integration/consumer/SampleIntegrationApplicationTests.java
View file @
64f32893
...
@@ -46,8 +46,7 @@ public class SampleIntegrationApplicationTests {
...
@@ -46,8 +46,7 @@ public class SampleIntegrationApplicationTests {
@BeforeClass
@BeforeClass
public
static
void
start
()
throws
Exception
{
public
static
void
start
()
throws
Exception
{
context
=
(
ConfigurableApplicationContext
)
SpringApplication
context
=
SpringApplication
.
run
(
SampleIntegrationApplication
.
class
);
.
run
(
SampleIntegrationApplication
.
class
);
}
}
@AfterClass
@AfterClass
...
...
spring-boot-samples/spring-boot-sample-jetty/src/test/java/org/springframework/boot/sample/jetty/SampleJettyApplicationTests.java
View file @
64f32893
...
@@ -51,7 +51,7 @@ public class SampleJettyApplicationTests {
...
@@ -51,7 +51,7 @@ public class SampleJettyApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleJettyApplication
.
class
);
.
run
(
SampleJettyApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-simple/src/test/java/org/springframework/boot/sample/simple/SpringTestSampleSimpleApplicationTests.java
View file @
64f32893
...
@@ -28,7 +28,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
...
@@ -28,7 +28,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
* @author Dave Syer
* @author Dave Syer
*/
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@ContextConfiguration
(
classes
=
SampleSimpleApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
@ContextConfiguration
(
classes
=
SampleSimpleApplication
.
class
,
loader
=
SpringApplicationContextLoader
.
class
)
public
class
SpringTestSampleSimpleApplicationTests
{
public
class
SpringTestSampleSimpleApplicationTests
{
@Test
@Test
...
...
spring-boot-samples/spring-boot-sample-tomcat/src/test/java/org/springframework/boot/sample/tomcat/NonAutoConfigurationSampleTomcatApplicationTests.java
View file @
64f32893
...
@@ -73,7 +73,7 @@ public class NonAutoConfigurationSampleTomcatApplicationTests {
...
@@ -73,7 +73,7 @@ public class NonAutoConfigurationSampleTomcatApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
NonAutoConfigurationSampleTomcatApplication
.
class
);
.
run
(
NonAutoConfigurationSampleTomcatApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-tomcat/src/test/java/org/springframework/boot/sample/tomcat/SampleTomcatApplicationTests.java
View file @
64f32893
...
@@ -51,7 +51,7 @@ public class SampleTomcatApplicationTests {
...
@@ -51,7 +51,7 @@ public class SampleTomcatApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleTomcatApplication
.
class
);
.
run
(
SampleTomcatApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-traditional/src/test/java/org/springframework/boot/sample/traditional/SampleTraditionalApplicationTests.java
View file @
64f32893
...
@@ -52,7 +52,7 @@ public class SampleTraditionalApplicationTests {
...
@@ -52,7 +52,7 @@ public class SampleTraditionalApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleTraditionalApplication
.
class
);
.
run
(
SampleTraditionalApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-web-jsp/src/test/java/org/springframework/boot/sample/jsp/SampleWebJspApplicationTests.java
View file @
64f32893
...
@@ -21,7 +21,7 @@ import static org.junit.Assert.*;
...
@@ -21,7 +21,7 @@ import static org.junit.Assert.*;
/**
/**
* Basic integration tests for JSP application.
* Basic integration tests for JSP application.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
public
class
SampleWebJspApplicationTests
{
public
class
SampleWebJspApplicationTests
{
...
@@ -35,7 +35,7 @@ public class SampleWebJspApplicationTests {
...
@@ -35,7 +35,7 @@ public class SampleWebJspApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleWebJspApplication
.
class
);
.
run
(
SampleWebJspApplication
.
class
);
}
}
});
});
...
@@ -54,8 +54,8 @@ public class SampleWebJspApplicationTests {
...
@@ -54,8 +54,8 @@ public class SampleWebJspApplicationTests {
ResponseEntity
<
String
>
entity
=
getRestTemplate
().
getForEntity
(
ResponseEntity
<
String
>
entity
=
getRestTemplate
().
getForEntity
(
"http://localhost:8080"
,
String
.
class
);
"http://localhost:8080"
,
String
.
class
);
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertEquals
(
HttpStatus
.
OK
,
entity
.
getStatusCode
());
assertTrue
(
"Wrong body:\n"
+
entity
.
getBody
(),
entity
assertTrue
(
"Wrong body:\n"
+
entity
.
getBody
(),
.
getBody
().
contains
(
"/resources/text.txt"
));
entity
.
getBody
().
contains
(
"/resources/text.txt"
));
}
}
private
RestTemplate
getRestTemplate
()
{
private
RestTemplate
getRestTemplate
()
{
...
...
spring-boot-samples/spring-boot-sample-web-static/src/test/java/org/springframework/boot/sample/ui/SampleWebStaticApplicationTests.java
View file @
64f32893
...
@@ -23,7 +23,7 @@ import static org.junit.Assert.assertTrue;
...
@@ -23,7 +23,7 @@ import static org.junit.Assert.assertTrue;
/**
/**
* Basic integration tests for demo application.
* Basic integration tests for demo application.
*
*
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
SampleWebStaticApplicationTests
{
public
class
SampleWebStaticApplicationTests
{
...
@@ -37,7 +37,7 @@ public class SampleWebStaticApplicationTests {
...
@@ -37,7 +37,7 @@ public class SampleWebStaticApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleWebStaticApplication
.
class
);
.
run
(
SampleWebStaticApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-web-ui/src/test/java/org/springframework/boot/sample/ui/SampleWebUiApplicationTests.java
View file @
64f32893
...
@@ -26,7 +26,7 @@ import static org.junit.Assert.assertTrue;
...
@@ -26,7 +26,7 @@ import static org.junit.Assert.assertTrue;
/**
/**
* Basic integration tests for demo application.
* Basic integration tests for demo application.
*
*
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
SampleWebUiApplicationTests
{
public
class
SampleWebUiApplicationTests
{
...
@@ -40,7 +40,7 @@ public class SampleWebUiApplicationTests {
...
@@ -40,7 +40,7 @@ public class SampleWebUiApplicationTests {
new
Callable
<
ConfigurableApplicationContext
>()
{
new
Callable
<
ConfigurableApplicationContext
>()
{
@Override
@Override
public
ConfigurableApplicationContext
call
()
throws
Exception
{
public
ConfigurableApplicationContext
call
()
throws
Exception
{
return
(
ConfigurableApplicationContext
)
SpringApplication
return
SpringApplication
.
run
(
SampleWebUiApplication
.
class
);
.
run
(
SampleWebUiApplication
.
class
);
}
}
});
});
...
...
spring-boot-samples/spring-boot-sample-websocket/src/main/java/org/springframework/boot/samples/websocket/config/SampleWebSocketsApplication.java
View file @
64f32893
...
@@ -37,8 +37,8 @@ public class SampleWebSocketsApplication extends SpringBootServletInitializer {
...
@@ -37,8 +37,8 @@ public class SampleWebSocketsApplication extends SpringBootServletInitializer {
@Override
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
.
sources
(
SampleWebSocketsApplication
.
class
);
return
application
.
sources
(
SampleWebSocketsApplication
.
class
);
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SampleWebSocketsApplication
.
class
,
args
);
SpringApplication
.
run
(
SampleWebSocketsApplication
.
class
,
args
);
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPlugin.java
View file @
64f32893
...
@@ -26,7 +26,7 @@ import org.springframework.boot.gradle.task.RunJar;
...
@@ -26,7 +26,7 @@ import org.springframework.boot.gradle.task.RunJar;
/**
/**
* Gradle 'Spring Boot' {@link Plugin}.
* Gradle 'Spring Boot' {@link Plugin}.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
public
class
SpringBootPlugin
implements
Plugin
<
Project
>
{
public
class
SpringBootPlugin
implements
Plugin
<
Project
>
{
...
@@ -53,12 +53,14 @@ public class SpringBootPlugin implements Plugin<Project> {
...
@@ -53,12 +53,14 @@ public class SpringBootPlugin implements Plugin<Project> {
}
}
private
Repackage
addRepackageTask
(
Project
project
)
{
private
Repackage
addRepackageTask
(
Project
project
)
{
Repackage
packageTask
=
project
.
getTasks
().
create
(
REPACKAGE_TASK_NAME
,
Repackage
.
class
);
Repackage
packageTask
=
project
.
getTasks
().
create
(
REPACKAGE_TASK_NAME
,
Repackage
.
class
);
packageTask
.
setDescription
(
"Repackage existing JAR and WAR "
packageTask
.
setDescription
(
"Repackage existing JAR and WAR "
+
"archives so that they can be executed from the command "
+
"line using 'java -jar'"
);
+
"archives so that they can be executed from the command "
+
"line using 'java -jar'"
);
packageTask
.
setGroup
(
BasePlugin
.
BUILD_GROUP
);
packageTask
.
setGroup
(
BasePlugin
.
BUILD_GROUP
);
packageTask
.
dependsOn
(
project
.
getConfigurations
().
getByName
(
Dependency
.
ARCHIVES_CONFIGURATION
)
packageTask
.
dependsOn
(
project
.
getConfigurations
().
getByName
(
.
getAllArtifacts
().
getBuildDependencies
());
Dependency
.
ARCHIVES_CONFIGURATION
)
.
getAllArtifacts
().
getBuildDependencies
());
return
packageTask
;
return
packageTask
;
}
}
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/task/ProjectLibraries.java
View file @
64f32893
package
org
.
springframework
.
boot
.
gradle
.
task
;
package
org
.
springframework
.
boot
.
gradle
.
task
;
import
java.io.File
;
import
java.io.File
;
...
@@ -23,6 +24,7 @@ class ProjectLibraries implements Libraries {
...
@@ -23,6 +24,7 @@ class ProjectLibraries implements Libraries {
/**
/**
* Create a new {@link ProjectLibraries} instance of the specified {@link Project}.
* Create a new {@link ProjectLibraries} instance of the specified {@link Project}.
*
* @param project the gradle project
* @param project the gradle project
*/
*/
public
ProjectLibraries
(
Project
project
)
{
public
ProjectLibraries
(
Project
project
)
{
...
@@ -31,6 +33,7 @@ class ProjectLibraries implements Libraries {
...
@@ -31,6 +33,7 @@ class ProjectLibraries implements Libraries {
/**
/**
* Set the name of the provided configuration. Defaults to 'providedRuntime'.
* Set the name of the provided configuration. Defaults to 'providedRuntime'.
*
* @param providedConfigurationName the providedConfigurationName to set
* @param providedConfigurationName the providedConfigurationName to set
*/
*/
public
void
setProvidedConfigurationName
(
String
providedConfigurationName
)
{
public
void
setProvidedConfigurationName
(
String
providedConfigurationName
)
{
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/task/Repackage.java
View file @
64f32893
...
@@ -29,7 +29,7 @@ import org.springframework.boot.loader.tools.Repackager;
...
@@ -29,7 +29,7 @@ import org.springframework.boot.loader.tools.Repackager;
/**
/**
* Repackage task.
* Repackage task.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
public
class
Repackage
extends
DefaultTask
{
public
class
Repackage
extends
DefaultTask
{
...
@@ -44,6 +44,7 @@ public class Repackage extends DefaultTask {
...
@@ -44,6 +44,7 @@ public class Repackage extends DefaultTask {
libraries
.
setProvidedConfigurationName
(
extension
.
getProvidedConfiguration
());
libraries
.
setProvidedConfigurationName
(
extension
.
getProvidedConfiguration
());
}
}
project
.
getTasks
().
withType
(
Jar
.
class
,
new
Action
<
Jar
>()
{
project
.
getTasks
().
withType
(
Jar
.
class
,
new
Action
<
Jar
>()
{
@Override
@Override
public
void
execute
(
Jar
archive
)
{
public
void
execute
(
Jar
archive
)
{
if
(
""
.
equals
(
archive
.
getClassifier
()))
{
if
(
""
.
equals
(
archive
.
getClassifier
()))
{
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/task/RunJar.java
View file @
64f32893
...
@@ -29,7 +29,7 @@ import org.gradle.process.internal.ExecAction;
...
@@ -29,7 +29,7 @@ import org.gradle.process.internal.ExecAction;
/**
/**
* Run Jar task. Run the built jar file from Gradle.
* Run Jar task. Run the built jar file from Gradle.
*
*
* @author Dave Noel
* @author Dave Noel
*/
*/
public
class
RunJar
extends
DefaultTask
{
public
class
RunJar
extends
DefaultTask
{
...
@@ -40,6 +40,7 @@ public class RunJar extends DefaultTask {
...
@@ -40,6 +40,7 @@ public class RunJar extends DefaultTask {
public
void
runJar
()
{
public
void
runJar
()
{
Project
project
=
getProject
();
Project
project
=
getProject
();
project
.
getTasks
().
withType
(
Jar
.
class
,
new
Action
<
Jar
>()
{
project
.
getTasks
().
withType
(
Jar
.
class
,
new
Action
<
Jar
>()
{
@Override
@Override
public
void
execute
(
Jar
archive
)
{
public
void
execute
(
Jar
archive
)
{
file
=
archive
.
getArchivePath
();
file
=
archive
.
getArchivePath
();
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java
View file @
64f32893
...
@@ -200,6 +200,7 @@ class JarWriter {
...
@@ -200,6 +200,7 @@ class JarWriter {
this
.
close
=
close
;
this
.
close
=
close
;
}
}
@Override
public
void
write
(
OutputStream
outputStream
)
throws
IOException
{
public
void
write
(
OutputStream
outputStream
)
throws
IOException
{
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
int
bytesRead
=
-
1
;
int
bytesRead
=
-
1
;
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/LaunchedURLClassLoader.java
View file @
64f32893
...
@@ -157,6 +157,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
...
@@ -157,6 +157,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
private
void
definePackageForFindClass
(
final
String
name
,
final
String
packageName
)
{
private
void
definePackageForFindClass
(
final
String
name
,
final
String
packageName
)
{
try
{
try
{
AccessController
.
doPrivileged
(
new
PrivilegedExceptionAction
<
Object
>()
{
AccessController
.
doPrivileged
(
new
PrivilegedExceptionAction
<
Object
>()
{
@Override
public
Object
run
()
throws
ClassNotFoundException
{
public
Object
run
()
throws
ClassNotFoundException
{
String
path
=
name
.
replace
(
'.'
,
'/'
).
concat
(
".class"
);
String
path
=
name
.
replace
(
'.'
,
'/'
).
concat
(
".class"
);
for
(
URL
url
:
getURLs
())
{
for
(
URL
url
:
getURLs
())
{
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactory.java
View file @
64f32893
...
@@ -142,6 +142,7 @@ public abstract class AbstractEmbeddedServletContainerFactory implements
...
@@ -142,6 +142,7 @@ public abstract class AbstractEmbeddedServletContainerFactory implements
/**
/**
* Returns the port that the embedded servlet container should listen on.
* Returns the port that the embedded servlet container should listen on.
*/
*/
@Override
public
int
getPort
()
{
public
int
getPort
()
{
return
this
.
port
;
return
this
.
port
;
}
}
...
@@ -158,10 +159,12 @@ public abstract class AbstractEmbeddedServletContainerFactory implements
...
@@ -158,10 +159,12 @@ public abstract class AbstractEmbeddedServletContainerFactory implements
return
this
.
address
;
return
this
.
address
;
}
}
@Override
public
void
setSessionTimeout
(
int
sessionTimeout
)
{
public
void
setSessionTimeout
(
int
sessionTimeout
)
{
this
.
sessionTimeout
=
sessionTimeout
;
this
.
sessionTimeout
=
sessionTimeout
;
}
}
@Override
public
void
setSessionTimeout
(
int
sessionTimeout
,
TimeUnit
timeUnit
)
{
public
void
setSessionTimeout
(
int
sessionTimeout
,
TimeUnit
timeUnit
)
{
Assert
.
notNull
(
timeUnit
,
"TimeUnit must not be null"
);
Assert
.
notNull
(
timeUnit
,
"TimeUnit must not be null"
);
this
.
sessionTimeout
=
(
int
)
timeUnit
.
toSeconds
(
sessionTimeout
);
this
.
sessionTimeout
=
(
int
)
timeUnit
.
toSeconds
(
sessionTimeout
);
...
...
spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java
View file @
64f32893
...
@@ -35,6 +35,7 @@ public interface EmbeddedServletContainer {
...
@@ -35,6 +35,7 @@ public interface EmbeddedServletContainer {
*/
*/
public
static
final
EmbeddedServletContainer
NONE
=
new
EmbeddedServletContainer
()
{
public
static
final
EmbeddedServletContainer
NONE
=
new
EmbeddedServletContainer
()
{
@Override
public
void
start
()
throws
EmbeddedServletContainerException
{
public
void
start
()
throws
EmbeddedServletContainerException
{
// Do nothing
// Do nothing
};
};
...
...
spring-boot/src/main/java/org/springframework/boot/liquibase/LiquibaseServiceLocatorInitializer.java
View file @
64f32893
...
@@ -21,8 +21,7 @@ public class LiquibaseServiceLocatorInitializer implements
...
@@ -21,8 +21,7 @@ public class LiquibaseServiceLocatorInitializer implements
ApplicationContextInitializer
<
ConfigurableApplicationContext
>,
ApplicationContextInitializer
<
ConfigurableApplicationContext
>,
SpringApplicationInitializer
{
SpringApplicationInitializer
{
static
final
Log
logger
=
LogFactory
static
final
Log
logger
=
LogFactory
.
getLog
(
LiquibaseServiceLocatorInitializer
.
class
);
.
getLog
(
LiquibaseServiceLocatorInitializer
.
class
);
@Override
@Override
public
void
initialize
(
SpringApplication
springApplication
,
String
[]
args
)
{
public
void
initialize
(
SpringApplication
springApplication
,
String
[]
args
)
{
...
@@ -39,12 +38,12 @@ public class LiquibaseServiceLocatorInitializer implements
...
@@ -39,12 +38,12 @@ public class LiquibaseServiceLocatorInitializer implements
* Inner class to prevent class not found issues
* Inner class to prevent class not found issues
*/
*/
private
static
class
LiquibasePresent
{
private
static
class
LiquibasePresent
{
public
void
replaceServiceLocator
()
{
public
void
replaceServiceLocator
()
{
ServiceLocator
.
setInstance
(
new
CustomResolverServiceLocator
(
ServiceLocator
.
setInstance
(
new
CustomResolverServiceLocator
(
new
SpringPackageScanClassResolver
()));
new
SpringPackageScanClassResolver
()));
}
}
}
}
}
}
spring-boot/src/test/java/org/springframework/boot/config/JacksonParserTests.java
View file @
64f32893
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
package
org
.
springframework
.
boot
.
config
;
package
org
.
springframework
.
boot
.
config
;
/**
/**
* Tests for {@link JsonParser}.
* Tests for {@link JsonParser}.
*
*
...
...
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