mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -149,7 +149,13 @@ public class TransactionServiceImplTest extends TestCase
|
||||
}
|
||||
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")
|
||||
int i = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user