Skip to content

Commit 6467e99

Browse files
author
Rob Harrop
committed
Merge with default
2 parents a5a75b8 + 930166d commit 6467e99

File tree

10 files changed

+348
-509
lines changed

10 files changed

+348
-509
lines changed

test/src/com/rabbitmq/client/test/functional/AlternateExchange.java

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,6 @@ protected void cleanup() throws IOException {
111111
}
112112
}
113113

114-
protected void publish(String key, boolean mandatory, boolean immediate)
115-
throws IOException {
116-
channel.basicPublish("x", key, mandatory, immediate, null,
117-
"ae-test".getBytes());
118-
}
119-
120-
protected void publish(String key) throws IOException {
121-
publish(key, false, false);
122-
}
123-
124114
/**
125115
* Perform an auto-acking 'basic.get' on each of the queues named
126116
* in {@link #resources} and check whether a message can be
@@ -161,7 +151,8 @@ protected void check(String key, boolean mandatory, boolean immediate,
161151
throws IOException {
162152

163153
gotReturn.set(false);
164-
publish(key, mandatory, immediate);
154+
channel.basicPublish("x", key, mandatory, immediate, null,
155+
"ae-test".getBytes());
165156
checkGet(expected);
166157
assertEquals(ret, gotReturn.get());
167158
}
@@ -212,19 +203,6 @@ public void testAe() throws IOException {
212203
check(k, false, true, unrouted, true);
213204
}
214205

215-
//tx
216-
channel.txSelect();
217-
for (String k : keys) {
218-
publish(k);
219-
checkGet(unrouted);
220-
channel.txRollback();
221-
checkGet(unrouted);
222-
publish(k);
223-
checkGet(unrouted);
224-
channel.txCommit();
225-
checkGet(expected(k));
226-
}
227-
228206
cleanup();
229207
}
230208

test/src/com/rabbitmq/client/test/functional/Confirm.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ public void testBasicRecover()
187187
public void testSelect()
188188
throws IOException
189189
{
190+
channel.confirmSelect();
190191
try {
191192
Channel ch = connection.createChannel();
192193
ch.confirmSelect();
@@ -203,9 +204,6 @@ public void testSelect()
203204
} catch (IOException ioe) {
204205
checkShutdownSignal(AMQP.PRECONDITION_FAILED, ioe);
205206
}
206-
Channel ch = connection.createChannel();
207-
ch.confirmSelect();
208-
ch.confirmSelect();
209207
}
210208

211209
/* Publish NUM_MESSAGES messages and wait for confirmations. */

test/src/com/rabbitmq/client/test/functional/FunctionalTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public static TestSuite suite() {
3333
suite.addTestSuite(Recover.class);
3434
suite.addTestSuite(Reject.class);
3535
suite.addTestSuite(Transactions.class);
36-
suite.addTestSuite(PersistentTransactions.class);
3736
suite.addTestSuite(RequeueOnConnectionClose.class);
3837
suite.addTestSuite(RequeueOnChannelClose.class);
3938
suite.addTestSuite(DurableOnTransient.class);

test/src/com/rabbitmq/client/test/functional/PersistentTransactions.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)