Search in sources :

Example 1 with Sender

use of amqp.v100.ptp.transacted.retirement.commit.Sender in project swiftmq-ce by iitsoftware.

the class Suite method suite.

public static Test suite() {
    int nPairs = Integer.parseInt(System.getProperty("npairs", "10"));
    int nSubscribers = Integer.parseInt(System.getProperty("nsubscribers", "10"));
    TestSuite suite = new Suite();
    for (int i = 0; i < nPairs; i++) {
        for (int j = 0; j < nSubscribers; j++) suite.addTest(new Receiver("receive", QoS.AT_MOST_ONCE, Util.getTopicNamePrefix() + (i + 1), "test-" + i + "-" + j));
        suite.addTest(new Sender("send", QoS.AT_MOST_ONCE, Util.getTopicNamePrefix() + (i + 1)));
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Sender(amqp.v100.ps.one_to_n.durable.dedicatedsession.Sender) TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Receiver(amqp.v100.ps.one_to_n.durable.dedicatedsession.Receiver)

Example 2 with Sender

use of amqp.v100.ptp.transacted.retirement.commit.Sender in project swiftmq-ce by iitsoftware.

the class Suite method suite.

public static Test suite() {
    int nPairs = Integer.parseInt(System.getProperty("npairs", "10"));
    TestSuite suite = new Suite();
    for (int i = 0; i < nPairs; i++) {
        suite.addTest(new Receiver("receive", QoS.AT_MOST_ONCE, Util.getQueueNamePrefix() + (i + 1)));
        suite.addTest(new Sender("send", QoS.AT_MOST_ONCE, Util.getQueueNamePrefix() + (i + 1)));
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Sender(amqp.v100.ptp.dedicatedsession.Sender) TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Receiver(amqp.v100.ptp.dedicatedsession.Receiver)

Example 3 with Sender

use of amqp.v100.ptp.transacted.retirement.commit.Sender in project swiftmq-ce by iitsoftware.

the class Suite method suite.

public static Test suite() {
    int nPairs = Integer.parseInt(System.getProperty("npairs", "10"));
    TestSuite suite = new Suite();
    for (int i = 0; i < nPairs; i++) {
        suite.addTest(new Receiver("receive", QoS.AT_LEAST_ONCE, Util.getQueueNamePrefix() + (i + 1)));
        suite.addTest(new Sender("send", QoS.AT_LEAST_ONCE, Util.getQueueNamePrefix() + (i + 1)));
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Sender(amqp.v100.ptp.transacted.acquisition.commit.Sender) TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Receiver(amqp.v100.ptp.transacted.acquisition.commit.Receiver)

Example 4 with Sender

use of amqp.v100.ptp.transacted.retirement.commit.Sender in project swiftmq-ce by iitsoftware.

the class Suite method suite.

public static Test suite() {
    int nPairs = Integer.parseInt(System.getProperty("npairs", "10"));
    TestSuite suite = new Suite();
    for (int i = 0; i < nPairs; i++) {
        suite.addTest(new Receiver("receive", QoS.EXACTLY_ONCE, Util.getQueueNamePrefix() + (i + 1)));
        suite.addTest(new Sender("send", QoS.EXACTLY_ONCE, Util.getQueueNamePrefix() + (i + 1)));
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Sender(amqp.v100.ptp.transacted.acquisition.commit.Sender) TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Receiver(amqp.v100.ptp.transacted.acquisition.commit.Receiver)

Example 5 with Sender

use of amqp.v100.ptp.transacted.retirement.commit.Sender in project swiftmq-ce by iitsoftware.

the class Suite method suite.

public static Test suite() {
    int nPairs = Integer.parseInt(System.getProperty("npairs", "10"));
    TestSuite suite = new Suite();
    for (int i = 0; i < nPairs; i++) {
        suite.addTest(new Receiver("receive", QoS.AT_LEAST_ONCE, Util.getQueueNamePrefix() + (i + 1)));
        suite.addTest(new Sender("send", QoS.AT_LEAST_ONCE, Util.getQueueNamePrefix() + (i + 1)));
    }
    return suite;
}
Also used : TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Sender(amqp.v100.ptp.transacted.acquisition.rollback.Sender) TestSuite(junit.framework.TestSuite) ActiveTestSuite(junit.extensions.ActiveTestSuite) Receiver(amqp.v100.ptp.transacted.acquisition.rollback.Receiver)

Aggregations

ActiveTestSuite (junit.extensions.ActiveTestSuite)20 TestSuite (junit.framework.TestSuite)20 Receiver (amqp.v100.ps.one_to_n.durable.dedicatedsession.Receiver)3 Sender (amqp.v100.ps.one_to_n.durable.dedicatedsession.Sender)3 Receiver (amqp.v100.ps.one_to_n.non_durable.dedicatedsession.Receiver)3 Sender (amqp.v100.ps.one_to_n.non_durable.dedicatedsession.Sender)3 Receiver (amqp.v100.ptp.dedicatedsession.Receiver)3 Sender (amqp.v100.ptp.dedicatedsession.Sender)3 Receiver (amqp.v100.ptp.singlesession.Receiver)3 Sender (amqp.v100.ptp.singlesession.Sender)3 Connection (com.swiftmq.amqp.v100.client.Connection)3 Session (com.swiftmq.amqp.v100.client.Session)3 CountDownLatch (java.util.concurrent.CountDownLatch)3 Receiver (amqp.v100.ptp.transacted.acquisition.commit.Receiver)2 Sender (amqp.v100.ptp.transacted.acquisition.commit.Sender)2 Receiver (amqp.v100.ptp.transacted.acquisition.rollback.Receiver)2 Sender (amqp.v100.ptp.transacted.acquisition.rollback.Sender)2 Receiver (amqp.v100.ptp.transacted.retirement.commit.Receiver)2 Sender (amqp.v100.ptp.transacted.retirement.commit.Sender)2 Receiver (amqp.v100.ptp.transacted.retirement.rollback.Receiver)2