[teiid-commits] teiid SVN: r1653 - trunk/test-integration/db/src/main/java/org/teiid/test/framework/query.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Fri Dec 11 17:46:43 EST 2009


Author: vhalbert at redhat.com
Date: 2009-12-11 17:46:42 -0500 (Fri, 11 Dec 2009)
New Revision: 1653

Modified:
   trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java
Log:
Teiid 781 - changes to support running from hudson

Modified: trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java
===================================================================
--- trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java	2009-12-11 22:46:22 UTC (rev 1652)
+++ trunk/test-integration/db/src/main/java/org/teiid/test/framework/query/AbstractQueryTransactionTest.java	2009-12-11 22:46:42 UTC (rev 1653)
@@ -55,6 +55,8 @@
     protected int queryTimeout = -1;
 
     protected ConnectionStrategy connStrategy;
+    
+    private Throwable applicationException=null;
 
     public AbstractQueryTransactionTest() {
 	super();
@@ -156,6 +158,7 @@
     @Override
     public void setup() throws QueryTestFailedException {
 	
+	this.applicationException = null;
 	this.setConnection(connStrategy.getConnection());
 	setupDataStore();
 	
@@ -272,6 +275,30 @@
     @Override
     public XAConnection getXAConnection() {
 	return null;
+	
     }
 
+    @Override
+    public void setApplicationException(Throwable t) {
+	this.applicationException = t;
+	
+    }
+
+    @Override
+    public boolean exceptionOccurred() {
+	return (super.exceptionOccurred() ? super.exceptionOccurred() : this.applicationException != null);
+
+    }
+
+    @Override
+    public Throwable getApplicationException() {
+	// TODO Auto-generated method stub
+	return this.applicationException;
+    }
+
+    
+    
+    
+    
+
 }



More information about the teiid-commits mailing list