mirror of https://github.com/apache/activemq.git
[AMQ-8511] Minor fix for amqp unit tests to help w/ CI build consistency (#780)
This commit is contained in:
parent
4715a01877
commit
e522feaad8
|
@ -100,7 +100,6 @@ public class AmqpTestSupport {
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
LOG.info("========== start " + getTestName() + " ==========");
|
LOG.info("========== start " + getTestName() + " ==========");
|
||||||
System.setProperty("org.apache.activemq.SERIALIZABLE_PACKAGES", "java.util");
|
|
||||||
exceptions.clear();
|
exceptions.clear();
|
||||||
|
|
||||||
startBroker();
|
startBroker();
|
||||||
|
@ -356,7 +355,10 @@ public class AmqpTestSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(openwireURI);
|
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(openwireURI);
|
||||||
|
List<String> trustedPackages = new ArrayList<>();
|
||||||
|
trustedPackages.addAll(factory.getTrustedPackages());
|
||||||
|
trustedPackages.add("java.util");
|
||||||
|
factory.setTrustedPackages(trustedPackages);
|
||||||
return factory.createConnection();
|
return factory.createConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue