Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 327A3180DC for ; Mon, 23 Nov 2015 08:08:11 +0000 (UTC) Received: (qmail 52246 invoked by uid 500); 23 Nov 2015 08:08:11 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 52201 invoked by uid 500); 23 Nov 2015 08:08:11 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 52181 invoked by uid 99); 23 Nov 2015 08:08:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 08:08:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E576D2C14FB for ; Mon, 23 Nov 2015 08:08:10 +0000 (UTC) Date: Mon, 23 Nov 2015 08:08:10 +0000 (UTC) From: "Jonas Stein (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-9350) Improvement of the JUnit-Tests, especially the property handling within a spring-boot project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jonas Stein created CAMEL-9350: ---------------------------------- Summary: Improvement of the JUnit-Tests, especially the property handling within a spring-boot project Key: CAMEL-9350 URL: https://issues.apache.org/jira/browse/CAMEL-9350 Project: Camel Issue Type: Improvement Components: camel-spring-boot, camel-test Affects Versions: 2.16.0 Environment: JDK 1.8-64bit, spring-boot 1.2.7, maven web project in Netbeans IDE on Windows 7 operating system. Reporter: Jonas Stein Currently it is a bit complicated to test webservices, created with camel and spring boot. The main problem is to run up the whole spring/camel context with its configuration. I would like to use some annotations in the test-class and be sure that camel recognized all its routes and properties, also the possibility to use the CamelContextLifecycle would be great. The annotation @PropertySource should also work in JUnit-Tests to inject every property sucessfully into the {{someProperty}} syntax. Last but not least, I rather would be able to use the method whenAnyExchangeReceived of the class MockEndpoint with an exchange object as a parameter, instead of a processor. -- This message was sent by Atlassian JIRA (v6.3.4#6332)