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
50c07d07
Commit
50c07d07
authored
Feb 21, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-12156
parent
75505c78
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
9 additions
and
33 deletions
+9
-33
AbstractEndpointDocumentationTests.java
...web/documentation/AbstractEndpointDocumentationTests.java
+1
-1
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+3
-3
DurationFormat.java
...java/org/springframework/boot/convert/DurationFormat.java
+1
-1
ProfileToLoadDocumentMatcher.java
...pringframework/boot/env/ProfileToLoadDocumentMatcher.java
+3
-2
XADataSourceWrapper.java
...va/org/springframework/boot/jdbc/XADataSourceWrapper.java
+1
-1
DelimitedStringToArrayConverterTests.java
...rk/boot/convert/DelimitedStringToArrayConverterTests.java
+0
-5
DelimitedStringToCollectionConverterTests.java
...ot/convert/DelimitedStringToCollectionConverterTests.java
+0
-5
DurationToNumberConverterTests.java
...ramework/boot/convert/DurationToNumberConverterTests.java
+0
-5
DurationToStringConverterTests.java
...ramework/boot/convert/DurationToStringConverterTests.java
+0
-5
NumberToDurationConverterTests.java
...ramework/boot/convert/NumberToDurationConverterTests.java
+0
-5
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/AbstractEndpointDocumentationTests.java
View file @
50c07d07
...
...
@@ -58,7 +58,7 @@ import static org.springframework.restdocs.payload.PayloadDocumentation.fieldWit
@TestPropertySource
(
properties
=
{
"spring.jackson.serialization.indent_output=true"
,
"management.endpoints.web.exposure.include=*"
,
"spring.jackson.default-property-inclusion=non_null"
})
public
class
AbstractEndpointDocumentationTests
{
public
abstract
class
AbstractEndpointDocumentationTests
{
protected
String
describeEnumValues
(
Class
<?
extends
Enum
<?>>
enumType
)
{
return
StringUtils
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
50c07d07
...
...
@@ -2653,7 +2653,7 @@ Spring WebFlux provides a `WebFilter` interface that can be implemented to filte
request-response exchanges. `WebFilter` beans found in the application context will
be automatically used to filter each exchange.
Where the order of the filters is important they can implement
ed
`Ordered` or be annotated
Where the order of the filters is important they can implement `Ordered` or be annotated
with `@Order`. Spring Boot auto-configuration may configure web filters for you. When it
does so, the orders shown in the following table will be used:
...
...
@@ -5721,8 +5721,8 @@ The following example shows how to inject `ConnectionFactory` instances:
[[boot-features-jta-supporting-alternative-embedded]]
=== Supporting an Alternative Embedded Transaction Manager
The {sc-spring-boot}/j
ta
/XAConnectionFactoryWrapper.{sc-ext}[`XAConnectionFactoryWrapper`]
and {sc-spring-boot}/j
ta
/XADataSourceWrapper.{sc-ext}[`XADataSourceWrapper`] interfaces
The {sc-spring-boot}/j
ms
/XAConnectionFactoryWrapper.{sc-ext}[`XAConnectionFactoryWrapper`]
and {sc-spring-boot}/j
dbc
/XADataSourceWrapper.{sc-ext}[`XADataSourceWrapper`] interfaces
can be used to support alternative embedded transaction managers. The interfaces are
responsible for wrapping `XAConnectionFactory` and `XADataSource` beans and exposing them
as regular `ConnectionFactory` and `DataSource` beans, which transparently enroll in the
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/DurationFormat.java
View file @
50c07d07
...
...
@@ -24,7 +24,7 @@ import java.lang.annotation.Target;
import
java.time.Duration
;
/**
* Annotation that can be used to indi
v
ate the format to use when converting a
* Annotation that can be used to indi
c
ate the format to use when converting a
* {@link Duration}.
*
* @author Phillip Webb
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ProfileToLoadDocumentMatcher.java
View file @
50c07d07
...
...
@@ -36,14 +36,15 @@ class ProfileToLoadDocumentMatcher extends SpringProfilesDocumentMatcher {
@Override
protected
boolean
matches
(
String
[]
profiles
)
{
String
[]
positiveProfiles
=
(
profiles
==
null
?
null
:
Arrays
.
stream
(
profiles
)
.
filter
(
this
::
isPositveProfile
).
toArray
(
String
[]::
new
));
.
filter
(
this
::
isPosit
i
veProfile
).
toArray
(
String
[]::
new
));
if
(
this
.
profile
==
null
)
{
return
ObjectUtils
.
isEmpty
(
positiveProfiles
);
}
return
ObjectUtils
.
containsElement
(
positiveProfiles
,
this
.
profile
);
}
private
boolean
isPositveProfile
(
String
profile
)
{
private
boolean
isPosit
i
veProfile
(
String
profile
)
{
return
!
profile
.
startsWith
(
"!"
);
}
}
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/XADataSourceWrapper.java
View file @
50c07d07
...
...
@@ -21,7 +21,7 @@ import javax.sql.XADataSource;
import
javax.transaction.TransactionManager
;
/**
* Strategy interface used to wrap a
JMS
{@link XADataSource} enrolling it with a JTA
* Strategy interface used to wrap a
n
{@link XADataSource} enrolling it with a JTA
* {@link TransactionManager}.
*
* @author Phillip Webb
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DelimitedStringToArrayConverterTests.java
View file @
50c07d07
...
...
@@ -19,9 +19,7 @@ package org.springframework.boot.convert;
import
java.util.LinkedList
;
import
java.util.List
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
...
...
@@ -48,9 +46,6 @@ public class DelimitedStringToArrayConverterTests {
this
.
conversionService
=
conversionService
;
}
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
@Test
public
void
canConvertFromStringToArrayShouldReturnTrue
()
{
assertThat
(
this
.
conversionService
.
canConvert
(
String
.
class
,
String
[].
class
))
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DelimitedStringToCollectionConverterTests.java
View file @
50c07d07
...
...
@@ -20,9 +20,7 @@ import java.util.Collection;
import
java.util.LinkedList
;
import
java.util.List
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
...
...
@@ -49,9 +47,6 @@ public class DelimitedStringToCollectionConverterTests {
this
.
conversionService
=
conversionService
;
}
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
@Test
public
void
canConvertFromStringToCollectionShouldReturnTrue
()
{
assertThat
(
this
.
conversionService
.
canConvert
(
String
.
class
,
Collection
.
class
))
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DurationToNumberConverterTests.java
View file @
50c07d07
...
...
@@ -19,9 +19,7 @@ package org.springframework.boot.convert;
import
java.time.Duration
;
import
java.time.temporal.ChronoUnit
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
...
...
@@ -39,9 +37,6 @@ import static org.assertj.core.api.Assertions.assertThat;
@RunWith
(
Parameterized
.
class
)
public
class
DurationToNumberConverterTests
{
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
private
final
ConversionService
conversionService
;
public
DurationToNumberConverterTests
(
String
name
,
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/DurationToStringConverterTests.java
View file @
50c07d07
...
...
@@ -19,9 +19,7 @@ package org.springframework.boot.convert;
import
java.time.Duration
;
import
java.time.temporal.ChronoUnit
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
...
...
@@ -39,9 +37,6 @@ import static org.assertj.core.api.Assertions.assertThat;
@RunWith
(
Parameterized
.
class
)
public
class
DurationToStringConverterTests
{
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
private
final
ConversionService
conversionService
;
public
DurationToStringConverterTests
(
String
name
,
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/NumberToDurationConverterTests.java
View file @
50c07d07
...
...
@@ -20,9 +20,7 @@ import java.time.Duration;
import
java.time.temporal.ChronoUnit
;
import
java.util.Collections
;
import
org.junit.Rule
;
import
org.junit.Test
;
import
org.junit.rules.ExpectedException
;
import
org.junit.runner.RunWith
;
import
org.junit.runners.Parameterized
;
import
org.junit.runners.Parameterized.Parameters
;
...
...
@@ -43,9 +41,6 @@ import static org.mockito.Mockito.mock;
@RunWith
(
Parameterized
.
class
)
public
class
NumberToDurationConverterTests
{
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
private
final
ConversionService
conversionService
;
public
NumberToDurationConverterTests
(
String
name
,
...
...
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