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

CamelTestSupport style of testing #3511

Closed
ppalaga opened this issue Feb 2, 2022 · 1 comment · Fixed by #3847
Closed

CamelTestSupport style of testing #3511

ppalaga opened this issue Feb 2, 2022 · 1 comment · Fixed by #3847
Assignees
Labels
documentation Improvements or additions to documentation test
Milestone

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Feb 2, 2022

Based on the demand heart in #1981 and elsewhere, we should provide a way for testing in the CamelTestSupport way known from other Camel runtimes.

This may include at least the following:

  1. Offer our own CamelTestSupport class overriding createCamelContext() override, so that end users do not need to copy it over and over again:
@QuarkusTest
public class TransactedTest extends CamelTestSupport {
    @Inject
    CamelContext context;

    @Override
    protected CamelContext createCamelContext() throws Exception {
        return this.context;
    }
}
  1. We should have a couple of tests of this kind to both test that it works and for demo purposes.
  2. We should document this kind of testing (including the warning that it would not work in native mode).
@aldettinger
Copy link
Contributor

aldettinger commented Jun 2, 2022

Some users reported that demonstrating injection of MockEndpoint in a route, usage of AdviceWith and NotifyBuilder would be of interest. They see those camel tests as complement for integration tests, not replacement.

@JiriOndrusek JiriOndrusek self-assigned this Jun 8, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 13, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 13, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 13, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 14, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 15, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 21, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 21, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 21, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 22, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 22, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 22, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 22, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jun 23, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 4, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 7, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 7, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 7, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 8, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 11, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 11, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 15, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 15, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 15, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 15, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 15, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 20, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 21, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 21, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 25, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Jul 28, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 8, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 8, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 8, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 8, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 9, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 9, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 9, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 9, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 9, 2022
JiriOndrusek added a commit to JiriOndrusek/camel-quarkus that referenced this issue Aug 10, 2022
@jamesnetherton jamesnetherton added this to the 2.12.0 milestone Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants