public final class XMLTruth extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.truth.SubjectFactory<XMLSubject,Object> |
xml()
Get the
SubjectFactory to be used with Truth.assertAbout(SubjectFactory). |
static <T> Object |
xml(Class<T> type,
T object)
Prepare XML data so that it will be accessed through a particular API.
|
public static com.google.common.truth.SubjectFactory<XMLSubject,Object> xml()
SubjectFactory to be used with Truth.assertAbout(SubjectFactory).SubjectFactory for XMLSubject instancespublic static <T> Object xml(Class<T> type, T object)
xml() (e.g. DOM and the Axiom API).type - the API to use (e.g. Documentobject - an object implementing that APIAbstractVerb.DelegatedVerb.that(Object) or
XMLSubject.hasSameContentAs(Object)Copyright © The Apache Software Foundation. All Rights Reserved.