Skip to content

Commit 0a49018

Browse files
committed
Bring back trustAllPackages for ActiveMQ tests
1 parent e14a0ce commit 0a49018

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-integration-jms/src/test/java/org/springframework/integration/jms/ActiveMQMultiContextTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535
*/
3636
public abstract class ActiveMQMultiContextTests {
3737

38-
protected static final ConnectionFactory amqFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
38+
protected static final ActiveMQConnectionFactory amqFactory =
39+
new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
3940

4041
protected static final CachingConnectionFactory connectionFactory = new CachingConnectionFactory(
4142
amqFactory);
4243

4344
@BeforeClass
4445
public static void startUp() throws Exception {
46+
amqFactory.setTrustAllPackages(true);
4547
connectionFactory.setCacheConsumers(false);
4648
connectionFactory.createConnection().close();
4749
}

0 commit comments

Comments
 (0)