-3

When I invoke the functions method from a Test class, I want the executeSol method not to run because it causes me errors.

public String funciones(String arguments){
    //Many operations . . . 
    animalInterface.executeSol(integer id, String msg); <-- void 
  return soluciones;
}

1 Answers1

0

Check out this link, https://gist.github.com/mariuszs/7489190 There is a great example on how to test for an exception. This was asked previously. Mockito How to mock and assert a thrown exception?

Jacob
  • 17
  • 1
  • 6