{"id":15567048,"url":"https://github.com/toolisticon/camel-spring-boot-testutils","last_synced_at":"2026-05-18T02:03:44.529Z","repository":{"id":57736349,"uuid":"112382348","full_name":"toolisticon/camel-spring-boot-testutils","owner":"toolisticon","description":"Apache Camel Springboot Test Utils","archived":false,"fork":false,"pushed_at":"2023-12-15T17:41:20.000Z","size":78,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-11T19:24:02.657Z","etag":null,"topics":["camel","springboot","testing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toolisticon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-28T19:56:06.000Z","updated_at":"2022-06-02T14:43:57.000Z","dependencies_parsed_at":"2024-01-11T20:42:06.640Z","dependency_job_id":"a72606da-b6bf-43ff-a9a3-4fa7109e05bd","html_url":"https://github.com/toolisticon/camel-spring-boot-testutils","commit_stats":{"total_commits":34,"total_committers":4,"mean_commits":8.5,"dds":0.5,"last_synced_commit":"969343256901867129199bf968ceab59358abab6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/toolisticon/camel-spring-boot-testutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolisticon%2Fcamel-spring-boot-testutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolisticon%2Fcamel-spring-boot-testutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolisticon%2Fcamel-spring-boot-testutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolisticon%2Fcamel-spring-boot-testutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolisticon","download_url":"https://codeload.github.com/toolisticon/camel-spring-boot-testutils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolisticon%2Fcamel-spring-boot-testutils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camel","springboot","testing"],"created_at":"2024-10-02T17:09:48.719Z","updated_at":"2026-05-18T02:03:44.511Z","avatar_url":"https://github.com/toolisticon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Camel Springboot Test Utils\n\n[![unmaintained](https://img.shields.io/badge/lifecycle-UNMAINTAINED-red.svg)](https://github.com/holisticon#unmaintained)\n[![Build Status](https://travis-ci.org/toolisticon/camel-spring-boot-testutils.svg?branch=master)](https://travis-ci.org/toolisticon/camel-spring-boot-testutils)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.camel/camel-spring-boot-test-rule/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.toolisticon.camel/camel-spring-boot-test-rule)\n[![codecov](https://codecov.io/gh/toolisticon/camel-spring-boot-testutils/branch/master/graph/badge.svg)](https://codecov.io/gh/toolisticon/camel-spring-boot-testutils)\n\nThis projects supplies a small library making testing of Apache Camel components easier. \n\n## Installation and requirements\n\nMinimal tested version:\n\n- Apache Camel 2.20.1\n- Springboot 1.5.8-RELEASE\n\nPut the following dependency to your Maven POM file:\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003eio.toolisticon.camel\u003c/groupId\u003e\n      \u003cartifactId\u003ecamel-spring-boot-test-rule\u003c/artifactId\u003e\n      \u003cversion\u003e0.0.3\u003c/version\u003e\n      \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n\n## Features\n\n### Test rule\n\nThere is a lot written about Camel Spring Testing, but all approaches are based on inheritance (`SpringTestSupport`)\nor using a special runner (`CamelSpringBootRunner`). There are good reasons for doing so, but if you are not able to do so,\nfor example using a different runner , you may use the supplied JUnit test rule for this:\n\n    ...\n    import org.springframework.test.context.junit4.rules.CamelSpringClassRule;\n    import org.springframework.test.context.junit4.rules.SpringMethodRule;\n  \n  \n    @SpringBootTest\n    public class SimpleRuleTest {\n    \n        @ClassRule\n        public static final CamelSpringClassRule springClassRule = new CamelSpringClassRule();\n    \n        @Rule\n        public final SpringMethodRule springMethodRule = new SpringMethodRule();\n  \n        @Autowired\n        private CamelContext camelContext;\n    \n        @Test\n        @DirtiesContext\n        public void testMe() throws Exception {\n          // do something with camelContext here\n        }\n    } \n      \n### ExcludeRoutes\n\nThere is a standard annotation in Camel-Spring to exclude routes `org.apache.camel.test.spring.ExcludeRoutes`. This is not \nworking using a standard Springboot test. If you use this library, the support is restored. Just annotate\nthe `org.apache.camel.test.spring.ExcludeRoutes` to your test class containing the `CamelSpringClassRule`\nand list the excluded route classes.\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolisticon%2Fcamel-spring-boot-testutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoolisticon%2Fcamel-spring-boot-testutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolisticon%2Fcamel-spring-boot-testutils/lists"}