Commit Graph

1644 Commits (9fda7add5cf36fe1df432f57e109f0755bac6f3a)

Author SHA1 Message Date
Andy Wilkinson cffc870fd6 Fix test failures on Windows
Since the move to JUnit 5, a number of tests were failing on Windows.
The majority were failing due to open file handles preventing the
clean up of the tests' temporary directory. This commit addresses
these failures by updating the tests to close JarFiles, InputStreams,
OutputStreams etc.

A change has also been made to CachingOperationInvokerTests to make
a flakey test more robust. Due to System.currentTimeMillis() being
less precise on Windows than it is on *nix platforms, the test could
fail as it would not sleep for long enough for the TTL period to have
expired.
6 years ago
Brian Clozel 7a9d1a1e34 Change default Freemarker template file extension
This commit changes the default file extension for Freemarker templates
from `*.ftl` to `*.ftlh`. This commit also enables by default the
Freemarker setting `"recognize_standard_file_extensions"` to ensure that
HTML escaping is performed by default in Spring Boot applications.

Applications should adapt to this change by changing the file extensions
of existing templates to `.ftlh`.

Closes gh-15131
6 years ago
Madhura Bhave 176aabb487 Merge branch '2.1.x' 6 years ago
Madhura Bhave fa4c433c92 Polish 6 years ago
Phillip Webb b3d5cd538d Add JUnit 5 checkstyle rules
Add a rule to enforce JUnit 5 usage and conventions.

Closes gh-17093
6 years ago
Andy Wilkinson b18fffaf14 Move tests to JUnit 5 wherever possible 6 years ago
Andy Wilkinson aef92b9295 Merge branch '2.1.x'
Closes gh-17079
6 years ago
Andy Wilkinson 24925c3dae Merge branch '2.0.x' into 2.1.x
Closes gh-17078
6 years ago
Phillip Webb db75347eb6 Merge branch '2.1.x' 6 years ago
Phillip Webb 0ef331018e Merge branch '2.0.x' into 2.1.x 6 years ago
Phillip Webb 7fc01971ed Merge branch '1.5.x' into 2.0.x 6 years ago
Phillip Webb d548c5ed31 Fix checkstyle violations 6 years ago
Phillip Webb e161c6f826 Broaden files covered by checkstyle
Closes gh-16682
6 years ago
Phillip Webb e06325e029 Merge branch '2.1.x' 6 years ago
Phillip Webb 930d110178 Merge branch '2.0.x' into 2.1.x 6 years ago
Phillip Webb 90468c4d53 Fix checkstyle violation in OAuth sample 6 years ago
Phillip Webb d306b31ce9 Merge branch '2.1.x' 6 years ago
Phillip Webb ccfbd03482 Merge branch '2.0.x' into 2.1.x 6 years ago
Phillip Webb 80d8a5cfa2 Add nohttp checkstyle rule
Closes gh-16682
6 years ago
Phillip Webb cd537155a9 Use https for Thymeleaf xmlns:layout 6 years ago
Phillip Webb a99131f727 Polish resource files to all end with a new line 6 years ago
Phillip Webb 5fba43aa31 Merge branch '1.5.x' into 2.0.x 6 years ago
Phillip Webb e61f7a33a7 Add nohttp checkstyle rule
Closes gh-16682
6 years ago
Phillip Webb 0049f1985c Use https for Thymeleaf xmlns:layout 6 years ago
Phillip Webb 32068c21a3 Polish resource files to all end with a new line 6 years ago
Brian Clozel c74badd4f2 Auto-configure Elasticsearch REST client in Spring Data
This commit auto-configures the Elasticsearch REST client support
as a template for Spring Data Elasticsearch. As of this commit,
using the transport client is still possible but developers
should migrate.

This commit also removes the deprecated annotation on the
Elasticsearch auto-configuration for the transport client, since
this deprecation notice is already present on the configuration
property.

Closes gh-17024
Closes gh-16542
6 years ago
Andy Wilkinson 0644a79401 Repackage output capture and always use extension declaratively
Closes gh-17029
6 years ago
Phillip Webb d11d5ceb29 Split up JUnit 5 OutputCapture class
Split the JUnit 5 `OutputCapture` class into separate `OutputExtension`
and `CapturedOutput` classes. The JUnit 5 callback methods are now
contained only in the `OutputExtension` class so no longer pollute the
public API that users will interact with.

The `CapturedOutput` class has also been updated to capture System.err
and System.out separately to allow distinct assertions if required.

Closes gh-17029
6 years ago
Andy Wilkinson 080a2f5c3b Align with Framework’s removal of charset attribute from application/json
Closes gh-16979
6 years ago
Phillip Webb 3a9ca5fa30 Update copyright header of changed files 6 years ago
Stephane Nicoll 6b3c15a858 Fixup version numbers following release 6 years ago
Spring Buildmaster 67fa63d0e3 Next Development Version 6 years ago
Stephane Nicoll b7700ed094 Improve reliability of kafka sample integration test 6 years ago
Stephane Nicoll 1c3a91883d Remove reference to spring.datasource.jmx-enabled
This commits moves the single use of that property to the already
existing Tomcat-specific one.

Closes gh-16673
6 years ago
Stephane Nicoll fd0c773939 Increase timeout for Kafka sample 6 years ago
Stephane Nicoll fddc8bd8ef Create Kafka sample topic 6 years ago
Stephane Nicoll 81af0f2fa6 Explicitly include JUnit 4 in test starter
Closes gh-16807
6 years ago
Stephane Nicoll 1de6f68238 Document that JUnit 5 is the default
See gh-14736
6 years ago
Madhura Bhave 1db1c8b03c Validate our own tests work with JUnit5 and the vintage engine
Closes gh-14737

Co-authored-by: Stephane Nicoll <snicoll@pivotal.io>
6 years ago
Phillip Webb 83889188c2 Revert accidental TomcatSample changes 6 years ago
Phillip Webb 2dfd916c96 Polish 6 years ago
Vedran Pavic bbaa98175f Upgrade to Hazelcast 3.12
Closes gh-16503
6 years ago
Madhura Bhave ce0282406f Skip lazy init for beans that explicitly set lazy to false
This commit also adds tests to ensure that the child
management context works when lazy initialization is
enabled. Also, it adds a BeanFactoryPostProcessor to
the child context so that the server is created and
listening for requests but other beans in the child
context are not created until requested.

See gh-16184
6 years ago
Phillip Webb ddbfb2530d Update copyright header of changed files 6 years ago
Phillip Webb ad7eebee9e Merge branch '2.1.x' 6 years ago
Phillip Webb f12ab1ff90 Update copyright header of changed files 6 years ago
Stephane Nicoll 0d256da068 Fixup version numbers following release 6 years ago
Spring Buildmaster ca3a864565 Next Development Version 6 years ago
Phillip Webb f25469c95f Update formatting with spring-javaformat 0.0.9
See gh-16421
6 years ago
Phillip Webb cae6a82322 Upgrade to spring-javaformat 0.0.9
Closes gh-16421
6 years ago