@Test public void testShouldFilterNotLocked() { context.checking(new Expectations() { { allowing(person).isAccountLocked(); will(returnValue(false)); } }); assertFalse(sut.shouldFilter(null, person, null, null)); context.assertIsSatisfied(); }
@Override public boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient, final Map<String, Object> inProperties, final String inNotifierType) { return inRecipient.isAccountLocked(); }
LockedUserRecipientFilter implements RecipientFilter { @Override public boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient, final Map<String, Object> inProperties, final String inNotifierType) { return inRecipient.isAccountLocked(); } }
LockedUserRecipientFilter implements RecipientFilter { @Override public boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient, final Map<String, Object> inProperties, final String inNotifierType) { return inRecipient.isAccountLocked(); }  }
LockedUserRecipientFilter implements RecipientFilter { @Override public boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient, final Map<String, Object> inProperties, final String inNotifierType) { return inRecipient.isAccountLocked(); }  @Override boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient,
            final Map<String, Object> inProperties, final String inNotifierType); }
LockedUserRecipientFilter implements RecipientFilter { @Override public boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient, final Map<String, Object> inProperties, final String inNotifierType) { return inRecipient.isAccountLocked(); }  @Override boolean shouldFilter(final NotificationType inType, final PersonModelView inRecipient,
            final Map<String, Object> inProperties, final String inNotifierType);  }