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
c95b339f
Commit
c95b339f
authored
Aug 20, 2018
by
Johnny Lim
Committed by
Stephane Nicoll
Aug 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-14149
parent
84901fa5
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
19 additions
and
19 deletions
+19
-19
JpaRepositoriesAutoConfiguration.java
...oconfigure/data/jpa/JpaRepositoriesAutoConfiguration.java
+1
-1
JpaRepositoriesAutoConfigurationTests.java
...igure/data/jpa/JpaRepositoriesAutoConfigurationTests.java
+3
-3
TaskSchedulingAutoConfigurationTests.java
...oconfigure/task/TaskSchedulingAutoConfigurationTests.java
+3
-3
DataLdapTestPropertiesIntegrationTests.java
...ure/data/ldap/DataLdapTestPropertiesIntegrationTests.java
+1
-1
DataMongoTestPropertiesIntegrationTests.java
...e/data/mongo/DataMongoTestPropertiesIntegrationTests.java
+1
-1
DataNeo4jTestPropertiesIntegrationTests.java
...e/data/neo4j/DataNeo4jTestPropertiesIntegrationTests.java
+1
-1
DataRedisTestPropertiesIntegrationTests.java
...e/data/redis/DataRedisTestPropertiesIntegrationTests.java
+1
-1
JdbcTestPropertiesIntegrationTests.java
...utoconfigure/jdbc/JdbcTestPropertiesIntegrationTests.java
+1
-1
JooqTestPropertiesIntegrationTests.java
...utoconfigure/jooq/JooqTestPropertiesIntegrationTests.java
+1
-1
JsonTestPropertiesIntegrationTests.java
...utoconfigure/json/JsonTestPropertiesIntegrationTests.java
+1
-1
DataJpaTestPropertiesIntegrationTests.java
...figure/orm/jpa/DataJpaTestPropertiesIntegrationTests.java
+1
-1
RestClientTestPropertiesIntegrationTests.java
.../web/client/RestClientTestPropertiesIntegrationTests.java
+1
-1
WebFluxTestPropertiesIntegrationTests.java
...e/web/reactive/WebFluxTestPropertiesIntegrationTests.java
+1
-1
WebMvcTestPropertiesIntegrationTests.java
...ure/web/servlet/WebMvcTestPropertiesIntegrationTests.java
+1
-1
SampleOAuth2ClientApplicationTests.java
...ple/oauth2/client/SampleOAuth2ClientApplicationTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/jpa/JpaRepositoriesAutoConfiguration.java
View file @
c95b339f
...
@@ -71,7 +71,7 @@ public class JpaRepositoriesAutoConfiguration {
...
@@ -71,7 +71,7 @@ public class JpaRepositoriesAutoConfiguration {
@Bean
@Bean
@Conditional
(
BootstrapExecutorCondition
.
class
)
@Conditional
(
BootstrapExecutorCondition
.
class
)
public
EntityManagerFactoryBuilderCustomizer
entityManagerFactoryBoostrapExecutorCustomizer
(
public
EntityManagerFactoryBuilderCustomizer
entityManagerFactoryBoo
t
strapExecutorCustomizer
(
ObjectProvider
<
AsyncTaskExecutor
>
taskExecutor
)
{
ObjectProvider
<
AsyncTaskExecutor
>
taskExecutor
)
{
return
(
builder
)
->
builder
.
setBootstrapExecutor
(
taskExecutor
.
getIfAvailable
());
return
(
builder
)
->
builder
.
setBootstrapExecutor
(
taskExecutor
.
getIfAvailable
());
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/jpa/JpaRepositoriesAutoConfigurationTests.java
View file @
c95b339f
...
@@ -87,7 +87,7 @@ public class JpaRepositoriesAutoConfigurationTests {
...
@@ -87,7 +87,7 @@ public class JpaRepositoriesAutoConfigurationTests {
}
}
@Test
@Test
public
void
whenBootstrappingModeIsLazyBoostrapExecutorIsConfigured
()
{
public
void
whenBootstrappingModeIsLazyBoo
t
strapExecutorIsConfigured
()
{
this
.
contextRunner
.
withUserConfiguration
(
TestConfiguration
.
class
)
this
.
contextRunner
.
withUserConfiguration
(
TestConfiguration
.
class
)
.
withPropertyValues
(
"spring.data.jpa.repositories.bootstrap-mode=lazy"
)
.
withPropertyValues
(
"spring.data.jpa.repositories.bootstrap-mode=lazy"
)
.
run
((
context
)
->
assertThat
(
.
run
((
context
)
->
assertThat
(
...
@@ -96,7 +96,7 @@ public class JpaRepositoriesAutoConfigurationTests {
...
@@ -96,7 +96,7 @@ public class JpaRepositoriesAutoConfigurationTests {
}
}
@Test
@Test
public
void
whenBootstrappingModeIsDeferredBoostrapExecutorIsConfigured
()
{
public
void
whenBootstrappingModeIsDeferredBoo
t
strapExecutorIsConfigured
()
{
this
.
contextRunner
.
withUserConfiguration
(
TestConfiguration
.
class
)
this
.
contextRunner
.
withUserConfiguration
(
TestConfiguration
.
class
)
.
withPropertyValues
(
.
withPropertyValues
(
"spring.data.jpa.repositories.bootstrap-mode=deferred"
)
"spring.data.jpa.repositories.bootstrap-mode=deferred"
)
...
@@ -106,7 +106,7 @@ public class JpaRepositoriesAutoConfigurationTests {
...
@@ -106,7 +106,7 @@ public class JpaRepositoriesAutoConfigurationTests {
}
}
@Test
@Test
public
void
whenBootstrappingModeIsDefaultBoostrapExecutorIsNotConfigured
()
{
public
void
whenBootstrappingModeIsDefaultBoo
t
strapExecutorIsNotConfigured
()
{
this
.
contextRunner
.
withUserConfiguration
(
TestConfiguration
.
class
)
this
.
contextRunner
.
withUserConfiguration
(
TestConfiguration
.
class
)
.
withPropertyValues
(
"spring.data.jpa.repositories.bootstrap-mode=default"
)
.
withPropertyValues
(
"spring.data.jpa.repositories.bootstrap-mode=default"
)
.
run
((
context
)
->
assertThat
(
.
run
((
context
)
->
assertThat
(
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/task/TaskSchedulingAutoConfigurationTests.java
View file @
c95b339f
...
@@ -54,7 +54,7 @@ public class TaskSchedulingAutoConfigurationTests {
...
@@ -54,7 +54,7 @@ public class TaskSchedulingAutoConfigurationTests {
}
}
@Test
@Test
public
void
enableSchedulingWithNoTakExecutorAutoConfiguresOne
()
{
public
void
enableSchedulingWithNoTa
s
kExecutorAutoConfiguresOne
()
{
this
.
contextRunner
this
.
contextRunner
.
withPropertyValues
(
.
withPropertyValues
(
"spring.task.scheduling.thread-name-prefix=scheduling-test-"
)
"spring.task.scheduling.thread-name-prefix=scheduling-test-"
)
...
@@ -68,7 +68,7 @@ public class TaskSchedulingAutoConfigurationTests {
...
@@ -68,7 +68,7 @@ public class TaskSchedulingAutoConfigurationTests {
}
}
@Test
@Test
public
void
enableSchedulingWithNoTakExecutorAppliesCustomizers
()
{
public
void
enableSchedulingWithNoTa
s
kExecutorAppliesCustomizers
()
{
this
.
contextRunner
this
.
contextRunner
.
withPropertyValues
(
.
withPropertyValues
(
"spring.task.scheduling.thread-name-prefix=scheduling-test-"
)
"spring.task.scheduling.thread-name-prefix=scheduling-test-"
)
...
@@ -84,7 +84,7 @@ public class TaskSchedulingAutoConfigurationTests {
...
@@ -84,7 +84,7 @@ public class TaskSchedulingAutoConfigurationTests {
}
}
@Test
@Test
public
void
enableSchedulingWithExistingTakSchedulerBacksOff
()
{
public
void
enableSchedulingWithExistingTa
s
kSchedulerBacksOff
()
{
this
.
contextRunner
.
withUserConfiguration
(
SchedulingConfiguration
.
class
,
this
.
contextRunner
.
withUserConfiguration
(
SchedulingConfiguration
.
class
,
TaskSchedulerConfiguration
.
class
).
run
((
context
)
->
{
TaskSchedulerConfiguration
.
class
).
run
((
context
)
->
{
assertThat
(
context
).
hasSingleBean
(
TaskScheduler
.
class
);
assertThat
(
context
).
hasSingleBean
(
TaskScheduler
.
class
);
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/ldap/DataLdapTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class DataLdapTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class DataLdapTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/mongo/DataMongoTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class DataMongoTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class DataMongoTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -49,7 +49,7 @@ public class DataNeo4jTestPropertiesIntegrationTests {
...
@@ -49,7 +49,7 @@ public class DataNeo4jTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/redis/DataRedisTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -49,7 +49,7 @@ public class DataRedisTestPropertiesIntegrationTests {
...
@@ -49,7 +49,7 @@ public class DataRedisTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jdbc/JdbcTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class JdbcTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class JdbcTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/jooq/JooqTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class JooqTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class JooqTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/json/JsonTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class JsonTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class JsonTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class DataJpaTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class DataJpaTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/client/RestClientTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class RestClientTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class RestClientTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/WebFluxTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class WebFluxTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class WebFluxTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTestPropertiesIntegrationTests.java
View file @
c95b339f
...
@@ -39,7 +39,7 @@ public class WebMvcTestPropertiesIntegrationTests {
...
@@ -39,7 +39,7 @@ public class WebMvcTestPropertiesIntegrationTests {
private
Environment
environment
;
private
Environment
environment
;
@Test
@Test
public
void
environmentWitNewProfile
()
{
public
void
environmentWit
h
NewProfile
()
{
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
String
profile
=
this
.
environment
.
getActiveProfiles
()[
0
];
assertThat
(
profile
).
isEqualTo
(
"test"
);
assertThat
(
profile
).
isEqualTo
(
"test"
);
}
}
...
...
spring-boot-samples/spring-boot-sample-oauth2-client/src/test/java/sample/oauth2/client/SampleOAuth2ClientApplicationTests.java
View file @
c95b339f
...
@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
...
@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest
(
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
properties
=
{
@SpringBootTest
(
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
,
properties
=
{
"APP-CLIENT-ID=my-client-id"
,
"APP-CLIENT-SECRET=my-client-secret"
,
"APP-CLIENT-ID=my-client-id"
,
"APP-CLIENT-SECRET=my-client-secret"
,
"YAHOO-CLIENT-ID=my-yahoo-client-id"
,
"YAHOO-CLIENT-ID=my-yahoo-client-id"
,
"YAHOO-CLIENT-SECRET=my-yahoo
o
-client-secret"
})
"YAHOO-CLIENT-SECRET=my-yahoo-client-secret"
})
public
class
SampleOAuth2ClientApplicationTests
{
public
class
SampleOAuth2ClientApplicationTests
{
@LocalServerPort
@LocalServerPort
...
...
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