qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aidan Skinner <aidan.skin...@gmail.com>
Subject Re: Creating Java unit tests with VM broker
Date Tue, 10 Nov 2009 02:08:22 GMT
On Mon, Nov 9, 2009 at 12:32 PM, Tomas LukoŇ°ius <lutomas@gmail.com> wrote:

> I would like to run my JUnit tests without explicitly starting QPID server
> (similar as ActiveMQ tests are configured using VM transport -
> vm://localhost).
> Is there any documentation how to use VM broker for JUnit tests.

There isn't really anything you'd call documentation for that, no.
Your best bet is to extend QpidTestCase from systests/ and use
getConnection() - if you don't specify a broker SystemProperty you'll
get a VM broker connection from that.

- Aidan

Apache Qpid - AMQP, JMS, other messaging love http://qpid.apache.org
"A witty saying proves nothing" - Voltaire

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message