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;
}
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;
}
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;
}
Aggregations