Uses of Class
org.apache.sling.testing.clients.exceptions.TestingValidationException
Packages that use TestingValidationException
Package
Description
OSGI testing tools.
-
Uses of TestingValidationException in org.apache.sling.testing.clients
Methods in org.apache.sling.testing.clients that throw TestingValidationExceptionModifier and TypeMethodDescription<T extends AbstractSlingClient>
TReturns an instance of any class extending the AbstractSlingClient.void
SlingHttpResponse.checkContentContains
(String... expected) Assert that all the providedStrings
are contained in the responsevoid
SlingHttpResponse.checkContentRegexp
(String... regexp) For each regular expression, assert that at least one line of the response matches the expressionvoid
SlingHttpResponse.checkContentType
(String expected) Assert that response matches supplied content type (from Content-Type header)void
SlingHttpResponse.checkStatus
(int expected) Assert that response matches supplied statusvoid
SlingClient.waitUntilExists
(String path, long waitMillis, int retryCount) Deprecated. -
Uses of TestingValidationException in org.apache.sling.testing.clients.osgi
Methods in org.apache.sling.testing.clients.osgi that throw TestingValidationExceptionModifier and TypeMethodDescriptionReturn service info for a service with given idReturn service infos for a bundle with namename
OsgiConsoleClient.getConfigurationWithWait
(long waitCount, String pid, int... expectedStatus) Deprecated.int
ComponentsInfo.getNumberOfInstalledComponents()
BundlesInfo.getStatusMessage()
Constructors in org.apache.sling.testing.clients.osgi that throw TestingValidationExceptionModifierConstructorDescriptionBundleInfo
(com.fasterxml.jackson.databind.JsonNode root) BundlesInfo
(com.fasterxml.jackson.databind.JsonNode root) The only constructor.ComponentInfo
(com.fasterxml.jackson.databind.JsonNode root) ServiceInfo
(com.fasterxml.jackson.databind.JsonNode root) ServicesInfo
(com.fasterxml.jackson.databind.JsonNode root) The only constructor. -
Uses of TestingValidationException in org.apache.sling.testing.clients.util
Methods in org.apache.sling.testing.clients.util that throw TestingValidationExceptionModifier and TypeMethodDescriptionstatic String
HttpUtils.getLocationHeader
(org.apache.http.HttpResponse response) Get the first 'Location' header and verify it's a valid URI.static void
HttpUtils.verifyHttpStatus
(org.apache.http.HttpResponse response, String errorMessage, int... expectedStatus) Verify expected status and show error message in case expected status is not returned.static void
HttpUtils.verifyHttpStatus
(SlingHttpResponse response, int... expectedStatus) Verify expected status and dump response in case expected status is not returned.
SlingClient.waitExists(String, long, long)
instead.