
META-INF.mule-assert-object-equals.xsd Maven / Gradle / Ivy
Compare two objects. Drill down into {@link Map} and {@link List}, use {@link Object#equals(Object)} for all
other classes.
Options for path patterns to control the comparison. Syntax of one List entry: Zero to <code>n</code> path parts. The parts can have the following syntax: <ul> <li><code>?</code>: Wildcard one, matches one element in a path</li> <li><code>*</code>: Wildcard any, matches zero to <code>n</code> elements in a path</li> <li><code>[#]</code>: List wildcard, matches a list entry with any index</li> <li><code>[0]</code>: Matches a list entry with the given number. 0 or positive numbers: Count from beginning, negative number: Cound from end (-1 is last element)</li> <li><code>['.*']</code>: Matches a map entry where the key must match the given regular expression. If you need a ' in the expression, just write ''. The example '.*' matches all keys.</li> </ul> A space as separator. One or more of the following options (case not relevant): CONTAINS_ONLY_ON_MAPS: The actual value entry set of maps can contain more values than the expected set. So you tests do not fail when there are more elements than expected in the result. CHECK_MAP_ORDER: The order of map entries is checked. The default is to ignore order of map entries. IGNORE: The actual node and its subtree is ignored completely.
The reference object for this parameter
The expected value. Automatic conversions are provided: <ul> <li>InputStream is read/parsed as Json</li> <li>byte[] is parsed as Json</li> <li>String is parsed as Json when it starts with [ or { (after <code>trim()</code></li> </ul> Remember: Encoding for Json is always UTF8
The actual value. Automatic conversions are provided: <ul> <li>InputStream is read/parsed as Json</li> <li>byte[] is parsed as Json</li> <li>String is parsed as Json when it starts with [ or { (after <code>trim()</code></li> </ul> Remember: Encoding for Json is always UTF8
The actual value entry set of maps can contain more values than the expected set. So you tests do not fail when there are more elements than expected in the result.
The order of map entries is checked. The default is to ignore order of map entries.
Compare two XML documents. See <a href="https://github.com/xmlunit/user-guide/wiki/">XMLUnit Wiki</a>} how this
works
The expected value, XML as String, InputStream, byte[] or DOM tree.
The actual value, XML as String, InputStream, byte[] or DOM tree.
How to compare the XML documents. IGNORE_COMMENTS: Will remove all comment-Tags "<!-- Comment -->" from test- and control-XML before comparing. IGNORE_WHITESPACE: Ignore whitespace by removing all empty text nodes and trimming the non-empty ones. NORMALIZE_WHITESPACE: Normalize Text-Elements by removing all empty text nodes and normalizing the non-empty ones.
Will remove all comment-Tags "<!-- Comment -->" from test- and control-XML before comparing.
Ignore whitespace by removing all empty text nodes and trimming the non-empty ones.
Normalize Text-Elements by removing all empty text nodes and normalizing the non-empty ones.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy