Skip to content

Commit 8d560a4

Browse files
author
Emile Joubert
committed
Merged bug22771 into default
2 parents 4c8f208 + fd94e65 commit 8d560a4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
package com.rabbitmq.client.test.functional;
3333

34+
import com.rabbitmq.client.AMQP;
3435
import com.rabbitmq.client.test.BrokerTestCase;
3536
import java.io.IOException;
3637

@@ -319,4 +320,27 @@ public void testAckAll()
319320
closeChannel();
320321
}
321322

323+
public void testNonTransactedCommit()
324+
throws IOException
325+
{
326+
openChannel();
327+
try {
328+
txCommit();
329+
fail("Expected channel error");
330+
} catch (IOException e) {
331+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
332+
}
333+
}
334+
335+
public void testNonTransactedRollback()
336+
throws IOException
337+
{
338+
openChannel();
339+
try {
340+
txRollback();
341+
fail("Expected channel error");
342+
} catch (IOException e) {
343+
checkShutdownSignal(AMQP.PRECONDITION_FAILED, e);
344+
}
345+
}
322346
}

0 commit comments

Comments
 (0)