Package org.xmlunit.placeholder
Class IgnorePlaceholderHandler
- java.lang.Object
-
- org.xmlunit.placeholder.IgnorePlaceholderHandler
-
- All Implemented Interfaces:
PlaceholderHandler
public class IgnorePlaceholderHandler extends java.lang.Object implements 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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringPLACEHOLDER_NAME_IGNORE
-
Constructor Summary
Constructors Constructor Description IgnorePlaceholderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResultevaluate(java.lang.String testText, java.lang.String... param)Evaluate the test value when control contained the placeholder handled by this class.java.lang.StringgetKeyword()The placeholder keyword this handler is responsible for.
-
-
-
Field Detail
-
PLACEHOLDER_NAME_IGNORE
private static final java.lang.String PLACEHOLDER_NAME_IGNORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKeyword
public java.lang.String getKeyword()
Description copied from interface:PlaceholderHandlerThe placeholder keyword this handler is responsible for.- Specified by:
getKeywordin interfacePlaceholderHandler
-
evaluate
public ComparisonResult evaluate(java.lang.String testText, java.lang.String... param)
Description copied from interface:PlaceholderHandlerEvaluate the test value when control contained the placeholder handled by this class.- Specified by:
evaluatein interfacePlaceholderHandler- Parameters:
testText- the textual content of the element or attribute this placeholder has been added to.param- any arguments provided to the placeholder.
-
-