PublishingRootObject { public NodeRef getChannelContainer() { return getEnvironment().getChannelsContainer(); }  Environment getEnvironment(); NodeRef getChannelContainer(); PublishingQueueImpl getPublishingQueue(); void setPublishingStore(String publishingStore); void setPublishingRootPath(String publishingRootPath); void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper); void setNamespaceService(NamespaceService namespaceService); void setNodeService(NodeService nodeService); void setPublishingEventHelper(PublishingEventHelper publishingEventHelper); void setSearchService(SearchService searchService); void setPermissionService(PermissionService permissionService); static final String NAME; }
@Test public void testGetChannelContainer() throws Exception { NodeRef channels = rootObject.getChannelContainer(); assertNotNull(channels); assertTrue(nodeService.exists(channels)); assertEquals(ContentModel.TYPE_FOLDER, nodeService.getType(channels)); ChildAssociationRef parentAssoc = nodeService.getPrimaryParent(channels); assertEquals(PublishingRootObject.CHANNELS_QNAME, parentAssoc.getQName()); assertEquals(rootObject.getEnvironment().getNodeRef(), parentAssoc.getParentRef()); }