use of org.apache.camel.CamelContext in project camel by apache.
the class EipDocumentationTest method testNotFound.
@Test
public void testNotFound() throws Exception {
CamelContext context = new DefaultCamelContext();
String json = context.getEipParameterJsonSchema("unknown");
assertNull("Should not have found json for unknown", json);
}
use of org.apache.camel.CamelContext in project camel by apache.
the class EipDocumentationTest method testSimpleDocumentation.
@Test
public void testSimpleDocumentation() throws Exception {
CamelContext context = new DefaultCamelContext();
String json = context.getEipParameterJsonSchema("simple");
log.info(json);
assertNotNull("Should have found json for simple", json);
assertTrue(json.contains("\"label\": \"language,core,java\""));
assertTrue(json.contains("\"name\": \"simple\""));
}
use of org.apache.camel.CamelContext in project camel by apache.
the class GroovyLanguageConfigurationAndDocumentationTest method testLanguageJsonSchema.
@Test
public void testLanguageJsonSchema() throws Exception {
CamelContext context = new DefaultCamelContext();
String json = context.getLanguageParameterJsonSchema("groovy");
assertNotNull("Should have found some auto-generated JSON", json);
log.info(json);
assertTrue(json.contains("\"name\": \"groovy\""));
assertTrue(json.contains("\"modelName\": \"groovy\""));
}
use of org.apache.camel.CamelContext in project camel by apache.
the class SimpleLanguageConfigurationAndDocumentationTest method testLanguageJsonSchema.
@Test
public void testLanguageJsonSchema() throws Exception {
CamelContext context = new DefaultCamelContext();
String json = context.getLanguageParameterJsonSchema("simple");
assertNotNull("Should have found some auto-generated JSON", json);
log.info(json);
assertTrue(json.contains("\"name\": \"simple\""));
assertTrue(json.contains("\"modelName\": \"simple\""));
assertTrue(json.contains("\"resultType\": { \"kind\": \"attribute\", \"displayName\": \"Result Type\", \"required\": false, \"type\": \"string\", \"javaType\": \"java.lang.String\", \"deprecated\": false"));
}
use of org.apache.camel.CamelContext in project camel by apache.
the class StringDataFormatConfigurationAndDocumentationTest method testDataFormatJsonSchema.
@Test
public void testDataFormatJsonSchema() throws Exception {
CamelContext context = new DefaultCamelContext();
String json = context.getDataFormatParameterJsonSchema("string");
assertNotNull("Should have found some auto-generated JSON", json);
log.info(json);
assertTrue(json.contains("\"name\": \"string\""));
assertTrue(json.contains("\"modelName\": \"string\""));
assertTrue(json.contains("\"charset\": { \"kind\": \"attribute\", \"displayName\": \"Charset\", \"required\": false, \"type\": \"string\""));
}
Aggregations