
assert-object-equals.editors.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assert-object-equals-connector Show documentation
Show all versions of assert-object-equals-connector Show documentation
A Mule connector for comparing object structures (Map/List) or XML in MUnit tests.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <namespace xmlns="http://www.mulesoft.org/schema/mule/tooling.attributes" xmlns:mule="http://www.mulesoft.org/schema/mule/core" url="http://www.mulesoft.org/schema/mule/assert-object-equals" prefix="assert-object-equals"> <global-cloud-connector versions="[3.5.0,8.0.0]" caption="Assert Object Equals" description="" icon="" localId="parentConfig" image="" abstract="true" extends="http://www.mulesoft.org/schema/mule/assert-object-equals/abstractAssert-object-equalsConnectorGeneric"></global-cloud-connector> <global-cloud-connector versions="[3.5.0,8.0.0]" caption="Assert Object Equals" description="Global Assert Object Equals configuration information." icon="icons/theme.classic/assert-object-equals-connector-small.png" localId="config" image="icons/theme.classic/assert-object-equals-connector-large.png" abstract="false" extends="http://www.mulesoft.org/schema/mule/assert-object-equals/parentConfig" connectivityTesting="off" metaData="static" metaDataKeyDisplay="DISPLAY_NAME" supportsUserDefinedMetaData="false"> <attribute-category caption="General" description="Assert-object-equals configuration properties."> <group id="assert-object-equalsGenericProperties" caption="Basic Settings"> <name name="name" caption="Name" description="Give a name to this configuration so it can be later referenced by config-ref." required="true"></name> </group> </attribute-category> </global-cloud-connector> <cloud-connector caption="Abstractassert-object-equalsconnectorgeneric" description="Interact with Assert-object-equals." icon="icons/theme.classic/assert-object-equals-connector-small.png" localId="abstractAssert-object-equalsConnectorGeneric" image="icons/theme.classic/assert-object-equals-connector-large.png" category="org.mule.tooling.category.munit" abstract="true"> <attribute-category caption="General" description="General."> <group id="abstractAssert-object-equalsConnectorGeneric" caption="Basic Settings"></group> </attribute-category> </cloud-connector> <cloud-connector versions="[3.5.0,8.0.0]" aliasId="org.mule.tooling.ui.modules.core.pattern.assert-object-equals" caption="Assert Object Equals" description="Compares two Java Map/List based structures)" icon="icons/theme.classic/assert-object-equals-connector-small.png" localId="assert-object-equals-connector" image="icons/theme.classic/assert-object-equals-connector-large.png" category="org.mule.tooling.category.munit" extends="http://www.mulesoft.org/schema/mule/assert-object-equals/abstractAssert-object-equalsConnectorGeneric"> <attribute-category caption="General" description="General."> <group id="assert-object-equalsConnectorGeneric" caption="Basic Settings"> <modeSwitch alwaysCombo="true" name="Assert-object-equals operations to execute" caption="Operation" description="Operation."> <no-operation abstractElement="http://www.mulesoft.org/schema/mule/assert-object-equals/abstractAssert-object-equalsConnectorGeneric" versions="[3.5.0,8.0.0]" connector-name="processor"></no-operation> <mode modeId="http://www.mulesoft.org/schema/mule/assert-object-equals/compare-objects" modeLabel="Compare Objects"></mode> <mode modeId="http://www.mulesoft.org/schema/mule/assert-object-equals/compare-xml" modeLabel="Compare XML"></mode> </modeSwitch> </group> </attribute-category> </cloud-connector> <cloud-connector returnType="org.mule.devkit.api.transformer.TransformingValue<java.lang.Object,org.mule.api.transformer.DataType<java.lang.Object>>" caption="Compare Objects" icon="icons/theme.classic/assert-object-equals-connector-small.png" localId="compare-objects" image="icons/theme.classic/assert-object-equals-connector-large.png" category="org.mule.tooling.category.munit" abstract="true" extends="http://www.mulesoft.org/schema/mule/assert-object-equals/abstractAssert-object-equalsConnectorGeneric" metaData="static"> <attribute-category caption="General" description="General."> <group id="general" caption="General"> <string name="expected-ref" caption="Expected value" description="The expected value. Automatic conversions are provided: InputStream is read/parsed as Json byte[] is parsed as Json String is parsed as Json when it starts with [ or { (after trim() Remember: Encoding for Json is always UTF8." required="true" javaType="java.lang.Object"></string> <string defaultValue="#[payload]" name="actualExpression" caption="Actual value" description="The actual value. Automatic conversions are provided: InputStream is read/parsed as Json byte[] is parsed as Json String is parsed as Json when it starts with [ or { (after trim() Remember: Encoding for Json is always UTF8." required="false" javaType="java.lang.String"></string> <boolean defaultValue="false" name="checkMapOrder" caption="Check map order" description="The order of map entries is checked. The default is to ignore order of map entries." supportsExpressions="true" required="false" javaType="boolean"></boolean> <boolean defaultValue="false" name="containsOnlyOnMaps" caption="Contains only on maps" description="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." supportsExpressions="true" required="false" javaType="boolean"></boolean> <element-controller-list listName="path-options" localName="compare-objects-path-options" itemName="path-option" defaultValue="#[[]]" caption="Path patterns+options" description="Options for path patterns to control the comparison. Syntax of one List entry: Zero to n path parts. The parts can have the following syntax: ?: Wildcard one, matches one element in a path *: Wildcard any, matches zero to n elements in a path [#]: List wildcard, matches a list entry with any index [0]: Matches a list entry with the given number. 0 or positive numbers: Count from beginning, negative number: Cound from end (-1 is last element) ['.*']: 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. 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." required="false" javaType="java.util.List<java.lang.String>"></element-controller-list> </group> </attribute-category> </cloud-connector> <cloud-connector returnType="org.mule.devkit.api.transformer.TransformingValue<java.lang.Object,org.mule.api.transformer.DataType<java.lang.Object>>" caption="Compare Xml" icon="icons/theme.classic/assert-object-equals-connector-small.png" localId="compare-xml" image="icons/theme.classic/assert-object-equals-connector-large.png" category="org.mule.tooling.category.munit" abstract="true" extends="http://www.mulesoft.org/schema/mule/assert-object-equals/abstractAssert-object-equalsConnectorGeneric" metaData="static"> <attribute-category caption="General" description="General."> <group id="general" caption="General"> <string name="expected-ref" caption="Expected Reference" description="The expected value, XML as String, InputStream, byte[] or DOM tree." required="true" javaType="java.lang.Object"></string> <string defaultValue="#[payload]" name="actualExpression" caption="Actual Expression" description="The actual value, XML as String, InputStream, byte[] or DOM tree." required="false" javaType="java.lang.String"></string> <enum defaultValue="NORMALIZE_WHITESPACE" allowsCustom="true" name="xmlCompareOption" caption="XML compare option" description="How to compare the XML documents. IGNORE_COMMENTS: Will remove all comment-Tags "" 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." supportsExpressions="true" required="false" javaType="de.codecentric.mule.assertobjectequals.XmlCompareOption"> <option value="IGNORE_COMMENTS"></option> <option value="IGNORE_WHITESPACE"></option> <option value="NORMALIZE_WHITESPACE"></option> </enum> </group> </attribute-category> </cloud-connector> </namespace>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy