public class WellKnownNodes
extends org.junit.rules.ExternalResource
Repository, but with extra nodes needed for testing| Constructor and Description |
|---|
WellKnownNodes(ApplicationContextInit appContextRule)
Constructs the rule with a reference to a
rule which can be used to retrieve the ApplicationContext. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
org.alfresco.service.cmr.repository.NodeRef |
getCompanyHome()
Returns company home
|
org.alfresco.service.cmr.repository.NodeRef |
getSystemContainer(org.alfresco.service.namespace.QName containerName)
Returns the given System Container
|
org.alfresco.service.cmr.repository.NodeRef |
getSystemRoot()
Returns the system root
|
org.alfresco.service.cmr.repository.NodeRef |
getWorkspaceRoot()
Returns the root of the workspace store
|
public WellKnownNodes(ApplicationContextInit appContextRule)
rule which can be used to retrieve the ApplicationContext.appContextRule - a rule which can be used to retrieve the spring app context.protected void before()
throws java.lang.Throwable
before in class org.junit.rules.ExternalResourcejava.lang.Throwableprotected void after()
after in class org.junit.rules.ExternalResourcepublic org.alfresco.service.cmr.repository.NodeRef getWorkspaceRoot()
public org.alfresco.service.cmr.repository.NodeRef getCompanyHome()
public org.alfresco.service.cmr.repository.NodeRef getSystemRoot()
public org.alfresco.service.cmr.repository.NodeRef getSystemContainer(org.alfresco.service.namespace.QName containerName)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.