Commit Graph

50613 Commits

Author SHA1 Message Date
Stephane Nicoll
18ba414000 Add test helper to manipulate the ApplicationContext
This commit adds ContextLoader, a test helper that configures an
ApplicationContext that is meant to simulate a particular
auto-configuration scenario.

The auto-configuration, user configuration and environment can be
customized. The loader invokes a ContextConsumer to assert the context
and automatically close the context once it is done.

Concretely, tests can create a shared field instance of that helper with
the shared configuration to increase its visibility and tune the context
further in each test.

If the context is expected to fail, `loadAndFail` allows to optionally
assert the root exception and consume it for further assertions.

This commit also migrates some tests to illustrate the practical use of
the helper

Closes gh-9634
2017-06-29 15:34:10 +02:00
Andy Wilkinson
216c5c2179 Set executable permission on Gradle-built archives that include launch script
Closes gh-9632
2017-06-29 12:45:58 +01:00
Stephane Nicoll
8bfd6e890c Merge pull request #9633 from ZhijunZhao:starter
* pr/9633:
  Add GitHub link for Azure Spring Boot Starters
2017-06-29 10:35:45 +02:00
Zhijun Zhao
715442601c Add GitHub link for Azure Spring Boot Starters
Closes gh-9633
2017-06-29 10:35:21 +02:00
Stephane Nicoll
fd045f0e2f Merge branch '1.5.x' 2017-06-29 10:00:16 +02:00
Stephane Nicoll
7f8a8ba115 Properly handle null package
Closes gh-9621
2017-06-29 09:59:50 +02:00
Stephane Nicoll
41e6037173 Merge pull request #9628 from satamas:master
* pr/9628:
  Polish "Narrow the event types ConfigFileApplicationListener supports"
  Narrow the event types ConfigFileApplicationListener supports
2017-06-29 09:57:58 +02:00
Stephane Nicoll
26b27d41e7 Polish "Narrow the event types ConfigFileApplicationListener supports"
Closes gh-9628
2017-06-29 09:57:41 +02:00
satamas
d26857289c Narrow the event types ConfigFileApplicationListener supports
See gh-9628
2017-06-29 09:29:44 +02:00
Stephane Nicoll
e52a328396 Merge branch '1.5.x' 2017-06-29 09:21:02 +02:00
Stephane Nicoll
c75d78a61a Merge pull request #9629 from htynkn:feature/disable-trimStackTrace
* pr/9629:
  Disable trimStackTrace in surefire plugin
2017-06-29 09:20:51 +02:00
Yunkun Huang
eb299b95c2 Disable trimStackTrace in surefire plugin
Closes gh-9629
2017-06-29 09:20:07 +02:00
Stephane Nicoll
88553ed6f4 Upgrade to build-helper-maven-plugin 3.0.0
Closes gh-9619
2017-06-28 15:23:52 +02:00
Stephane Nicoll
2892039ccd Better tests for datasource initialization
See gh-9528
2017-06-28 10:48:47 +02:00
Stephane Nicoll
4e19c47e78 Fix wrong assertion 2017-06-28 10:31:14 +02:00
Stephane Nicoll
1ba0df99b2 Polish 2017-06-28 09:40:31 +02:00
Madhura Bhave
acaef9c95a Make origin aware system property source
Closes gh-9252
2017-06-27 12:26:30 -07:00
Stephane Nicoll
7275c8795e Merge branch '1.5.x' 2017-06-27 16:59:29 +02:00
Stephane Nicoll
90112559bf Expand doc on @MockBean usage
Closes gh-9609
2017-06-27 16:59:16 +02:00
Stephane Nicoll
531c0708c1 Merge branch '1.5.x' 2017-06-27 16:49:38 +02:00
Stephane Nicoll
d8d156bd1b Improve documentation on EnvironmentPostProcessor
Closes gh-9617
2017-06-27 16:49:14 +02:00
Stephane Nicoll
557361c9e0 Properly set redis password for Cluster and Sentinel config
Closes gh-9583
2017-06-27 15:47:07 +02:00
Stephane Nicoll
1a839d6656 Remove useless cluster check 2017-06-27 15:23:36 +02:00
Stephane Nicoll
1b181b2f34 Upgrade to Tomcat 8.5.16
This commit uses the replacement for deprecated APIs in 8.5.16 to ease
a forward compatibility with Tomcat 9

Closes gh-9611
2017-06-27 14:38:02 +02:00
Andy Wilkinson
88c770486c Merge branch '1.5.x' 2017-06-27 12:03:05 +01:00
Andy Wilkinson
606bc77da0 Upgrade to Tomcat 8.5.16
Closes gh-9611
2017-06-27 11:58:59 +01:00
Stephane Nicoll
e3a9d7647d Merge branch '1.5.x' 2017-06-27 08:53:57 +02:00
Stephane Nicoll
f54f2bc315 Merge pull request #9585 from dsyer:feature/appengine
* pr/9585:
  Add short docs on using Google App Engine
2017-06-27 08:53:43 +02:00
Dave Syer
21f616f853 Add short docs on using Google App Engine
Now that Google actually supports arbitrary docker container
execution in app engine, we can provide some more guidance
on how to use it in the "deployment" section.

Closes gh-9585
2017-06-27 08:53:22 +02:00
Stephane Nicoll
bc81d0a08b Merge pull request #9610 from izeye:polish-20170627
* pr/9610:
  Polish
2017-06-27 08:51:37 +02:00
Johnny Lim
533c418ad4 Polish
Closes gh-9610
2017-06-27 08:51:11 +02:00
Stephane Nicoll
74a71b01ad Merge pull request #9608 from izeye:patch-22
* pr/9608:
  Remove redundant hash code for the same field
2017-06-27 08:41:09 +02:00
Johnny Lim
4dee630d36 Remove redundant hash code for the same field
Closes gh-9608
2017-06-27 08:40:50 +02:00
Madhura Bhave
4c29a8cfa2 Fix NPE in NettyWebServer stop
Fixes gh-9542
2017-06-26 14:27:30 -07:00
Andy Wilkinson
9dfa6a8f6a Start building against Spring Security OAuth snapshots
Closes gh-9589
2017-06-26 19:44:42 +01:00
Andy Wilkinson
5a4ef50ef1 Adapt to API changes in Spring Data Commons 2017-06-26 17:21:14 +01:00
Stephane Nicoll
c99a222759 Merge branch '1.5.x' 2017-06-26 17:47:09 +02:00
Stephane Nicoll
85c7643638 Remove use of 'javax.annotation.Resource'
This commit removes the only use of the `javax.annotation.Resource`
annotation from the codebase. This ensures that injection point are
only defined with Spring's annotation model.

Closes gh-9441
2017-06-26 17:46:46 +02:00
Stephane Nicoll
8ea38d1cbe Merge branch '1.5.x' 2017-06-26 13:37:18 +02:00
Stephane Nicoll
58a1ed19a9 Polish 2017-06-26 13:36:57 +02:00
Stephane Nicoll
88d16ddf6b Add missing class check
Closes gh-9602
2017-06-26 13:36:34 +02:00
Andy Wilkinson
a1ab994e70 Actually build against Spring Security 5.0 snapshots
See gh-9603
2017-06-26 10:30:57 +01:00
Andy Wilkinson
9579500cc7 Start building against Spring Security snapshots
See gh-9603
2017-06-26 10:18:56 +01:00
Stephane Nicoll
352ccbbd9b Merge pull request #9557 from espiegelberg:master
* pr/9557:
  Polish "Add health indicator for Neo4j"
  Add health indicator for Neo4j
  Remove dead code
  Add missing whitespace in log
2017-06-26 11:06:46 +02:00
Stephane Nicoll
01272fa0cc Polish "Add health indicator for Neo4j"
Closes gh-9557
2017-06-26 11:04:34 +02:00
Eric Spiegelberg
4c97dcb53a Add health indicator for Neo4j
See gh-9557
2017-06-26 10:31:02 +02:00
Stephane Nicoll
3b0cbea682 Remove dead code 2017-06-26 10:31:00 +02:00
Misagh Moayyed
b39c59e97a Add missing whitespace in log
Closes gh-9597
2017-06-26 10:31:00 +02:00
Stephane Nicoll
b465d9d815 Remove dead code 2017-06-26 09:07:07 +02:00
Stephane Nicoll
1b62f664e4 Merge branch '1.5.x' 2017-06-26 08:49:32 +02:00