xmlunit-core : Org.XmlUnit.Diff Namespace

DifferenceEvaluators Class

Evaluators used for the base cases.

Syntax

public static class DifferenceEvaluators

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Members

See Also: Inherited members from object.

Public Methods

static
Accept (Comparison, ComparisonResult) : ComparisonResult
Difference evaluator that just echos the result passed in.
static
Chain (params DifferenceEvaluator[]) : DifferenceEvaluator
Combines multiple DifferenceEvaluators so that the result of the first Evaluator will be passed to the next Evaluator.
static
Default (Comparison, ComparisonResult) : ComparisonResult
The "standard" difference evaluator which decides which differences make two XML documents really different and which still leave them similar.
static
DowngradeDifferencesToEqual (params ComparisonType[]) : DifferenceEvaluator
Creates a DifferenceEvaluator that returns a EQUAL result for differences found in one of the given ComparisonTypes.
static
DowngradeDifferencesToSimilar (params ComparisonType[]) : DifferenceEvaluator
Creates a DifferenceEvaluator that returns a SIMILAR result for differences (Comparisons that are not EQUAL) found in one of the given ComparisonTypes.
static
First (params DifferenceEvaluator[]) : DifferenceEvaluator
Combines multiple DifferenceEvaluators so that the first one that changes the outcome wins.
static
IgnorePrologDifferences () : DifferenceEvaluator
Ignore any differences that are part of the XML prolog.
static
IgnorePrologDifferencesExceptDoctype () : DifferenceEvaluator
Ignore any differences except differences inside the doctype declaration that are part of the XML prolog.
static
UpgradeDifferencesToDifferent (params ComparisonType[]) : DifferenceEvaluator
Creates a DifferenceEvaluator that returns a DIFFERENT result for differences (Comparisons that are not EQUAL) found in one of the given ComparisonTypes.

Member Details

Accept Method

Difference evaluator that just echos the result passed in.

Syntax

public static ComparisonResult Accept (Comparison comparison, ComparisonResult outcome)

Parameters

comparison
Documentation for this section has not yet been entered.
outcome
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Chain Method

Combines multiple DifferenceEvaluators so that the result of the first Evaluator will be passed to the next Evaluator.

Syntax

public static DifferenceEvaluator Chain (params DifferenceEvaluator[] evaluators)

Parameters

evaluators
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Default Method

The "standard" difference evaluator which decides which differences make two XML documents really different and which still leave them similar.

Syntax

public static ComparisonResult Default (Comparison comparison, ComparisonResult outcome)

Parameters

comparison
Documentation for this section has not yet been entered.
outcome
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

DowngradeDifferencesToEqual Method

Creates a DifferenceEvaluator that returns a EQUAL result for differences found in one of the given ComparisonTypes.

Syntax

public static DifferenceEvaluator DowngradeDifferencesToEqual (params ComparisonType[] types)

Parameters

types
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

since XMLUnit 2.1.0

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

DowngradeDifferencesToSimilar Method

Creates a DifferenceEvaluator that returns a SIMILAR result for differences (Comparisons that are not EQUAL) found in one of the given ComparisonTypes.

Syntax

public static DifferenceEvaluator DowngradeDifferencesToSimilar (params ComparisonType[] types)

Parameters

types
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

since XMLUnit 2.1.0

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

First Method

Combines multiple DifferenceEvaluators so that the first one that changes the outcome wins.

Syntax

public static DifferenceEvaluator First (params DifferenceEvaluator[] evaluators)

Parameters

evaluators
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

IgnorePrologDifferences Method

Ignore any differences that are part of the XML prolog.

Syntax

public static DifferenceEvaluator IgnorePrologDifferences ()

Returns

Documentation for this section has not yet been entered.

Remarks

Here "ignore" means return {@code ComparisonResult.EQUAL}. since XMLUnit 2.1.0

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

IgnorePrologDifferencesExceptDoctype Method

Ignore any differences except differences inside the doctype declaration that are part of the XML prolog.

Syntax

public static DifferenceEvaluator IgnorePrologDifferencesExceptDoctype ()

Returns

Documentation for this section has not yet been entered.

Remarks

Here "ignore" means return ComparisonResult.EQUAL.

In general different doctype declarations will be ignored because of NodeFilters.Default, so if you want to detect these differences you need to pick a different NodeFilter.

since XMLUnit 2.1.0

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

UpgradeDifferencesToDifferent Method

Creates a DifferenceEvaluator that returns a DIFFERENT result for differences (Comparisons that are not EQUAL) found in one of the given ComparisonTypes.

Syntax

public static DifferenceEvaluator UpgradeDifferencesToDifferent (params ComparisonType[] types)

Parameters

types
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

since XMLUnit 2.1.0

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240