Searched refs:NaughtyException (Results 1 – 1 of 1) sorted by relevance
169 when(mock.add(null)).thenThrow(NaughtyException.class); in shouldInstantiateExceptionClassOnInteraction()171 exception.expect(NaughtyException.class); in shouldInstantiateExceptionClassOnInteraction()178 doThrow(NaughtyException.class).when(mock).add(null); in shouldInstantiateExceptionClassWithOngoingStubbingOnInteraction()180 exception.expect(NaughtyException.class); in shouldInstantiateExceptionClassWithOngoingStubbingOnInteraction()398 public class NaughtyException extends RuntimeException { class in StubbingWithThrowablesTest399 public NaughtyException() { in NaughtyException() method in StubbingWithThrowablesTest.NaughtyException