Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 1st, 2013  |  syntax: None  |  size: 0.22 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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))
clone this paste RAW Paste Data