Search in sources :

Example 1 with DependencyDefinition

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());
}
Also used : Dependencies(org.talend.sdk.component.server.front.model.Dependencies) DependencyDefinition(org.talend.sdk.component.server.front.model.DependencyDefinition) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 Dependencies (org.talend.sdk.component.server.front.model.Dependencies)1 DependencyDefinition (org.talend.sdk.component.server.front.model.DependencyDefinition)1