public class JsonPathContentAssertion extends JsonPathAssertionBase implements RequestAssertion, ResponseAssertion
| Modifier and Type | Class and Description | 
|---|---|
| static class  | JsonPathContentAssertion.Factory | 
JsonPathAssertionBase.JsonAssertionFactoryAbstractXmlContainsAssertion.InternalDifferenceListener| Modifier and Type | Field and Description | 
|---|---|
| static String | DESCRIPTION | 
| static String | ID | 
| static String | LABEL | 
configurationDialog, expectedContent, ignoreComments, ignoreNamespaceDifferences, pathassertionErrors, assertionStatusCONFIGURATION_PROPERTY, DISABLED_PROPERTY, ERRORS_PROPERTY, STATUS_PROPERTYDESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY| Constructor and Description | 
|---|
| JsonPathContentAssertion(TestAssertionConfig assertionConfig,
                        Assertable assertable) | 
| Modifier and Type | Method and Description | 
|---|---|
| String | assertContent(String assertableContent,
             SubmitContext context,
             String type) | 
| static void | assertSimilar(String expected,
             String real,
             char wildcard)Compares two string for similarity, allows wildcard. | 
| protected XPathContainsAssertion | getAssertion() | 
| String | getConfigurationDialogTitle() | 
| String | getHelpURL() | 
| boolean | isAllowWildcards() | 
| static boolean | isSimilar(String expected,
         String real,
         char wildcard) | 
| void | selectFromCurrent() | 
| void | setAllowWildcards(boolean allowWildcards) | 
canAssertXmlContent, getContentAreaBorderTitle, getContentAreaToolTipText, getPathAreaBorderTitle, getPathAreaDescription, getPathAreaTitle, getPathAreaToolTipText, getPathString, getPropertyExpansionContext, internalAssertProperty, internalAssertRequest, internalAssertResponse, readStringValue, throwAssertionExceptiongetQueryTypeaddConfigurationValues, addMatchEditorActions, addPathEditorActions, configure, createConfiguration, getContentArea, getExpectedContent, getPath, getPathArea, getPropertyExpansions, getXPathReferences, isIgnoreComments, isIgnoreNamespaceDifferences, setContent, setExpectedContent, setExpectedContent, setIgnoreComments, setIgnoreNamespaceDifferences, setPathassertProperty, assertRequest, assertResponse, getAssertable, getConfig, getConfiguration, getDescription, getErrors, getIcon, getId, getIndexOfAssertion, getLabel, getName, getParent, getSettings, getStatus, isAllowMultiple, isClonable, isConfigurable, isDisabled, isFailed, isValid, prepare, release, resolve, setAssertable, setConfiguration, setDisabled, setName, updateConfigaddPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassertRequestassertResponsegetChildren, getProjectaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic static final String ID
public static final String LABEL
public static final String DESCRIPTION
public JsonPathContentAssertion(TestAssertionConfig assertionConfig, Assertable assertable)
public static void assertSimilar(String expected, String real, char wildcard) throws junit.framework.ComparisonFailure
expected - real - wildcard - junit.framework.ComparisonFailurepublic static boolean isSimilar(String expected, String real, char wildcard) throws junit.framework.ComparisonFailure
junit.framework.ComparisonFailurepublic boolean isAllowWildcards()
isAllowWildcards in class AbstractXmlContainsAssertionpublic void setAllowWildcards(boolean allowWildcards)
setAllowWildcards in class AbstractXmlContainsAssertionpublic String getHelpURL()
getHelpURL in class XPathContainsAssertionprotected XPathContainsAssertion getAssertion()
getAssertion in class AbstractXmlContainsAssertionpublic String getConfigurationDialogTitle()
getConfigurationDialogTitle in class AbstractXmlContainsAssertionpublic void selectFromCurrent()
selectFromCurrent in class XPathContainsAssertionpublic String assertContent(String assertableContent, SubmitContext context, String type) throws AssertionException
assertContent in class XPathContainsAssertionAssertionExceptionCopyright © 2019. All Rights Reserved.