public final class XMLSubject extends com.google.common.truth.Subject<XMLSubject,Object>
| Modifier and Type | Method and Description |
|---|---|
XMLSubject |
expandingEntityReferences()
Expand entity references; same as
expandingEntityReferences(true). |
XMLSubject |
expandingEntityReferences(boolean value)
Specifies if entity references should be expanded.
|
void |
hasSameContentAs(Object other)
Fails unless the subject represents the same XML as the given object.
|
XMLSubject |
ignoringComments()
Ignore comments; same as
ignoringComments(true). |
XMLSubject |
ignoringComments(boolean value)
Specifies if comments should be ignored.
|
XMLSubject |
ignoringElementContentWhitespace()
Ignore element content whitespace; same as
ignoringElementContentWhitespace(true). |
XMLSubject |
ignoringElementContentWhitespace(boolean value)
Specifies if element content whitespace should be ignored.
|
XMLSubject |
ignoringNamespaceDeclarations()
Ignore all namespace declarations; same as
ignoringNamespaceDeclarations(true). |
XMLSubject |
ignoringNamespaceDeclarations(boolean value)
Specifies if namespace declarations should be ignored.
|
XMLSubject |
ignoringNamespacePrefixes()
Ignore namespace prefixes; same as
ignoringNamespacePrefixes(true). |
XMLSubject |
ignoringNamespacePrefixes(boolean value)
Specifies if namespace prefixes should be ignored.
|
XMLSubject |
ignoringPrologAndEpilog()
Ignore the prolog and epilog entirely; same as
ignoringPrologAndEpilog(true). |
XMLSubject |
ignoringPrologAndEpilog(boolean value)
Specifies if the prolog and epilog should be ignored entirely.
|
XMLSubject |
ignoringRedundantNamespaceDeclarations()
Ignore redundant namespace declarations; same as
ignoringRedundantNamespaceDeclarations(true). |
XMLSubject |
ignoringRedundantNamespaceDeclarations(boolean value)
Specify if redundant namespace declarations should be ignored.
|
XMLSubject |
ignoringWhitespace()
Ignore all whitespace; same as
ignoringWhitespace(true). |
XMLSubject |
ignoringWhitespace(boolean value)
Specifies if whitespace should be ignored.
|
XMLSubject |
ignoringWhitespaceInPrologAndEpilog()
Ignore whitespace in the prolog and epilog; same as
ignoringWhitespaceInPrologAndEpilog(true). |
XMLSubject |
ignoringWhitespaceInPrologAndEpilog(boolean value)
Specifies if whitespace in the prolog and epilog should be ignored.
|
XMLSubject |
treatingElementContentWhitespaceAsText()
Treat element content whitespace as simple text nodes; same as
treatingElementContentWhitespaceAsText(true). |
XMLSubject |
treatingElementContentWhitespaceAsText(boolean value)
Specifies how element content whitespace is to be treated.
|
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, namedpublic XMLSubject ignoringComments()
ignoringComments(true).thispublic XMLSubject ignoringComments(boolean value)
value - true if comments should be ignored, false otherwisethispublic XMLSubject ignoringElementContentWhitespace()
ignoringElementContentWhitespace(true).thispublic XMLSubject ignoringElementContentWhitespace(boolean value)
value - true if element content whitespace should be ignored, false
otherwisethispublic XMLSubject ignoringWhitespace()
ignoringWhitespace(true).thispublic XMLSubject ignoringWhitespace(boolean value)
value - true if all text nodes that contain only whitespace should be ignored,
false otherwisethispublic XMLSubject ignoringWhitespaceInPrologAndEpilog()
ignoringWhitespaceInPrologAndEpilog(true).thispublic XMLSubject ignoringWhitespaceInPrologAndEpilog(boolean value)
value - true if whitespace in the prolog and epilog should be ignored,
false otherwisethispublic XMLSubject ignoringPrologAndEpilog()
ignoringPrologAndEpilog(true).thispublic XMLSubject ignoringPrologAndEpilog(boolean value)
value - true if (text, comment and document type declaration) nodes in the prolog
and epilog should be ignored, false otherwisethispublic XMLSubject ignoringNamespaceDeclarations()
ignoringNamespaceDeclarations(true).thispublic XMLSubject ignoringNamespaceDeclarations(boolean value)
value - true if namespace declarations should be ignored, false otherwisethispublic XMLSubject ignoringNamespacePrefixes()
ignoringNamespacePrefixes(true).thispublic XMLSubject ignoringNamespacePrefixes(boolean value)
value - true if namespace prefixes are ignored when comparing elements and
attributes, false otherwisethispublic XMLSubject ignoringRedundantNamespaceDeclarations()
ignoringRedundantNamespaceDeclarations(true).thispublic XMLSubject ignoringRedundantNamespaceDeclarations(boolean value)
value - true if redundant namespace declarations should be ignored, false
if all namespace declarations should be comparedthispublic XMLSubject expandingEntityReferences()
expandingEntityReferences(true).thispublic XMLSubject expandingEntityReferences(boolean value)
value - true if entity references should be expanded and their replacement
compared, false if the entity references themselves should be comparedthispublic XMLSubject treatingElementContentWhitespaceAsText()
treatingElementContentWhitespaceAsText(true).thispublic XMLSubject treatingElementContentWhitespaceAsText(boolean value)
value - true if element whitespace should be considered as text nodes,
false if element whitespace should be considered as a distinct node typethispublic void hasSameContentAs(Object other)
other - the object to compare withCopyright © The Apache Software Foundation. All Rights Reserved.