Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DbGatewayContractTest extends GatewayContract {
- Gateway createGatewayReturningNoItem() {
- return new DbGateway(createDaoReturningNoItem());
- }
- Dao createDaoReturningNoItem() {
- return new Dao() {
- public BusinessObject find() {
- return null; // I make an assumption about how Dao signals "no item"
- }
- };
- }
- }
Add Comment
Please, Sign In to add comment