Package org.xmlunit.placeholder
Class IgnorePlaceholderHandler
java.lang.Object
org.xmlunit.placeholder.IgnorePlaceholderHandler
- All Implemented Interfaces:
PlaceholderHandler
Handler for the "ignore" placeholder keyword.
This class and the whole module are considered experimental and any API may change between releases of XMLUnit.
Text nodes or attributes containing ${xmlunit.ignore}
will be ignored.
- Since:
- 2.6.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEvaluate the test value when control contained the placeholder handled by this class.The placeholder keyword this handler is responsible for.
-
Constructor Details
-
IgnorePlaceholderHandler
public IgnorePlaceholderHandler()
-
-
Method Details
-
getKeyword
Description copied from interface:PlaceholderHandler
The placeholder keyword this handler is responsible for.- Specified by:
getKeyword
in interfacePlaceholderHandler
- Returns:
- placeholder keyword this handler is responsible for
-
evaluate
Description copied from interface:PlaceholderHandler
Evaluate the test value when control contained the placeholder handled by this class.- Specified by:
evaluate
in interfacePlaceholderHandler
- Parameters:
testText
- the textual content of the element or attribute this placeholder has been added to.param
- any arguments provided to the placeholder.- Returns:
- the comparison outcome
-