[libpostgresql-jdbc-java] 97/128: Added fail condition in test case to detect if the expected exception is not thrown.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:18:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to annotated tag REL9_3_1100
in repository libpostgresql-jdbc-java.

commit a7e52f1ccab99ebdd0f2e4a88b8b8557a4200e9a
Author: Jeremy Whiting <whitingjr at hotmail.com>
Date:   Mon Aug 19 14:34:30 2013 +0100

    Added fail condition in test case to detect if the expected exception is not thrown.
---
 org/postgresql/test/xa/XADataSourceTest.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/org/postgresql/test/xa/XADataSourceTest.java b/org/postgresql/test/xa/XADataSourceTest.java
index 097f9d1..731c3ca 100644
--- a/org/postgresql/test/xa/XADataSourceTest.java
+++ b/org/postgresql/test/xa/XADataSourceTest.java
@@ -339,6 +339,7 @@ public class XADataSourceTest extends TestCase {
         try
         {
         	xaRes.rollback(xid);
+		fail("Rollback was successful");
         }
         catch (XAException xae)
         {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list