Esempio n. 1
0
 @Test(expected = RuntimeException.class)
 public void verifyException() {
   doThrow(new RuntimeException()).when(service).operationOne();
   app.operationOne();
 }
Esempio n. 2
0
 @Test
 public void verifySimpleCall() {
   app.operationOne();
   verify(service).operationOne();
 }