org.guvnor.common.services.project.model.Module.getIdentifier()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(93)

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

Module.getIdentifier介绍

暂无

代码示例

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

public String getEncodedIdentifier() {
  return URIUtil.encodeQueryString(getIdentifier());
}

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

public String getEncodedIdentifier() {
  return URIUtil.encodeQueryString(getIdentifier());
}

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

@Before
public void setup() {
  projectScopedResolutionStrategySupplier = spy(new ProjectScopedResolutionStrategySupplier(scopeResolutionStrategies));
  module = mock(Module.class);
  doReturn("projectIdentifier").when(module).getIdentifier();
  doReturn("projectIdentifierEncoded").when(module).getEncodedIdentifier();
}

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

@Before
public void setup() {
  projectScopedResolutionStrategySupplier = spy(new ProjectScopedResolutionStrategySupplier(scopeResolutionStrategies));
  module = mock(Module.class);
  doReturn("projectIdentifier").when(module).getIdentifier();
  doReturn("projectIdentifierEncoded").when(module).getEncodedIdentifier();
}

代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-library-client

protected WorkspaceProject createProject() {
  final Path rootPath = mock(Path.class);
  doReturn("git://modulePath").when(rootPath).toURI();
  final Module module = mock(Module.class);
  doReturn("mainModuleName").when(module).getModuleName();
  doReturn("modulePath").when(module).getIdentifier();
  doReturn(rootPath).when(module).getRootPath();
  final Path pomPath = mock(Path.class);
  doReturn(pomPath).when(module).getPomXMLPath();
  final OrganizationalUnit organizationalUnit = mock(OrganizationalUnit.class);
  final Repository repository = mock(Repository.class);
  final Path repositoryRootPath = mock(Path.class);
  doReturn(Optional.of(new Branch("master",
                  repositoryRootPath))).when(repository).getDefaultBranch();
  doReturn("rootpath").when(repositoryRootPath).toURI();
  return new WorkspaceProject(organizationalUnit,
                repository,
                new Branch("master",
                      mock(Path.class)),
                module);
}

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

@Test
public void testGetRepositoriesResolvingArtifact_Disabled2() {
  final Module module = mock(Module.class);
  doReturn("file://master@a/a%20b").when(module).getIdentifier();
  doCallRealMethod().when(module).getEncodedIdentifier();
  final org.uberfire.backend.vfs.Path vfsPomXmlPath = mock(org.uberfire.backend.vfs.Path.class);

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

@Test
public void testGetRepositoriesResolvingArtifact_Disabled2() {
  final Module module = mock(Module.class);
  doReturn("file://master@a/a%20b").when(module).getIdentifier();
  doCallRealMethod().when(module).getEncodedIdentifier();
  final org.uberfire.backend.vfs.Path vfsPomXmlPath = mock(org.uberfire.backend.vfs.Path.class);

相关文章