Search in sources :

Example 16 with FindContentIdsByParentResult

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());
}
Also used : FindContentIdsByParentResult(com.enonic.xp.content.FindContentIdsByParentResult) Test(org.junit.jupiter.api.Test)

Aggregations

FindContentIdsByParentResult (com.enonic.xp.content.FindContentIdsByParentResult)16 Test (org.junit.jupiter.api.Test)16 Content (com.enonic.xp.content.Content)8 FindContentByParentParams (com.enonic.xp.content.FindContentByParentParams)8 ContentPath (com.enonic.xp.content.ContentPath)4