@Test public void testSaveAndRename() throws Exception { final Path path = mock(Path.class); final String newFileName = "newFileName"; final Metadata metadata = mock(Metadata.class); final GuidedDecisionTree content = mock(GuidedDecisionTree.class); final String comment = "comment"; service.saveAndRename(path, newFileName, metadata, content, comment); verify(saveAndRenameService).saveAndRename(path, newFileName, metadata, content, comment); }
@Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final GuidedDecisionTree content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); }
GuidedDecisionTreeEditorServiceImpl extends KieService<GuidedDecisionTreeEditorContent> implements GuidedDecisionTreeEditorService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final GuidedDecisionTree content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); } }
GuidedDecisionTreeEditorServiceImpl extends KieService<GuidedDecisionTreeEditorContent> implements GuidedDecisionTreeEditorService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final GuidedDecisionTree content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); } GuidedDecisionTreeEditorServiceImpl(); @Inject  GuidedDecisionTreeEditorServiceImpl(final SessionInfo sessionInfo); }
GuidedDecisionTreeEditorServiceImpl extends KieService<GuidedDecisionTreeEditorContent> implements GuidedDecisionTreeEditorService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final GuidedDecisionTree content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); } GuidedDecisionTreeEditorServiceImpl(); @Inject  GuidedDecisionTreeEditorServiceImpl(final SessionInfo sessionInfo); @PostConstruct void init(); @Override Path create(final Path context,
                       final String fileName,
                       final GuidedDecisionTree content,
                       final String comment); @Override GuidedDecisionTree load(final Path path); @Override GuidedDecisionTreeEditorContent loadContent(final Path path); @Override PackageDataModelOracleBaselinePayload loadDataModel(final Path path); @Override Path save(final Path resource,
                     final GuidedDecisionTree model,
                     final Metadata metadata,
                     final String comment); @Override void delete(final Path path,
                       final String comment); @Override Path rename(final Path path,
                       final String newName,
                       final String comment); @Override Path copy(final Path path,
                     final String newName,
                     final String comment); @Override Path copy(final Path path,
                     final String newName,
                     final Path targetDirectory,
                     final String comment); @Override String toSource(final Path path,
                           final GuidedDecisionTree model); @Override List<ValidationMessage> validate(final Path path,
                                            final GuidedDecisionTree content); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final GuidedDecisionTree content,
                              final String comment); }
GuidedDecisionTreeEditorServiceImpl extends KieService<GuidedDecisionTreeEditorContent> implements GuidedDecisionTreeEditorService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final GuidedDecisionTree content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); } GuidedDecisionTreeEditorServiceImpl(); @Inject  GuidedDecisionTreeEditorServiceImpl(final SessionInfo sessionInfo); @PostConstruct void init(); @Override Path create(final Path context,
                       final String fileName,
                       final GuidedDecisionTree content,
                       final String comment); @Override GuidedDecisionTree load(final Path path); @Override GuidedDecisionTreeEditorContent loadContent(final Path path); @Override PackageDataModelOracleBaselinePayload loadDataModel(final Path path); @Override Path save(final Path resource,
                     final GuidedDecisionTree model,
                     final Metadata metadata,
                     final String comment); @Override void delete(final Path path,
                       final String comment); @Override Path rename(final Path path,
                       final String newName,
                       final String comment); @Override Path copy(final Path path,
                     final String newName,
                     final String comment); @Override Path copy(final Path path,
                     final String newName,
                     final Path targetDirectory,
                     final String comment); @Override String toSource(final Path path,
                           final GuidedDecisionTree model); @Override List<ValidationMessage> validate(final Path path,
                                            final GuidedDecisionTree content); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final GuidedDecisionTree content,
                              final String comment);  }