@Test public void testExecute() { DeleteFromSearchIndexRequest request = new DeleteFromSearchIndexRequest(String.class, 1L); DeleteFromSearchIndexTester sut = new DeleteFromSearchIndexTester(); sut.setFullTextSession(fullTextSessionMock); context.checking(new Expectations() { { oneOf(fullTextSessionMock).purge(String.class, 1L); } }); sut.execute(request); context.assertIsSatisfied(); }
@Override public Boolean execute(final DeleteFromSearchIndexRequest inRequest) { FullTextSession session = getFullTextSession(); Class< ? > clazz = inRequest.getClazz(); List<Long> ids = inRequest.getIds(); for (Long id : ids) { session.purge(clazz, id); } return Boolean.TRUE; }
DeleteFromSearchIndex extends BaseArgDomainMapper<DeleteFromSearchIndexRequest, Boolean> { @Override public Boolean execute(final DeleteFromSearchIndexRequest inRequest) { FullTextSession session = getFullTextSession(); Class< ? > clazz = inRequest.getClazz(); List<Long> ids = inRequest.getIds(); for (Long id : ids) { session.purge(clazz, id); } return Boolean.TRUE; } }
DeleteFromSearchIndex extends BaseArgDomainMapper<DeleteFromSearchIndexRequest, Boolean> { @Override public Boolean execute(final DeleteFromSearchIndexRequest inRequest) { FullTextSession session = getFullTextSession(); Class< ? > clazz = inRequest.getClazz(); List<Long> ids = inRequest.getIds(); for (Long id : ids) { session.purge(clazz, id); } return Boolean.TRUE; }  }
DeleteFromSearchIndex extends BaseArgDomainMapper<DeleteFromSearchIndexRequest, Boolean> { @Override public Boolean execute(final DeleteFromSearchIndexRequest inRequest) { FullTextSession session = getFullTextSession(); Class< ? > clazz = inRequest.getClazz(); List<Long> ids = inRequest.getIds(); for (Long id : ids) { session.purge(clazz, id); } return Boolean.TRUE; }  @Override Boolean execute(final DeleteFromSearchIndexRequest inRequest); }
DeleteFromSearchIndex extends BaseArgDomainMapper<DeleteFromSearchIndexRequest, Boolean> { @Override public Boolean execute(final DeleteFromSearchIndexRequest inRequest) { FullTextSession session = getFullTextSession(); Class< ? > clazz = inRequest.getClazz(); List<Long> ids = inRequest.getIds(); for (Long id : ids) { session.purge(clazz, id); } return Boolean.TRUE; }  @Override Boolean execute(final DeleteFromSearchIndexRequest inRequest);  }