com.atlassian.confluence.activeobjects
Class AOTestHelper

java.lang.Object
  extended by com.atlassian.confluence.activeobjects.AOTestHelper

public class AOTestHelper
extends Object


Constructor Summary
AOTestHelper(com.sun.jersey.api.client.WebResource webresource)
           
 
Method Summary
 void assertAccountsUnchanged(JSONObject... accounts)
           
 void assertNotFound(Integer id)
           
 JSONObject createAccount()
           
 void deleteAccount(int... ids)
           
 String fetchAccount(int id)
           
 void transfer(JSONObject fromAccount, JSONObject toAccount, int amount, Boolean throwException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AOTestHelper

public AOTestHelper(com.sun.jersey.api.client.WebResource webresource)
Method Detail

fetchAccount

public String fetchAccount(int id)

assertAccountsUnchanged

public void assertAccountsUnchanged(JSONObject... accounts)
                             throws Exception
Throws:
Exception

createAccount

public JSONObject createAccount()
                         throws Exception
Throws:
Exception

deleteAccount

public void deleteAccount(int... ids)
                   throws Exception
Throws:
Exception

transfer

public void transfer(JSONObject fromAccount,
                     JSONObject toAccount,
                     int amount,
                     Boolean throwException)
              throws Exception
Throws:
Exception

assertNotFound

public void assertNotFound(Integer id)


Copyright © 2003-2013 Atlassian. All Rights Reserved.