@Test public void testExecuteExpectingNoResults() { final Long fordp2Id = 142L; assertEquals(0, sut.execute(fordp2Id).size()); }
@SuppressWarnings("unchecked") public List<Long> execute(final Long inAuthorPersonId) { return (List<Long>) getEntityManager().createQuery( "SELECT id FROM Comment WHERE author.id = :personId") .setParameter("personId", inAuthorPersonId).getResultList(); }
GetActivityCommentIdsAuthoredByPersonId extends BaseDomainMapper { @SuppressWarnings("unchecked") public List<Long> execute(final Long inAuthorPersonId) { return (List<Long>) getEntityManager().createQuery( "SELECT id FROM Comment WHERE author.id = :personId") .setParameter("personId", inAuthorPersonId).getResultList(); } }
GetActivityCommentIdsAuthoredByPersonId extends BaseDomainMapper { @SuppressWarnings("unchecked") public List<Long> execute(final Long inAuthorPersonId) { return (List<Long>) getEntityManager().createQuery( "SELECT id FROM Comment WHERE author.id = :personId") .setParameter("personId", inAuthorPersonId).getResultList(); }  }
GetActivityCommentIdsAuthoredByPersonId extends BaseDomainMapper { @SuppressWarnings("unchecked") public List<Long> execute(final Long inAuthorPersonId) { return (List<Long>) getEntityManager().createQuery( "SELECT id FROM Comment WHERE author.id = :personId") .setParameter("personId", inAuthorPersonId).getResultList(); }  @SuppressWarnings("unchecked") List<Long> execute(final Long inAuthorPersonId); }
GetActivityCommentIdsAuthoredByPersonId extends BaseDomainMapper { @SuppressWarnings("unchecked") public List<Long> execute(final Long inAuthorPersonId) { return (List<Long>) getEntityManager().createQuery( "SELECT id FROM Comment WHERE author.id = :personId") .setParameter("personId", inAuthorPersonId).getResultList(); }  @SuppressWarnings("unchecked") List<Long> execute(final Long inAuthorPersonId);  }