Searched refs:barMock (Results 1 – 2 of 2) sorted by relevance
36 @Mock(serializable=true) Bar barMock; field in MocksSerializationForAnnotationTest46 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_throws_exception_to_be_serializable()49 serializeAndBack(barMock); in should_allow_throws_exception_to_be_serializable()
49 Bar barMock = mock(Bar.class, withSettings().serializable()); in should_allow_method_delegation() local51 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_method_delegation()54 serializeAndBack(barMock); in should_allow_method_delegation()