monasca-api/java/src/main/java/monasca/api/infrastructure/persistence/mysql
Craig Bryant be0b5874b1 Rollback the transaction if an exception is thrown
The transaction was being left open if a Notification with the
same name and tenant id already existed. This would cause different
views of the MySQL database in a cluster of Monasca APIs

Add tests using Mockito that the transaction is closed and rollback
or commit wsa called when required

Also fix the formatting of previously added code to match the
standards

Change-Id: Iaa4ca1e78dec3c76d139d77a7844b810267fd978
Closes-Bug: #1617097
2016-08-28 21:55:48 -06:00
..
AlarmDefinitionMySqlRepoImpl.java Handle is_deterministic returned as Short or Boolean 2016-06-23 22:18:20 -06:00
AlarmMySqlRepoImpl.java Allow filtering by multiple severities 2016-06-09 10:40:08 -06:00
MySQLUtils.java Allow filtering by multiple severities 2016-06-09 10:40:08 -06:00
NotificationMethodMySqlRepoImpl.java Rollback the transaction if an exception is thrown 2016-08-28 21:55:48 -06:00
NotificationMethodTypesMySqlRepoImpl.java Adds support for notification plugins in monacaapi 2016-08-01 12:49:05 -07:00