public class Page
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
Page(org.apache.sling.testing.junit.rules.instance.Instance quickstartRule) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
protected CQClient |
getClient()
The client to use to create and delete this page.
|
String |
getName()
The node name of this page.
|
String |
getParentPath()
The path of the parent of this page.
|
String |
getPath()
The absolute path of this page.
|
String |
getTemplatePath()
The path of the template of this page.
|
String |
getTitle()
The title of this page.
|
protected String |
initialName()
The initial page name to be used when creating the page
This implementation returns "testpage_[randomUUID]"
You can override this with dynamic names for each thread
|
protected String |
initialParentPath()
The initial parent path to be used when creating the page
This implementation returns
You can override this with dynamic names for each threads
|
protected String |
initialTemplatePath()
The initial template path to be used when creating the page
This implementation returns
You can override this with dynamic names for each threads
|
protected void |
prepare()
Method to be called before creating the page.
|
public Page(org.apache.sling.testing.junit.rules.instance.Instance quickstartRule)
protected void before()
throws org.apache.sling.testing.clients.ClientException
before in class org.junit.rules.ExternalResourceorg.apache.sling.testing.clients.ClientExceptionprotected void after()
after in class org.junit.rules.ExternalResourceprotected String initialParentPath()
protected String initialName()
protected String initialTemplatePath()
protected CQClient getClient() throws org.apache.sling.testing.clients.ClientException
CQClient.
The default implementation also uses the default admin user.org.apache.sling.testing.clients.ClientException - if the client cannot be retrievedprotected void prepare()
throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException - if the content cannot be createdpublic String getTitle()
"Test Page".public String getName()
initialName().public String getParentPath()
initialParentPath()public String getTemplatePath()
initialTemplatePath()public final String getPath()
Copyright © 2018. All rights reserved.