Hi all,
@Test
public void testMethod() throws Exception
{
try {
ContextClass ctx = new ContextClass();
Processor processor = Mockito.mock(processor.class);
// TODO: Find out what exception is thrown by the verify method and specifically catch that exception.
Mockito.verify(processor).process(ctx);
} catch(Exception ex) {
}
}
Above code throws the following error
[ERROR] unreported exception java.lang.Throwable; must be caught or declared to be thrown.
Any idea how could this issue be solved ?
Best,
Naveed