@Test public void testPostPersist() { context.checking(new Expectations() { { allowing(entity).getAccountId(); will(returnValue("accountId")); } }); sut.onPostPersist(entity); context.assertIsSatisfied(); }
@Override public void onPostPersist(final Person inPersistedPerson) { if (log.isInfoEnabled()) { log.info("Person.onPostPersist - person with accountId " + inPersistedPerson.getAccountId() + " - doing nothing."); } }
PersonEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<Person> { @Override public void onPostPersist(final Person inPersistedPerson) { if (log.isInfoEnabled()) { log.info("Person.onPostPersist - person with accountId " + inPersistedPerson.getAccountId() + " - doing nothing."); } } }
PersonEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<Person> { @Override public void onPostPersist(final Person inPersistedPerson) { if (log.isInfoEnabled()) { log.info("Person.onPostPersist - person with accountId " + inPersistedPerson.getAccountId() + " - doing nothing."); } }  }
PersonEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<Person> { @Override public void onPostPersist(final Person inPersistedPerson) { if (log.isInfoEnabled()) { log.info("Person.onPostPersist - person with accountId " + inPersistedPerson.getAccountId() + " - doing nothing."); } }  @Override void onPostUpdate(final Person inUpdatedPerson); @Override void onPostPersist(final Person inPersistedPerson); }
PersonEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<Person> { @Override public void onPostPersist(final Person inPersistedPerson) { if (log.isInfoEnabled()) { log.info("Person.onPostPersist - person with accountId " + inPersistedPerson.getAccountId() + " - doing nothing."); } }  @Override void onPostUpdate(final Person inUpdatedPerson); @Override void onPostPersist(final Person inPersistedPerson);  }