public class RamlDefinition extends Object
| Constructor and Description |
|---|
RamlDefinition(CheckerConfig config) |
RamlDefinition(org.raml.model.Raml raml,
SchemaValidators schemaValidators) |
| Modifier and Type | Method and Description |
|---|---|
RamlDefinition |
assumingBaseUri(String baseUri) |
RamlDefinition |
assumingBaseUri(String baseUri,
boolean includeServletPath) |
RamlHttpClient |
createHttpClient() |
RamlHttpClient |
createHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) |
RestAssuredClient |
createRestAssured() |
RestAssuredClient |
createRestAssured3() |
RamlRestTemplate |
createRestTemplate(org.springframework.http.client.ClientHttpRequestFactory requestFactory) |
RamlRestTemplate |
createRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
RamlChecker |
createTester() |
CheckingWebTarget |
createWebTarget(javax.ws.rs.client.WebTarget target) |
RamlDefinition |
failFast()
Will throw a
RamlViolationException in case there are errors on the RamlReport |
RamlDefinition |
failFast(boolean failFast) |
org.raml.model.Raml |
getRaml() |
RamlDefinition |
ignoringXheaders() |
RamlDefinition |
ignoringXheaders(boolean ignoreXheaders) |
RamlDefinition |
includeServletPath() |
RamlDefinition |
includeServletPath(boolean includeServletPath) |
RamlMatcher |
matches() |
RamlReport |
testAgainst(org.springframework.test.web.servlet.MvcResult mvcResult) |
RamlReport |
testAgainst(RamlRequest request,
RamlResponse response) |
RamlReport |
testAgainst(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
RamlReport |
validate() |
RamlValidator |
validator() |
public RamlDefinition(org.raml.model.Raml raml,
SchemaValidators schemaValidators)
public RamlDefinition(CheckerConfig config)
public RamlDefinition assumingBaseUri(String baseUri)
public RamlDefinition assumingBaseUri(String baseUri, boolean includeServletPath)
public RamlDefinition ignoringXheaders()
public RamlDefinition ignoringXheaders(boolean ignoreXheaders)
public RamlDefinition includeServletPath()
public RamlDefinition includeServletPath(boolean includeServletPath)
public RamlDefinition failFast()
RamlViolationException in case there are errors on the RamlReportRamlDefinitionpublic RamlDefinition failFast(boolean failFast)
public org.raml.model.Raml getRaml()
public RamlReport testAgainst(RamlRequest request, RamlResponse response)
public RamlReport testAgainst(org.springframework.test.web.servlet.MvcResult mvcResult)
public RamlReport testAgainst(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic RamlMatcher matches()
public RamlRestTemplate createRestTemplate(org.springframework.http.client.ClientHttpRequestFactory requestFactory)
public RamlRestTemplate createRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
public RamlHttpClient createHttpClient()
public RamlHttpClient createHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
public RestAssuredClient createRestAssured()
public RestAssuredClient createRestAssured3()
public CheckingWebTarget createWebTarget(javax.ws.rs.client.WebTarget target)
public RamlChecker createTester()
public RamlValidator validator()
public RamlReport validate()
Copyright © 2014–2018. All rights reserved.