Guest User

Untitled

a guest
Jun 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class DbGatewayContractTest extends GatewayContract {
  2. Gateway createGatewayReturningNoItem() {
  3. return new DbGateway(createDaoReturningNoItem());
  4. }
  5.  
  6. Dao createDaoReturningNoItem() {
  7. return new Dao() {
  8. public BusinessObject find() {
  9. return null; // I make an assumption about how Dao signals "no item"
  10. }
  11. };
  12. }
  13. }
Add Comment
Please, Sign In to add comment