Service Interface:
public List<UserAccount> getUserAccounts(); public List<UserAccount> getUserAccounts(ResultsetOptions resultsetOptions, List<SortOption> sortOptions);
Service implementation:
public List<UserAccount> getUserAccounts() { return getUserAccounts(null, null); } public List<UserAccount> getUserAccounts(ResultsetOptions resultsetOptions, List<SortOption> sortOptions) { return getUserAccountDAO().getUserAccounts(resultsetOptions, sortOptions); }
How can I test this with easymock or any other viable testing methodology? Sample code will be appreciated. For a light layout of passing objects as parameters is very confusing. Does someone clearly explain what is best for testing service levels? Will the test service interface be considered a unit test or an integration test?
kneethan
source share