... | ... | @@ -19,4 +19,10 @@ To ensure forms have a `_csrf` field, either make sure the form uses `th:action` |
|
|
##### Where?
|
|
|
Usually in Queue, during the first start-up.
|
|
|
##### Solution:
|
|
|
There is a setting in `application.yaml` called `test-connection` in the `mail` section. Make sure this is set to `false`. |
|
|
\ No newline at end of file |
|
|
There is a setting in `application.yaml` called `test-connection` in the `mail` section. Make sure this is set to `false`.
|
|
|
|
|
|
## Pipeline/Build failure when using view assertions
|
|
|
##### Where?
|
|
|
In Queue. When writing an assertion about the expected view, you might get <error/500> instead. Occasionally, the wrong spring context is initialized.
|
|
|
##### Solution:
|
|
|
Add `@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)` to the top of the test class to 'refresh' the Application Context. |
|
|
\ No newline at end of file |