@Test(expected = UnexpectedInvocation.class) public void verifyAllInvocationsToInheritedMethods_whenNotVerified(final SubDependency mock2) { mock2.prepare(); mock2.getValue(); new FullVerifications(1, mock2) { { mock2.getValue(); } }; }
@Test(expected = UnexpectedInvocation.class) public void verifyAllInvocationsToMethodsOfBaseClassAndOfSubclass_whenInheritedMethodNotVerified( final SubDependency mock2) { mock2.prepare(); mock2.getValue(); new FullVerificationsInOrder(mock2) { { mock2.getValue(); } }; }
@Test public void verifyAllInvocationsToMethodsOfBaseClassAndOfSubclass(final SubDependency mock2) { mock2.prepare(); mock2.getValue(); new FullVerifications(mock2) { { mock2.prepare(); mock2.getValue(); } }; }