Package org.gradle.profiler.mutations
Class ApplyProjectDependencyChangeMutator
java.lang.Object
org.gradle.profiler.mutations.AbstractFileChangeMutator
org.gradle.profiler.mutations.ApplyProjectDependencyChangeMutator
- All Implemented Interfaces:
BuildMutator
Adds a project dependency to the source file.
Before the scenario it also generates projects that are later added as dependencies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class org.gradle.profiler.mutations.AbstractFileChangeMutator
sourceFileFields inherited from interface org.gradle.profiler.BuildMutator
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionApplyProjectDependencyChangeMutator(File projectDir, File sourceFile, ApplyProjectDependencyChangeMutator.ProjectCombinations projectCombinations, boolean shouldCreateProjects) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterScenario(ScenarioContext context) Runs after the last iteration of the scenario has finished.protected voidapplyChangeTo(BuildContext context, StringBuilder text) voidbeforeScenario(ScenarioContext context) Runs before the first iteration of the scenario.voidvalidate(BuildInvoker invoker) Validates if the mutator works with the given invoker.Methods inherited from class org.gradle.profiler.mutations.AbstractFileChangeMutator
beforeBuild, revert, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gradle.profiler.BuildMutator
afterBuild, afterCleanup, beforeCleanup
-
Constructor Details
-
ApplyProjectDependencyChangeMutator
public ApplyProjectDependencyChangeMutator(File projectDir, File sourceFile, ApplyProjectDependencyChangeMutator.ProjectCombinations projectCombinations, boolean shouldCreateProjects)
-
-
Method Details
-
beforeScenario
Description copied from interface:BuildMutatorRuns before the first iteration of the scenario.- Specified by:
beforeScenarioin interfaceBuildMutator- Overrides:
beforeScenarioin classAbstractFileChangeMutator
-
afterScenario
Description copied from interface:BuildMutatorRuns after the last iteration of the scenario has finished.- Specified by:
afterScenarioin interfaceBuildMutator- Overrides:
afterScenarioin classAbstractFileChangeMutator
-
validate
Description copied from interface:BuildMutatorValidates if the mutator works with the given invoker. -
applyChangeTo
- Specified by:
applyChangeToin classAbstractFileChangeMutator
-