use of org.orcid.persistence.jpa.entities.WebhookEntity in project ORCID-Source by ORCID.
the class WebhookDaoTest method testFindWebhooksReadyToProcess.
@Test
@Rollback(true)
public void testFindWebhooksReadyToProcess() {
Date now = new Date();
List<WebhookEntity> results = webhookDao.findWebhooksReadyToProcess(now, 5, 10);
assertNotNull(results);
assertEquals(1, results.size());
Set<String> orcids = new HashSet<>();
for (WebhookEntity result : results) {
orcids.add(result.getProfile().getId());
}
assertTrue(orcids.contains("4444-4444-4444-4443"));
}
Aggregations