Search in sources :

Example 1 with RestContainer

use of org.apache.camel.model.rest.RestContainer in project camel by apache.

the class XmlRestParseTest method assertOneRest.

protected RestDefinition assertOneRest(String uri) throws JAXBException {
    RestContainer context = assertParseRestAsJaxb(uri);
    RestDefinition rest = assertOneElement(context.getRests());
    return rest;
}
Also used : RestDefinition(org.apache.camel.model.rest.RestDefinition) RestContainer(org.apache.camel.model.rest.RestContainer)

Example 2 with RestContainer

use of org.apache.camel.model.rest.RestContainer in project camel by apache.

the class XmlTestSupport method assertParseRestAsJaxb.

protected RestContainer assertParseRestAsJaxb(String uri) throws JAXBException {
    Object value = parseUri(uri);
    RestContainer context = assertIsInstanceOf(RestContainer.class, value);
    log.info("Found: " + context);
    return context;
}
Also used : RestContainer(org.apache.camel.model.rest.RestContainer)

Example 3 with RestContainer

use of org.apache.camel.model.rest.RestContainer in project camel by apache.

the class XmlRestParseToDTest method assertOneRest.

protected RestDefinition assertOneRest(String uri) throws JAXBException {
    RestContainer context = assertParseRestAsJaxb(uri);
    RestDefinition rest = assertOneElement(context.getRests());
    return rest;
}
Also used : RestDefinition(org.apache.camel.model.rest.RestDefinition) RestContainer(org.apache.camel.model.rest.RestContainer)

Aggregations

RestContainer (org.apache.camel.model.rest.RestContainer)3 RestDefinition (org.apache.camel.model.rest.RestDefinition)2