use of com.enonic.xp.content.FindContentIdsByParentResult in project xp by enonic.
the class ContentServiceImplTest_findIdsByParent method test_published_draft.
@Test
public void test_published_draft() throws Exception {
final FindContentIdsByParentResult result = createAndFindContent(ContentPublishInfo.create().from(Instant.now().minus(Duration.ofDays(1))).to(Instant.now().plus(Duration.ofDays(1))).build());
assertEquals(1, result.getTotalHits());
}
Aggregations