We should seperate our tests into unit and integration tests.
The integration tests are dominatingly the tests that uses test containers.
This can be done by
- maven surefire plugin phase test (unit test) and verify (integration)
- naming test classes as *Test.java (unit test) and *IT.java (integration)
The naming is important as its the surefire plugin that is configured the run tests in those two phases where it filters by name - source code are in the same src/test/java folder.
So we can start by trying this on one camel component first
- rename the tests
- make surefire plugin run test vs verify phase accordingly (may need to configure in some parent/root pom)
And then review and then repeat for the other components.