Package org.xwiki.test.ui.po.diff
Class EntityDiff
- java.lang.Object
-
- org.xwiki.test.ui.po.BaseElement
-
- org.xwiki.test.ui.po.diff.EntityDiff
-
public class EntityDiff extends BaseElement
Represents the pane that displays the differences between two versions of an entity (e.g. document, attachment, object, class property). For each modified property of the target entity a unified diff is displayed (e.g. the diff for the document title, attachment content or a meta property of a class property).- Since:
- 7.0RC1
- Version:
- $Id: 04f799bbbdb0c628bd06fa92e803d79090d4b78f $
-
-
Constructor Summary
Constructors Constructor Description EntityDiff(org.openqa.selenium.WebElement container)
Create a new instance for the entity specified by the given element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Conflict>
getConflicts(String propertyName)
List<String>
getDiff(String propertyName)
List<String>
getPropertyNames()
-
Methods inherited from class org.xwiki.test.ui.po.BaseElement
getDriver, getUtil, isElementVisible, setContext, waitForNotificationErrorMessage, waitForNotificationInProgressMessage, waitForNotificationSuccessMessage, waitForNotificationWarningMessage, waitUntilPageIsReady
-
-
-
-
Method Detail
-
getPropertyNames
public List<String> getPropertyNames()
- Returns:
- the list of properties that have been modified
-
getDiff
public List<String> getDiff(String propertyName)
- Parameters:
propertyName
- the name of a modified property of the underlying entity- Returns:
- the changes made to the specified property (each item in the returned list is a line in the diff)
-
-