Try this
* in your `log4.properties`:
log4j.logger.org.apache.http=DEBUG
* or if you use Camel with Spring Boot in your `application.properties`:
logging.level.org.apache.http=DEBUG
Am 09.04.2016 um 11:39 schrieb Debraj Manna:
Yeah that is what I am looking for. But I did not find
Instead of annotate your test class with
@RunWith(SpringJUnit4ClassRunner.class)
annotate with
@RunWith(CamelSpringJUnit4ClassRunner.class)
which is the appropriate JUnit runner. See also [1]. You also need to
add this dependency:
Gradle: 'org.apache.camel:camel-test-spring:2.16.2'
But I found out that:
@Value("${myProperty}")
private String filePath;
@Override
public void configure() throws Exception {
String route = "file:"+ filePath + "/?noop=true\"";
from(route) // FILE PATH FROM PROPERTIES
instead of
In [1] they mention only *.properties files - may you give a try. A
related problem is discussed here [2] '@TestPropertySource' ...
[1]
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#boot-features-external-config-profile-specific-properties