Foundation:type-converter:tests - refactor the quick fix which is result of CAMEL-20051
- Dominant language
- Java
- Stars
- 302
- Forks
- 232
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 114
Description
### Bug description
Change https://github.com/apache/camel/commit/7c104aaaff93a930cb2b26bb85ae848d9e8d2af3 brought caching of the fallback converters.
Our tests in foundation - ttype-coverter uses fallback converters for several test methods with different converters for the same class in each method.
1 - #1 method caches converter#1 for type A
2 - #2 method converts type A with converter#2, but gets converter#1, which fails the assertion.
Quick fix introduces QuarkusTestProfiles, to force camel context to be restarted is part of `camel-main`.
Better fix would be the refactor of the methods to use different types for fallback methods, which would avoid the caching issue.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.