Skip to content

Commit

Permalink
Bring back trustAllPackages for ActiveMQ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Dec 9, 2020
1 parent e14a0ce commit 0a49018
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -35,13 +35,15 @@
*/
public abstract class ActiveMQMultiContextTests {

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

protected static final CachingConnectionFactory connectionFactory = new CachingConnectionFactory(
amqFactory);

@BeforeClass
public static void startUp() throws Exception {
amqFactory.setTrustAllPackages(true);
connectionFactory.setCacheConsumers(false);
connectionFactory.createConnection().close();
}
Expand Down

0 comments on commit 0a49018

Please sign in to comment.