public class ComponentAssert extends Object
Constructor and Description |
---|
ComponentAssert() |
Modifier and Type | Method and Description |
---|---|
static void |
assertBinaryCompare(InputStream inStream1,
InputStream inStream2) |
static void |
assertHasEditDialog(org.apache.sling.testing.clients.AbstractSlingClient client,
String resourceType)
Checks if the component type has a edit dialog defined.
|
static void |
assertStringProperty(AbstractComponent comp,
String value,
String propName)
Checks if the property of a node is set to the correct value.
|
static void |
assertUploadedImage(CQClient client,
String imagePath,
String resourcePath) |
static void |
assertValidComponentNode(AbstractComponent comp)
Checks if the component's node has the minimum to be a valid component node.
|
public static void assertValidComponentNode(AbstractComponent comp) throws org.apache.sling.testing.clients.ClientException, InterruptedException
comp
- the component class referencing the component on the serverorg.apache.sling.testing.clients.ClientException
- if requesting json node of fails for some reasonInterruptedException
- to mark this method as waitingpublic static void assertStringProperty(AbstractComponent comp, String value, String propName)
comp
- the compent that contains the propertyvalue
- the expected valuepropName
- the name of the property to checkpublic static void assertUploadedImage(CQClient client, String imagePath, String resourcePath) throws org.apache.sling.testing.clients.ClientException, IOException
org.apache.sling.testing.clients.ClientException
IOException
public static void assertBinaryCompare(InputStream inStream1, InputStream inStream2) throws org.apache.sling.testing.clients.ClientException
org.apache.sling.testing.clients.ClientException
public static void assertHasEditDialog(org.apache.sling.testing.clients.AbstractSlingClient client, String resourceType) throws org.apache.sling.testing.clients.ClientException
client
- client to be usedresourceType
- the component to checkorg.apache.sling.testing.clients.ClientException
- if requesting the dialog definition as json failsCopyright © 2018. All rights reserved.