Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #13: Injection of Provider #14

Merged
merged 4 commits into from
Jul 18, 2018

Conversation

jmesnil
Copy link
Contributor

@jmesnil jmesnil commented Jul 18, 2018

Fix injection of Provider to return a value lazily evaluated.
Add ProviderTest to verify the behaviour

Issue: #13

* Use default values for injected collection if the property is not
  configured.
* add testsuite/extra module to provide tests in addition to the ones
  from the MicroProfile Config TCK
* add CollectionWithConfiguredValueTest & CollectionWithDefaultValueTest
  to verify the expected behaviour
* move tck module under testsuite
This aligns their behaviour with primitive array.
However, MicroProfile Config specification is not clear on this
behaviour and there is discussion about it at
eclipse/microprofile-config#376

This fix ensures at least a consistent behaviour between primitive
arrays and Collections.
Fix injection of Provider to return a value lazily evaluated.
Add ProviderTest to verify the behaviour

Issue: smallrye#13
@jmesnil
Copy link
Contributor Author

jmesnil commented Jul 18, 2018

@smallrye/config this PR contains the same commit than #10 as it contains the code that created the extra test suite.

#10 should be merged before that one so that only the commit
fd28a6b is merged by this PR.

@kenfinnigan kenfinnigan merged commit e0b30f3 into smallrye:master Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants