use of org.guvnor.common.services.project.model.Dependency in project kie-wb-common by kiegroup.
the class DependenciesPresenterTest method testAddDependency.
@Test
public void testAddDependency() {
final Dependency dependency = mock(Dependency.class);
dependenciesPresenter.add(dependency);
verify(enhancedDependenciesManager).addNew(eq(dependency));
}
use of org.guvnor.common.services.project.model.Dependency in project kie-wb-common by kiegroup.
the class DependencyLoader method returnDefault.
private void returnDefault() {
final EnhancedDependencies enhancedDependencies = new EnhancedDependencies();
for (final Dependency dependency : updateQueue) {
enhancedDependencies.add(new NormalEnhancedDependency(dependency, new HashSet<>()));
}
updateQueue.clear();
manager.onEnhancedDependenciesUpdated(enhancedDependencies);
}
use of org.guvnor.common.services.project.model.Dependency in project kie-wb-common by kiegroup.
the class DependencyTestUtils method makeDependency.
public static Dependency makeDependency(final String groupID, final String artifactID, final String version, final String scope) {
final Dependency dependency = new Dependency(new GAV(groupID, artifactID, version));
dependency.setScope(scope);
return dependency;
}
use of org.guvnor.common.services.project.model.Dependency in project kie-wb-common by kiegroup.
the class DependencyLoaderLoadFailureTest method makeDependency.
private Dependency makeDependency(final String groupId, final String artifactId, final String version) {
final Dependency dependency = new Dependency();
dependency.setGroupId(groupId);
dependency.setArtifactId(artifactId);
dependency.setVersion(version);
return dependency;
}
use of org.guvnor.common.services.project.model.Dependency in project kie-wb-common by kiegroup.
the class EnhancedDependenciesManagerResetTest method makeDependency.
private Dependency makeDependency() {
final Dependency dependency = new Dependency();
dependency.setScope("compile");
return dependency;
}
Aggregations