@Test public void testRename() { final Path path = mock(Path.class); final String newFileName = "newFileName"; final String comment = "comment"; service.rename(path, newFileName, comment); verify(renameService).rename(path, newFileName, comment); }
@Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); }
PomEditorServiceImpl implements PomEditorService { @Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); } }
PomEditorServiceImpl implements PomEditorService { @Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); } PomEditorServiceImpl(); @Inject  PomEditorServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final DefaultEditorService defaultEditorService,
                                final MetadataServerSideService metadataService,
                                final CommentedOptionFactory commentedOptionFactory,
                                final KieModuleService moduleService,
                                final POMContentHandler pomContentHandler,
                                final ModuleRepositoryResolver repositoryResolver,
                                final ModuleRepositoriesService moduleRepositoriesService,
                                final RenameService renameService,
                                final SaveAndRenameServiceImpl<String, Metadata> saveAndRenameService); }
PomEditorServiceImpl implements PomEditorService { @Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); } PomEditorServiceImpl(); @Inject  PomEditorServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final DefaultEditorService defaultEditorService,
                                final MetadataServerSideService metadataService,
                                final CommentedOptionFactory commentedOptionFactory,
                                final KieModuleService moduleService,
                                final POMContentHandler pomContentHandler,
                                final ModuleRepositoryResolver repositoryResolver,
                                final ModuleRepositoriesService moduleRepositoriesService,
                                final RenameService renameService,
                                final SaveAndRenameServiceImpl<String, Metadata> saveAndRenameService); @PostConstruct void init(); @Override DefaultEditorContent loadContent(final Path path); @Override Path save(final Path pomPath,
                     final String pomXml,
                     final Metadata metadata,
                     final String comment,
                     final DeploymentMode mode); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final String content,
                              final String comment); @Override Path rename(final Path path,
                       final String newName,
                       final String comment); @Override Path save(final Path path,
                     final String content,
                     final Metadata metadata,
                     final String comment); }
PomEditorServiceImpl implements PomEditorService { @Override public Path rename(final Path path, final String newName, final String comment) { return renameService.rename(path, newName, comment); } PomEditorServiceImpl(); @Inject  PomEditorServiceImpl(final @Named("ioStrategy") IOService ioService,
                                final DefaultEditorService defaultEditorService,
                                final MetadataServerSideService metadataService,
                                final CommentedOptionFactory commentedOptionFactory,
                                final KieModuleService moduleService,
                                final POMContentHandler pomContentHandler,
                                final ModuleRepositoryResolver repositoryResolver,
                                final ModuleRepositoriesService moduleRepositoriesService,
                                final RenameService renameService,
                                final SaveAndRenameServiceImpl<String, Metadata> saveAndRenameService); @PostConstruct void init(); @Override DefaultEditorContent loadContent(final Path path); @Override Path save(final Path pomPath,
                     final String pomXml,
                     final Metadata metadata,
                     final String comment,
                     final DeploymentMode mode); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final String content,
                              final String comment); @Override Path rename(final Path path,
                       final String newName,
                       final String comment); @Override Path save(final Path path,
                     final String content,
                     final Metadata metadata,
                     final String comment);  }