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.voidSlingHttpResponse.checkContentContains(String... expected) Assert that all the providedStringsare contained in the responsevoidSlingHttpResponse.checkContentRegexp(String... regexp) For each regular expression, assert that at least one line of the response matches the expressionvoidSlingHttpResponse.checkContentType(String expected) Assert that response matches supplied content type (from Content-Type header)voidSlingHttpResponse.checkStatus(int expected) Assert that response matches supplied statusvoidSlingClient.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 namenameOsgiConsoleClient.getConfigurationWithWait(long waitCount, String pid, int... expectedStatus) Deprecated.intComponentsInfo.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 StringHttpUtils.getLocationHeader(org.apache.http.HttpResponse response) Get the first 'Location' header and verify it's a valid URI.static voidHttpUtils.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 voidHttpUtils.verifyHttpStatus(SlingHttpResponse response, int... expectedStatus) Verify expected status and dump response in case expected status is not returned.
SlingClient.waitExists(String, long, long)instead.