use of org.kie.workbench.common.services.shared.dependencies.NormalEnhancedDependency in project kie-wb-common by kiegroup.
the class EnhancedDependenciesManager_onEchancedDependenciesLoadedTest method testEditingEnhancedUpdatesOriginal.
@Test
public void testEditingEnhancedUpdatesOriginal() throws Exception {
final EnhancedDependencies loadedEnhancedDependencies = new EnhancedDependencies();
loadedEnhancedDependencies.add(new NormalEnhancedDependency(makeDependency("org.junit", "junit", "1.0"), new HashSet<String>()));
enhancedDependenciesManager.onEnhancedDependenciesUpdated(loadedEnhancedDependencies);
final EnhancedDependency enhancedDependency = shownDependencies.asList().get(0);
enhancedDependency.getDependency().setArtifactId("newId");
assertEquals("newId", junit.getArtifactId());
}
Aggregations