Tabnine Logo
ResourceResolver.resolveDefaultWorkspacePackage
Code IndexAdd Tabnine to your IDE (free)

How to use
resolveDefaultWorkspacePackage
method
in
org.guvnor.common.services.project.backend.server.ResourceResolver

Best Java code snippets using org.guvnor.common.services.project.backend.server.ResourceResolver.resolveDefaultWorkspacePackage (Showing top 4 results out of 315)

origin: org.kie.workbench.services/kie-wb-common-services-backend

@Override
public Package resolveDefaultWorkspacePackage(final Module project) {
  return resourceResolver.resolveDefaultWorkspacePackage(project);
}
origin: kiegroup/appformer

@Test
public void getDefaultWorkspacePathTest() {
  final Module project = mock(Module.class);
  final POM pom = mock(POM.class);
  doReturn(pom).when(project).getPom();
  final GAV gav = mock(GAV.class);
  doReturn(gav).when(pom).getGav();
  final Path path = mock(Path.class);
  doReturn(path).when(project).getRootPath();
  when(path.toURI()).thenReturn("file:///myproject/");
  doReturn("com.group").when(gav).getGroupId();
  doReturn("package").when(gav).getArtifactId();
  final ArgumentCaptor<Path> packagePathArgumentCaptor = ArgumentCaptor.forClass(Path.class);
  resourceResolver.resolveDefaultWorkspacePackage(project);
  verify(resourceResolver).resolvePackage(packagePathArgumentCaptor.capture());
  final Path packagePath = packagePathArgumentCaptor.getValue();
  assertEquals("file:///myproject/src/main/resources/com/group/_package",
         packagePath.toURI());
}
origin: org.uberfire/uberfire-project-backend

@Test
public void getDefaultWorkspacePathTest() {
  final Module project = mock(Module.class);
  final POM pom = mock(POM.class);
  doReturn(pom).when(project).getPom();
  final GAV gav = mock(GAV.class);
  doReturn(gav).when(pom).getGav();
  final Path path = mock(Path.class);
  doReturn(path).when(project).getRootPath();
  when(path.toURI()).thenReturn("file:///myproject/");
  doReturn("com.group").when(gav).getGroupId();
  doReturn("package").when(gav).getArtifactId();
  final ArgumentCaptor<Path> packagePathArgumentCaptor = ArgumentCaptor.forClass(Path.class);
  resourceResolver.resolveDefaultWorkspacePackage(project);
  verify(resourceResolver).resolvePackage(packagePathArgumentCaptor.capture());
  final Path packagePath = packagePathArgumentCaptor.getValue();
  assertEquals("file:///myproject/src/main/resources/com/group/_package",
         packagePath.toURI());
}
origin: org.guvnor/guvnor-project-backend

@Test
public void getDefaultWorkspacePathTest() {
  final Project project = mock(Project.class);
  final POM pom = mock(POM.class);
  doReturn(pom).when(project).getPom();
  final GAV gav = mock(GAV.class);
  doReturn(gav).when(pom).getGav();
  final Path path = mock(Path.class);
  doReturn(path).when(project).getRootPath();
  when(path.toURI()).thenReturn("default:///myproject/");
  doReturn("com.group").when(gav).getGroupId();
  doReturn("package").when(gav).getArtifactId();
  final ArgumentCaptor<Path> packagePathArgumentCaptor = ArgumentCaptor.forClass(Path.class);
  resourceResolver.resolveDefaultWorkspacePackage(project);
  verify(resourceResolver).resolvePackage(packagePathArgumentCaptor.capture());
  final Path packagePath = packagePathArgumentCaptor.getValue();
  assertEquals("default:///myproject/src/main/resources/com/group/_package",
         packagePath.toURI());
}
org.guvnor.common.services.project.backend.serverResourceResolverresolveDefaultWorkspacePackage

Popular methods of ResourceResolver

  • resolvePackage
  • getDefaultWorkspacePath
  • isPom
  • resolveDefaultPath
  • resolveModule
  • getLegalId
  • getPackageDisplayName
  • getPackageNames
  • getPackagePathSuffix
  • getPackageRelativeCaption
  • hasPom
  • initResourcePathResolvers
  • hasPom,
  • initResourcePathResolvers,
  • makePackage,
  • newPackage,
  • resolvePkgName,
  • resolveProject,
  • simpleModuleInstance,
  • addSecurityGroups,
  • findProjectConfig

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now