ALF-4229 - fix TransactionServiceImplTest.testReadOnlyTxn

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21700 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-08-10 10:34:57 +00:00
parent 420caeac25
commit f487d6b4ba

View File

@@ -149,7 +149,13 @@ public class TransactionServiceImplTest extends TestCase
} }
catch (TransientDataAccessResourceException e) catch (TransientDataAccessResourceException e)
{ {
// or this // or this - for MySQL (java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed.)
@SuppressWarnings("unused")
int i = 0;
}
catch (IllegalStateException e)
{
// or this - for MS SQLServer, DB2, Oracle (via AbstractNodeDAOImpl.getCurrentTransaction)
@SuppressWarnings("unused") @SuppressWarnings("unused")
int i = 0; int i = 0;
} }