use of com.enonic.xp.node.Nodes in project xp by enonic.
the class ContentNodeTranslatorTest method testFromNodesNotResolvingChildren.
@Test
public void testFromNodesNotResolvingChildren() throws Exception {
final Nodes nodes = createNodes();
final Contents contents = this.contentNodeTranslator.fromNodes(nodes, false);
assertEquals(3, contents.getSize());
final Content content1 = contents.getContentById(ContentId.from(ID_1.toString()));
final Content content3 = contents.getContentById(ContentId.from(ID_3.toString()));
final Content content2 = contents.getContentById(ContentId.from(ID_2.toString()));
assertFalse(content1.hasChildren());
assertFalse(content2.hasChildren());
assertFalse(content3.hasChildren());
}
Aggregations