public class ActiveObjectsTestResource extends Object
Constructor and Description |
---|
ActiveObjectsTestResource(com.atlassian.activeobjects.external.ActiveObjects ao,
com.atlassian.sal.api.transaction.TransactionTemplate template,
SpaceManager spaceManager,
UserAccessor userAccessor) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createAccount() |
javax.ws.rs.core.Response |
createAccount(BankAccount bankAccount) |
void |
deleteAccount(String ids,
Boolean throwException) |
javax.ws.rs.core.Response |
flushEntityManager() |
javax.ws.rs.core.Response |
gc() |
javax.ws.rs.core.Response |
getAccount(Integer id) |
javax.ws.rs.core.Response |
testSpaceCreationIsRolledBackInNestedTransaction() |
javax.ws.rs.core.Response |
testTransfer(Integer fromId,
Integer toId,
Integer amount,
Boolean throwException) |
javax.ws.rs.core.Response |
testTransferWithExceptionOutsideAO(Integer fromId,
Integer toId,
Integer amount) |
public ActiveObjectsTestResource(com.atlassian.activeobjects.external.ActiveObjects ao, com.atlassian.sal.api.transaction.TransactionTemplate template, SpaceManager spaceManager, UserAccessor userAccessor)
public javax.ws.rs.core.Response testTransfer(Integer fromId, Integer toId, Integer amount, Boolean throwException)
public javax.ws.rs.core.Response testTransferWithExceptionOutsideAO(Integer fromId, Integer toId, Integer amount)
public javax.ws.rs.core.Response flushEntityManager()
public javax.ws.rs.core.Response gc()
public javax.ws.rs.core.Response testSpaceCreationIsRolledBackInNestedTransaction()
public javax.ws.rs.core.Response createAccount(BankAccount bankAccount)
public javax.ws.rs.core.Response createAccount()
public javax.ws.rs.core.Response getAccount(Integer id)
Copyright © 2003–2017 Atlassian. All rights reserved.