use of org.talend.sdk.component.server.front.model.DependencyDefinition in project component-runtime by Talend.
the class ComponentResourceTest method getDependencies.
@Test
void getDependencies() {
final String compId = client.getJdbcId();
final Dependencies dependencies = base.path("component/dependencies").queryParam("identifier", compId).request(APPLICATION_JSON_TYPE).get(Dependencies.class);
assertEquals(1, dependencies.getDependencies().size());
final DependencyDefinition definition = dependencies.getDependencies().get(compId);
assertNotNull(definition);
assertEquals(1, definition.getDependencies().size());
assertEquals("org.apache.tomee:ziplock:jar:7.0.4", definition.getDependencies().iterator().next());
}
Aggregations