Uses of Class
org.apache.sling.testing.clients.exceptions.TestingValidationException
-
Packages that use TestingValidationException Package Description org.apache.sling.testing.clients org.apache.sling.testing.clients.osgi OSGI testing tools.org.apache.sling.testing.clients.util -
-
Uses of TestingValidationException in org.apache.sling.testing.clients
Methods in org.apache.sling.testing.clients that throw TestingValidationException Modifier and Type Method Description <T extends AbstractSlingClient>
TAbstractSlingClient. adaptTo(Class<T> clientClass)Returns 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.useSlingClient.waitExists(String, long, long)instead. -
Uses of TestingValidationException in org.apache.sling.testing.clients.osgi
Methods in org.apache.sling.testing.clients.osgi that throw TestingValidationException Modifier and Type Method Description ComponentInfoComponentsInfo. forId(String id)ServiceInfoServicesInfo. forId(String id)Return service info for a service with given idComponentInfoComponentsInfo. forName(String name)ComponentInfoComponentsInfo. forPid(String pid)Collection<ServiceInfo>ServicesInfo. forType(String type)Return service infos for a bundle with namenameMap<String,Object>OsgiConsoleClient. getConfigurationWithWait(long waitCount, String pid, int... expectedStatus)Deprecated.intComponentsInfo. getNumberOfInstalledComponents()StringBundlesInfo. getStatusMessage()Constructors in org.apache.sling.testing.clients.osgi that throw TestingValidationException Constructor Description BundleInfo(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 TestingValidationException Modifier and Type Method Description static 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.
-