io.codemodder.CodemodExecutorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-testutils Show documentation
Show all versions of codemodder-testutils Show documentation
Utilities for testing codemods
The newest version!
package io.codemodder;
import io.codemodder.javaparser.JavaParserFacade;
import java.nio.file.Path;
import java.util.List;
/** A utility for generating a {@link CodemodExecutor} for testing, with some sane defaults. */
public interface CodemodExecutorFactory {
static CodemodExecutor from(
final Path projectDir,
final IncludesExcludes includesExcludes,
final CodemodIdPair codemod,
final List projectProviders,
final List codetfProviders,
final FileCache fileCache,
final JavaParserFacade javaParser,
final EncodingDetector encodingDetector) {
return new DefaultCodemodExecutor(
projectDir,
includesExcludes,
codemod,
projectProviders,
codetfProviders,
fileCache,
javaParser,
encodingDetector,
10_000_000,
10_000,
-1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy