use of com.fasterxml.jackson.databind.JsonNode in project camel by apache.
the class CamelCatalogTest method testAddComponent.
@Test
public void testAddComponent() throws Exception {
catalog.addComponent("dummy", "org.foo.camel.DummyComponent");
assertTrue(catalog.findComponentNames().contains("dummy"));
String json = catalog.componentJSonSchema("dummy");
assertNotNull(json);
// validate we can parse the json
ObjectMapper mapper = new ObjectMapper();
JsonNode tree = mapper.readTree(json);
assertNotNull(tree);
}
use of com.fasterxml.jackson.databind.JsonNode in project camel by apache.
the class CamelCatalogTest method testListComponentsAsJson.
@Test
public void testListComponentsAsJson() throws Exception {
String json = catalog.listComponentsAsJson();
assertNotNull(json);
// validate we can parse the json
ObjectMapper mapper = new ObjectMapper();
JsonNode tree = mapper.readTree(json);
assertNotNull(tree);
}
use of com.fasterxml.jackson.databind.JsonNode in project camel by apache.
the class CamelCatalogTest method testSummaryAsJson.
@Test
public void testSummaryAsJson() throws Exception {
String json = catalog.summaryAsJson();
assertNotNull(json);
// validate we can parse the json
ObjectMapper mapper = new ObjectMapper();
JsonNode tree = mapper.readTree(json);
assertNotNull(tree);
}
use of com.fasterxml.jackson.databind.JsonNode in project camel by apache.
the class CamelCatalogTest method testListLanguagesAsJson.
@Test
public void testListLanguagesAsJson() throws Exception {
String json = catalog.listLanguagesAsJson();
assertNotNull(json);
// validate we can parse the json
ObjectMapper mapper = new ObjectMapper();
JsonNode tree = mapper.readTree(json);
assertNotNull(tree);
}
use of com.fasterxml.jackson.databind.JsonNode in project camel by apache.
the class CamelCatalogTest method testListModelsAsJson.
@Test
public void testListModelsAsJson() throws Exception {
String json = catalog.listModelsAsJson();
assertNotNull(json);
// validate we can parse the json
ObjectMapper mapper = new ObjectMapper();
JsonNode tree = mapper.readTree(json);
assertNotNull(tree);
}
Aggregations