Home
last modified time | relevance | path

Searched refs:barMock (Results 1 – 2 of 2) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationForAnnotationTest.java36 @Mock(serializable=true) Bar barMock; field in MocksSerializationForAnnotationTest
46 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()
DMocksSerializationTest.java49 Bar barMock = mock(Bar.class, withSettings().serializable()); in should_allow_method_delegation() local
51 when(barMock.doSomething()).thenAnswer(new ThrowsException(new RuntimeException())); in should_allow_method_delegation()
54 serializeAndBack(barMock); in should_allow_method_delegation()