Search in sources :

Example 1 with PageTreeAction

use of com.agiletec.apsadmin.portal.PageTreeAction in project entando-core by entando.

the class TestHypertextAttributeAction method testConfigPageLink_2.

public void testConfigPageLink_2() throws Throwable {
    this.initIntroPageLink("admin", "ART102");
    ITreeNode root = ((PageTreeAction) this.getAction()).getAllowedTreeRootNode();
    assertNotNull(root);
    assertEquals("homepage", root.getCode());
    assertEquals(4, root.getChildrenCodes().length);
}
Also used : ITreeNode(com.agiletec.aps.system.common.tree.ITreeNode) PageTreeAction(com.agiletec.apsadmin.portal.PageTreeAction)

Example 2 with PageTreeAction

use of com.agiletec.apsadmin.portal.PageTreeAction in project entando-core by entando.

the class TestPageLinkAction method testConfigPageLink_2.

public void testConfigPageLink_2() throws Throwable {
    String contentOnSessionMarker = this.initJoinLinkTest("admin", "ART102", "VediAnche", "it");
    this.initContentAction("/do/jacms/Content/Link", "configPageLink", contentOnSessionMarker);
    String result = this.executeAction();
    assertEquals(Action.SUCCESS, result);
    ITreeNode root = ((PageTreeAction) this.getAction()).getAllowedTreeRootNode();
    assertNotNull(root);
    assertEquals("homepage", root.getCode());
    assertEquals(4, root.getChildrenCodes().length);
    ITreeNode showableRoot = ((PageTreeAction) this.getAction()).getShowableTree();
    assertEquals("homepage", showableRoot.getCode());
    assertEquals(0, showableRoot.getChildrenCodes().length);
}
Also used : ITreeNode(com.agiletec.aps.system.common.tree.ITreeNode) PageTreeAction(com.agiletec.apsadmin.portal.PageTreeAction)

Example 3 with PageTreeAction

use of com.agiletec.apsadmin.portal.PageTreeAction in project entando-core by entando.

the class TestPageLinkAction method checkTestOpenPageTree_ART102.

private void checkTestOpenPageTree_ART102() throws Throwable {
    ITreeNode root = ((PageTreeAction) this.getAction()).getAllowedTreeRootNode();
    assertNotNull(root);
    assertEquals("homepage", root.getCode());
    assertEquals(4, root.getChildrenCodes().length);
    ITreeNode showableRoot = ((PageTreeAction) this.getAction()).getShowableTree();
    assertEquals("homepage", showableRoot.getCode());
    assertEquals(4, showableRoot.getChildrenCodes().length);
}
Also used : ITreeNode(com.agiletec.aps.system.common.tree.ITreeNode) PageTreeAction(com.agiletec.apsadmin.portal.PageTreeAction)

Example 4 with PageTreeAction

use of com.agiletec.apsadmin.portal.PageTreeAction in project entando-core by entando.

the class TestHypertextAttributeAction method testConfigPageLink_1.

public void testConfigPageLink_1() throws Throwable {
    this.initIntroPageLink("admin", "ART1");
    ITreeNode root = ((PageTreeAction) this.getAction()).getAllowedTreeRootNode();
    assertNotNull(root);
    assertEquals("homepage", root.getCode());
    assertEquals(3, root.getChildrenCodes().length);
}
Also used : ITreeNode(com.agiletec.aps.system.common.tree.ITreeNode) PageTreeAction(com.agiletec.apsadmin.portal.PageTreeAction)

Example 5 with PageTreeAction

use of com.agiletec.apsadmin.portal.PageTreeAction in project entando-core by entando.

the class TestHypertextAttributeAction method checkTestOpenPageTree_ART102.

private void checkTestOpenPageTree_ART102() throws Throwable {
    ITreeNode root = ((PageTreeAction) this.getAction()).getAllowedTreeRootNode();
    assertNotNull(root);
    assertEquals("homepage", root.getCode());
    assertEquals(4, root.getChildrenCodes().length);
    ITreeNode showableRoot = ((PageTreeAction) this.getAction()).getShowableTree();
    assertEquals("homepage", showableRoot.getCode());
    assertEquals(4, showableRoot.getChildrenCodes().length);
}
Also used : ITreeNode(com.agiletec.aps.system.common.tree.ITreeNode) PageTreeAction(com.agiletec.apsadmin.portal.PageTreeAction)

Aggregations

ITreeNode (com.agiletec.aps.system.common.tree.ITreeNode)7 PageTreeAction (com.agiletec.apsadmin.portal.PageTreeAction)7