@Test public void testPostPersist() { context.checking(new Expectations() { { allowing(entity).getShortName(); will(returnValue("shortName")); } }); sut.onPostPersist(entity); context.assertIsSatisfied(); }
@Override public void onPostPersist(final DomainGroup inDomainGroup) { if (log.isInfoEnabled()) { log.info("DomainGroup.onPostPersist - group with shortName " + inDomainGroup.getShortName() + " - doing nothing."); } }
DomainGroupEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<DomainGroup> { @Override public void onPostPersist(final DomainGroup inDomainGroup) { if (log.isInfoEnabled()) { log.info("DomainGroup.onPostPersist - group with shortName " + inDomainGroup.getShortName() + " - doing nothing."); } } }
DomainGroupEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<DomainGroup> { @Override public void onPostPersist(final DomainGroup inDomainGroup) { if (log.isInfoEnabled()) { log.info("DomainGroup.onPostPersist - group with shortName " + inDomainGroup.getShortName() + " - doing nothing."); } }  }
DomainGroupEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<DomainGroup> { @Override public void onPostPersist(final DomainGroup inDomainGroup) { if (log.isInfoEnabled()) { log.info("DomainGroup.onPostPersist - group with shortName " + inDomainGroup.getShortName() + " - doing nothing."); } }  @Override void onPostUpdate(final DomainGroup inUpdatedDomainGroup); @Override void onPostPersist(final DomainGroup inDomainGroup); }
DomainGroupEntityCacheUpdater extends CachedDomainMapper implements EntityCacheUpdater<DomainGroup> { @Override public void onPostPersist(final DomainGroup inDomainGroup) { if (log.isInfoEnabled()) { log.info("DomainGroup.onPostPersist - group with shortName " + inDomainGroup.getShortName() + " - doing nothing."); } }  @Override void onPostUpdate(final DomainGroup inUpdatedDomainGroup); @Override void onPostPersist(final DomainGroup inDomainGroup);  }