@Test public void testGetModelsPaths() { final Path path1 = mock(Path.class); final Path path2 = mock(Path.class); final List<Path> expectedPaths = asList(path1, path2); when(pathsHelper.getModelsPaths(workspaceProject)).thenReturn(expectedPaths); final List<Path> actualPaths = service.getModelsPaths(workspaceProject); assertEquals(expectedPaths, actualPaths); }
@Override public List<Path> getModelsPaths(final WorkspaceProject workspaceProject) { return pathsHelper.getModelsPaths(workspaceProject); }
DMNContentServiceImpl extends KieService<String> implements DMNContentService { @Override public List<Path> getModelsPaths(final WorkspaceProject workspaceProject) { return pathsHelper.getModelsPaths(workspaceProject); } }
DMNContentServiceImpl extends KieService<String> implements DMNContentService { @Override public List<Path> getModelsPaths(final WorkspaceProject workspaceProject) { return pathsHelper.getModelsPaths(workspaceProject); } @Inject  DMNContentServiceImpl(final CommentedOptionFactory commentedOptionFactory,
                                 final DMNIOHelper dmnIOHelper,
                                 final DMNPathsHelper pathsHelper,
                                 final PMMLIncludedDocumentFactory pmmlIncludedDocumentFactory); }
DMNContentServiceImpl extends KieService<String> implements DMNContentService { @Override public List<Path> getModelsPaths(final WorkspaceProject workspaceProject) { return pathsHelper.getModelsPaths(workspaceProject); } @Inject  DMNContentServiceImpl(final CommentedOptionFactory commentedOptionFactory,
                                 final DMNIOHelper dmnIOHelper,
                                 final DMNPathsHelper pathsHelper,
                                 final PMMLIncludedDocumentFactory pmmlIncludedDocumentFactory); @Override String getContent(final Path path); @Override DMNContentResource getProjectContent(final Path path,
                                                final String defSetId); @Override void saveContent(final Path path,
                            final String content,
                            final Metadata metadata,
                            final String comment); @Override List<Path> getModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getDMNModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getPMMLModelsPaths(final WorkspaceProject workspaceProject); @Override PMMLDocumentMetadata loadPMMLDocumentMetadata(final Path path); @Override String getSource(final Path path); }
DMNContentServiceImpl extends KieService<String> implements DMNContentService { @Override public List<Path> getModelsPaths(final WorkspaceProject workspaceProject) { return pathsHelper.getModelsPaths(workspaceProject); } @Inject  DMNContentServiceImpl(final CommentedOptionFactory commentedOptionFactory,
                                 final DMNIOHelper dmnIOHelper,
                                 final DMNPathsHelper pathsHelper,
                                 final PMMLIncludedDocumentFactory pmmlIncludedDocumentFactory); @Override String getContent(final Path path); @Override DMNContentResource getProjectContent(final Path path,
                                                final String defSetId); @Override void saveContent(final Path path,
                            final String content,
                            final Metadata metadata,
                            final String comment); @Override List<Path> getModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getDMNModelsPaths(final WorkspaceProject workspaceProject); @Override List<Path> getPMMLModelsPaths(final WorkspaceProject workspaceProject); @Override PMMLDocumentMetadata loadPMMLDocumentMetadata(final Path path); @Override String getSource(final Path path);  }