From a4d451484bae8eeb3a87d9179d6c01d43ae46668 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 23 May 2017 00:10:15 +0200 Subject: [PATCH] Hacking activemq --- pom.xml | 2 +- .../stubrunner/messaging/camel/CamelStubRunnerSpec.groovy | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 336635a65d..f177e695db 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ Chelsea.BUILD-SNAPSHOT 1.3.1.BUILD-SNAPSHOT 1.2.1.BUILD-SNAPSHOT - 1.2.1.BUILD-SNAPSHOT + 1.2.2.BUILD-SNAPSHOT diff --git a/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy b/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy index 65209fbfc8..8c6c525c5b 100644 --- a/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy +++ b/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy @@ -173,7 +173,12 @@ class CamelStubRunnerSpec extends Specification { @Bean ActiveMQConnectionFactory activeMQConnectionFactory(@Value('${activemq.url:vm://localhost?broker.persistent=false}') String url) { - return new ActiveMQConnectionFactory(brokerURL: url, trustAllPackages: true) + ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(brokerURL: url) + try { + factory.trustAllPackages = true + } catch (Throwable e) { + } + return factory } @Bean