eventListenerRegistry.addDuplicationStrategy(
new HibernateSearchIntegrator.DuplicationStrategyImpl(
FullTextIndexEventListener.class
)
);
eventListenerRegistry.appendListeners( EventType.POST_INSERT, new FullTextIndexEventListener() );
assertTrue(
"We should only be one listener, but we have " + eventEventListenerGroup.count(),
eventEventListenerGroup.count() == 1
);