org.guvnor.common.services.project.model.Dependencies.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(150)

本文整理了Java中org.guvnor.common.services.project.model.Dependencies.<init>()方法的一些代码示例,展示了Dependencies.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dependencies.<init>()方法的具体详情如下:
包路径:org.guvnor.common.services.project.model.Dependencies
类名称:Dependencies
方法名:<init>

Dependencies.<init>介绍

暂无

代码示例

代码示例来源:origin: org.uberfire/uberfire-project-api

public Dependencies getDependencies() {
  return new Dependencies(dependencies);
}

代码示例来源:origin: kiegroup/appformer

public Dependencies getDependencies() {
  return new Dependencies(dependencies);
}

代码示例来源:origin: org.jbpm/jbpm-wb-integration-backend

private Dependencies getValidDependenciesForWorkitem(Dependencies projectDepends,
                              RepoData workitem,
                              boolean useVersionRange) {
  Dependencies validDepends = new Dependencies();
  Dependencies workItemDepends = new Dependencies();
  workitem.getMavenDependencies().forEach(dep -> workItemDepends.add(new Dependency(new GAV(dep.getGroupId(), 
                                              dep.getArtifactId(), 
                                              resolveVersion(dep.getVersion(), useVersionRange)))));
  for (Dependency depends : workItemDepends) {
    if (!projectDepends.containsDependency(depends)) {
      validDepends.add(depends);
    }
  }
  return validDepends;
}

代码示例来源:origin: kiegroup/jbpm-wb

private Dependencies getValidDependenciesForWorkitem(Dependencies projectDepends,
                              RepoData workitem,
                              boolean useVersionRange) {
  Dependencies validDepends = new Dependencies();
  Dependencies workItemDepends = new Dependencies();
  workitem.getMavenDependencies().forEach(dep -> workItemDepends.add(new Dependency(new GAV(dep.getGroupId(), 
                                              dep.getArtifactId(), 
                                              resolveVersion(dep.getVersion(), useVersionRange)))));
  for (Dependency depends : workItemDepends) {
    if (!projectDepends.containsDependency(depends)) {
      validDepends.add(depends);
    }
  }
  return validDepends;
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-project-backend

@Test
  public void testInstall() {
    KieModule module = mock(KieModule.class);
    Path pomXMLPath = mock(Path.class);
    POM pom = mock(POM.class);
    when(moduleService.resolveModule(eq(root))).thenReturn(module);
    when(module.getPomXMLPath()).thenReturn(pomXMLPath);
    when(pomService.load(eq(pomXMLPath))).thenReturn(pom);
    Dependencies dependencies = new Dependencies(Collections.emptyList());
    when(pom.getDependencies()).thenReturn(dependencies);
    org.guvnor.common.services.shared.metadata.model.Metadata projMetadata =
        mock(org.guvnor.common.services.shared.metadata.model.Metadata.class);
    when(metadataService.getMetadata(pomXMLPath)).thenReturn(projMetadata);
    tested.install(Collections.singleton(WID),
            this.metadata);
    verify(pomService, times(1))
        .save(eq(pomXMLPath),
           eq(pom),
           eq(projMetadata),
           anyString(),
           eq(false));
  }
}

代码示例来源:origin: kiegroup/drools-wb

@Test
public void editPomIfNecessaryTest() {
  String groupId = "groupId";
  String artifactId = "artifactId";
  String version = "version";
  POM pom = new POM();
  GAV gav = new GAV(groupId, artifactId, version);
  Dependencies dependencies = new Dependencies();
  service.editPomIfNecessary(path, pom, dependencies, gav);
  verify(pomService, times(1))
      .save(any(Path.class),
         any(POM.class),
         any(Metadata.class),
         anyString());
  reset(pomService);
  ;
  service.editPomIfNecessary(path, pom, dependencies, gav);
  verify(pomService, times(0))
      .save(any(Path.class),
         any(POM.class),
         any(Metadata.class),
         anyString());
}

代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-bpmn-backend

.filter(Objects::nonNull)
        .collect(Collectors.toList());
workItem.setDependencies(new Dependencies(dependencyList));
return workItem;

代码示例来源:origin: org.jbpm/jbpm-wb-integration-backend

Dependencies workItemDepends = new Dependencies();
service.getMavenDependencies().forEach(dep -> workItemDepends.add(new Dependency(new GAV(dep.getGroupId(), 
                                            dep.getArtifactId(),

代码示例来源:origin: kiegroup/jbpm-wb

Dependencies workItemDepends = new Dependencies();
service.getMavenDependencies().forEach(dep -> workItemDepends.add(new Dependency(new GAV(dep.getGroupId(), 
                                            dep.getArtifactId(),

代码示例来源:origin: kiegroup/appformer

@Before
public void setUp() {
  dependencies = new Dependencies();
  droolsCore = new Dependency(new GAV("org.drools:drools-core:5.0"));
  droolsCore.setScope("compile");
  dependencies.add(droolsCore);
  Dependency junit = new Dependency(new GAV("junit:junit:4.11"));
  junit.setScope("test");
  dependencies.add(junit);
  Dependency depWithoutScope = new Dependency(new GAV("mygroup:depWithoutScope:1.0"));
  dependencies.add(depWithoutScope);
}

相关文章