@Test public void invocationOnCollaboratorIsIgnored() { exp.handleAssertionErrors().expect(AssertionError.class); collaborating.collaborateWithCollaborator(); }
@Test public void testThrowAssertionError() { Function<Object, Void> f = Functions.throwAssertionError(); thrown.handleAssertionErrors(); thrown.expect(AssertionError.class); f.apply("ignored"); } }