Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
New Camel JUnit Test Case
Name
New Camel JUnit Test Case — Configures the JUnit artifacts created to test a Apache Camel route.
Properties
					Table A.5 describes the properties you can specify.
				
| Name | Default | Description | 
|---|---|---|
| Source Folder | project/src/test/java | Specifies the folder into which the JUnit code is placed. | 
| Package | Name of the package when the project was created | Specifies the package name for the JUnit code. | 
| Camel XML file under test | Selected context file, or blank if other than a context file is selected | Specifies the Camel XML file containing the routes to be tested. | 
| Name | classname based on the selected context file (for example, CamelContextXMLTest), or empty if none selected | Specifies the name of the JUnit class. | 
| Method stubs | Specifies the JUnit method stubs to include in the generated test class. | |
| Generate comments | Specifies whether to generate comments in the new test class. | 
Related topics
| Chapter 5, Creating a new Apache Camel JUnit test case |