Class RollbackTransactionResource
java.lang.Object
com.atlassian.bamboo.plugins.testutils.rest.resource.RollbackTransactionResource
@Path("rollback")
@Consumes("application/json")
@Produces("application/json")
@Singleton
public class RollbackTransactionResource
extends Object
Resource to allow tests to cause rollbacks
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
setMethodToRollback
(RestRollback rollback) Mark an event so the next time it is fired it will cause a transaction rollback.
-
Field Details
-
ROLLBACK_EVENTS
-
-
Constructor Details
-
RollbackTransactionResource
@Inject public RollbackTransactionResource()
-
-
Method Details
-
setMethodToRollback
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:
-