mirror of https://github.com/apache/activemq.git
fix amqp karaf test and re-enable tests in CI
This commit is contained in:
parent
97b0619b26
commit
f0cb95c792
|
@ -236,9 +236,6 @@
|
|||
on this information to PAX mvn url
|
||||
-->
|
||||
<argLine>-Dorg.ops4j.pax.url.mvn.localRepository=${maven.repo.local}</argLine>
|
||||
<excludes>
|
||||
<exclude>**/*Test.*</exclude>
|
||||
</excludes>
|
||||
<systemPropertyVariables>
|
||||
<activemqVersion>${project.version}</activemqVersion>
|
||||
<karafVersion>${karaf-version}</karafVersion>
|
||||
|
|
|
@ -27,6 +27,10 @@ import org.ops4j.pax.exam.CoreOptions;
|
|||
import org.ops4j.pax.exam.Option;
|
||||
import org.ops4j.pax.exam.junit.PaxExam;
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
@RunWith(PaxExam.class)
|
||||
public class ActiveMQAMQPBrokerFeatureTest extends ActiveMQBrokerFeatureTest {
|
||||
private static final Integer AMQP_PORT = 61636;
|
||||
|
@ -49,6 +53,15 @@ public class ActiveMQAMQPBrokerFeatureTest extends ActiveMQBrokerFeatureTest {
|
|||
@Override
|
||||
protected Connection getConnection() throws Throwable {
|
||||
|
||||
withinReason(new Callable<Boolean>() {
|
||||
@Override
|
||||
public Boolean call() throws Exception {
|
||||
assertTrue("qpid jms client bundle installed", verifyBundleInstalled("qpid-jms-client"));
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
String amqpURI = "amqp://localhost:" + AMQP_PORT;
|
||||
JmsConnectionFactory factory = new JmsConnectionFactory(amqpURI);
|
||||
|
||||
|
|
Loading…
Reference in New Issue