public class EmptyPage
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
EmptyPage(Supplier<org.apache.sling.testing.clients.SlingClient> clientSupplier) |
| 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 |
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
|
public EmptyPage(Supplier<org.apache.sling.testing.clients.SlingClient> clientSupplier)
clientSupplier - {code}Supplier{code} that returns an http client pointing to a remote test instanceprotected void before()
throws org.apache.sling.testing.clients.ClientException,
InterruptedException
before in class org.junit.rules.ExternalResourceorg.apache.sling.testing.clients.ClientExceptionInterruptedExceptionprotected void after()
after in class org.junit.rules.ExternalResourceprotected String initialParentPath()
protected String initialName()
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 retrievedpublic String getTitle()
"Test Page".public String getName()
initialName().public String getParentPath()
initialParentPath()public final String getPath()
Copyright © 2020. All rights reserved.