-
Notifications
You must be signed in to change notification settings - Fork 2
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
Merge config.properties and application.properties #76
Conversation
1a19f09
to
07dd672
Compare
I have merged config.properties and application.properties into application.yml because I believe YAML is more readable than properties files. If you have a different opinion, I'd be happy to discuss it. In the tests, I refactored configuration.properties to application.properties because it is not possible to convert it to YAML. The TestFormGenPersistenceFactory and TestPersistenceFactory classes use the annotation The solution might be to create a base test class with the @SpringBootTest annotation to easily load YAML configuration files. I tried this, but I encountered many errors related to the inability to create some beans and load a context, etc. Maybe it is a problem for another ticket, to refactor record-manager tests configuration. |
Please use application.yml in tests as well. Have a look here for inspiration: |
9a2ae87
to
9da1d9f
Compare
Since there are issues with the YAML files during testing, I suggest using application.properties in the src/ directory as well. There is no significant difference between .yml and .properties, except for syntax and parsers. Spring generally prefers .properties, especially when working with certain annotations like @propertysource and @TestPropertySource. |
@palagdan I did some investigation, and I came to the conclusion that .yml is a better choice mainly due to readability as we have quite many properties now. On the other hand, it is already implemented here as application.properties, so let's merge it and we will consider it someday later :), after we get rid of Summary of my investigation: Pros:
Cons:
|
9da1d9f
to
7525123
Compare
Resolves #75