use of org.apache.sling.ide.eclipse.ui.nav.model.JcrNode in project sling by apache.
the class JcrNodeCreationTest method createNtFolderNode.
@Test
public void createNtFolderNode() throws Exception {
JcrNode contentNode = syncDirNode.getNode("/content/test-root");
contentNode.createChild("folder", "nt:folder");
assertThat(projectRule.getProject(), hasFolder("/jcr_root/content/test-root/folder"));
}
use of org.apache.sling.ide.eclipse.ui.nav.model.JcrNode in project sling by apache.
the class JcrNodeCreationTest method createFullCoverageNodeUnderFolder.
@Test
public void createFullCoverageNodeUnderFolder() throws Exception {
JcrNode contentNode = syncDirNode.getNode("/content/test-root");
contentNode.createChild("messages", "sling:OsgiConfig");
assertThat(projectRule.getProject(), hasFile("/jcr_root/content/test-root/messages.xml"));
}
Aggregations