Issue 432 - Example using Spring Boot #540
Open
+2,196
−77
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the preliminary implementation of an example implementation using Spring Boot and Test Containers.
It will successfully execute a
SpringBootTest
using a PostgreSQLContainer and proper initialization of all spring beans.The current implementation uses a standard PostgreSQL docker image (from
http://hub.docker.com/_/postgres) so it does not support PL/Java-specific tests but
there is a separate effort to produce our own docker images that will have PL/Java pre-installed.
(The key limitation is that the pljava shared
library is not preinstalled.)
At this time there are no tests other than a 'happy path' test that shows that the test's autowired
DataSource
is pointing to the TestContainer instance.