Class RollbackTransactionResource
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.rest.resource.RollbackTransactionResource
-
@Singleton public class RollbackTransactionResource extends Object
Resource to allow tests to cause rollbacks
-
-
Field Summary
Fields Modifier and Type Field Description static ConcurrentMap<RollbackEventName,Boolean>
ROLLBACK_EVENTS
-
Constructor Summary
Constructors Constructor Description RollbackTransactionResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
setMethodToRollback(RestRollback rollback)
Mark an event so the next time it is fired it will cause a transaction rollback.
-
-
-
Field Detail
-
ROLLBACK_EVENTS
public static final ConcurrentMap<RollbackEventName,Boolean> ROLLBACK_EVENTS
-
-
Method Detail
-
setMethodToRollback
public javax.ws.rs.core.Response setMethodToRollback(RestRollback rollback)
Mark an event so the next time it is fired it will cause a transaction rollback. Obviously only works for synchronous events- Parameters:
rollback
-- Returns:
-
-