SHARE
TWEET

Untitled

a guest Aug 1st, 2013 24 Never
  1. for (element <- table.find;
  2.      Right(info) = exceptionManager(mapper.getInfoFromDbObject(element)))
  3. yield info
  4.        
  5. val table = mock[TableClass]
  6. when(table find) thenReturn Iterator(new ModelObject(1), new ModelObject(2))
RAW Paste Data
Top