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
b68382f3
Commit
b68382f3
authored
Jun 26, 2015
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
4f072f40
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
9 deletions
+6
-9
EndpointHandlerMapping.java
...ork/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java
+1
-0
HealthMvcEndpointTests.java
...ork/boot/actuate/endpoint/mvc/HealthMvcEndpointTests.java
+1
-0
IntegrationTestPropertiesListener.java
...ramework/boot/test/IntegrationTestPropertiesListener.java
+1
-1
AnsiOutputTests.java
...t/java/org/springframework/boot/ansi/AnsiOutputTests.java
+2
-7
AbstractEmbeddedServletContainerFactoryTests.java
...mbedded/AbstractEmbeddedServletContainerFactoryTests.java
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java
View file @
b68382f3
...
@@ -107,6 +107,7 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
...
@@ -107,6 +107,7 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping impleme
}
}
@Override
@Override
@Deprecated
protected
void
registerHandlerMethod
(
Object
handler
,
Method
method
,
protected
void
registerHandlerMethod
(
Object
handler
,
Method
method
,
RequestMappingInfo
mapping
)
{
RequestMappingInfo
mapping
)
{
if
(
mapping
==
null
)
{
if
(
mapping
==
null
)
{
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HealthMvcEndpointTests.java
View file @
b68382f3
...
@@ -205,4 +205,5 @@ public class HealthMvcEndpointTests {
...
@@ -205,4 +205,5 @@ public class HealthMvcEndpointTests {
Health
health
=
((
ResponseEntity
<
Health
>)
result
).
getBody
();
Health
health
=
((
ResponseEntity
<
Health
>)
result
).
getBody
();
assertTrue
(
health
.
getStatus
()
==
Status
.
DOWN
);
assertTrue
(
health
.
getStatus
()
==
Status
.
DOWN
);
}
}
}
}
spring-boot/src/main/java/org/springframework/boot/test/IntegrationTestPropertiesListener.java
View file @
b68382f3
...
@@ -37,7 +37,7 @@ public class IntegrationTestPropertiesListener extends AbstractTestExecutionList
...
@@ -37,7 +37,7 @@ public class IntegrationTestPropertiesListener extends AbstractTestExecutionList
public
void
prepareTestInstance
(
TestContext
testContext
)
throws
Exception
{
public
void
prepareTestInstance
(
TestContext
testContext
)
throws
Exception
{
Class
<?>
testClass
=
testContext
.
getTestClass
();
Class
<?>
testClass
=
testContext
.
getTestClass
();
AnnotationAttributes
annotationAttributes
=
AnnotatedElementUtils
AnnotationAttributes
annotationAttributes
=
AnnotatedElementUtils
.
getAnnotationAttributes
(
testClass
,
IntegrationTest
.
class
.
getName
());
.
get
Merged
AnnotationAttributes
(
testClass
,
IntegrationTest
.
class
.
getName
());
if
(
annotationAttributes
!=
null
)
{
if
(
annotationAttributes
!=
null
)
{
addPropertySourceProperties
(
testContext
,
addPropertySourceProperties
(
testContext
,
annotationAttributes
.
getStringArray
(
"value"
));
annotationAttributes
.
getStringArray
(
"value"
));
...
...
spring-boot/src/test/java/org/springframework/boot/ansi/AnsiOutputTests.java
View file @
b68382f3
...
@@ -23,11 +23,6 @@ import org.springframework.boot.ansi.AnsiOutput.Enabled;
...
@@ -23,11 +23,6 @@ import org.springframework.boot.ansi.AnsiOutput.Enabled;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
springframework
.
boot
.
ansi
.
AnsiElement
.
BOLD
;
import
static
org
.
springframework
.
boot
.
ansi
.
AnsiElement
.
FAINT
;
import
static
org
.
springframework
.
boot
.
ansi
.
AnsiElement
.
GREEN
;
import
static
org
.
springframework
.
boot
.
ansi
.
AnsiElement
.
NORMAL
;
import
static
org
.
springframework
.
boot
.
ansi
.
AnsiElement
.
RED
;
/**
/**
* Tests for {@link AnsiOutput}.
* Tests for {@link AnsiOutput}.
...
@@ -48,8 +43,8 @@ public class AnsiOutputTests {
...
@@ -48,8 +43,8 @@ public class AnsiOutputTests {
@Test
@Test
public
void
encoding
()
throws
Exception
{
public
void
encoding
()
throws
Exception
{
String
encoded
=
AnsiOutput
.
toString
(
"A"
,
RED
,
BOLD
,
"B"
,
NORMAL
,
"D"
,
GREEN
,
String
encoded
=
AnsiOutput
.
toString
(
"A"
,
AnsiColor
.
RED
,
AnsiStyle
.
BOLD
,
"B"
,
"E"
,
FAINT
,
"F"
);
AnsiStyle
.
NORMAL
,
"D"
,
AnsiColor
.
GREEN
,
"E"
,
AnsiStyle
.
FAINT
,
"F"
);
assertThat
(
encoded
,
equalTo
(
"A[31;1mB[0mD[32mE[2mF[0;39m"
));
assertThat
(
encoded
,
equalTo
(
"A[31;1mB[0mD[32mE[2mF[0;39m"
));
}
}
...
...
spring-boot/src/test/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactoryTests.java
View file @
b68382f3
...
@@ -37,9 +37,9 @@ import javax.servlet.ServletResponse;
...
@@ -37,9 +37,9 @@ import javax.servlet.ServletResponse;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.client.HttpClient
;
import
org.apache.http.conn.ssl.SSLConnectionSocketFactory
;
import
org.apache.http.conn.ssl.SSLConnectionSocketFactory
;
import
org.apache.http.conn.ssl.SSLContextBuilder
;
import
org.apache.http.conn.ssl.TrustSelfSignedStrategy
;
import
org.apache.http.conn.ssl.TrustSelfSignedStrategy
;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.impl.client.HttpClients
;
import
org.apache.http.ssl.SSLContextBuilder
;
import
org.junit.After
;
import
org.junit.After
;
import
org.junit.Rule
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.Test
;
...
...
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