fix amqp karaf test and re-enable tests in CI

This commit is contained in:
Dejan Bosanac 2015-06-24 14:20:10 +02:00
parent 97b0619b26
commit f0cb95c792
2 changed files with 13 additions and 3 deletions

View File

@ -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>

View File

@ -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);