public interface RefactoringCapable
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
List<RefactoringTask> |
getFileMoveOrCopyRefactoringTasks(Map<File,File> changes)
Get the list of refactoring tasks for the argument map of file updates.
|
List<File> |
getTemporaryFiles(File scriptFile)
Get the temporary files created by the script.
|
void |
refactoringCompleted()
Called after the refactoring of the tasks returned by the implementing
object gets successfully completed.
|
List<RefactoringTask> getFileMoveOrCopyRefactoringTasks(Map<File,File> changes)
changes
- a map of [newFile, oldFile] pairs identifying the files
that were moved or copied.List<File> getTemporaryFiles(File scriptFile)
Get the temporary files created by the script. For example, a Java test script may have one or more .class files in the classes/ folder. A TPR script may also produce .class files resulting from a compilation of a Java code block.
The method should work even if the script source code hasn't been loaded yet. Rather than caching the list of created files and returning it the method should query the local file system and search the usual locations for files that meet a certain pattern. For example, a Java test script may expect that the /classes folder will contain the compiled code as one or more .class files of known name or name pattern.
scriptFile
- optional script file to be used when the test script
interpret hasn't been associated with a file (URI) yet. If the argument
is null the interpret must default to the file returned by TestScriptInterpret.getURI()
.void refactoringCompleted()