public abstract class AbstractFileChangeMutator extends java.lang.Object implements BuildMutator
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
sourceFile |
NOOP| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileChangeMutator(java.io.File sourceFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterScenario(ScenarioContext context)
Runs after the last iteration of the scenario has finished.
|
protected abstract void |
applyChangeTo(BuildContext context,
java.lang.StringBuilder text) |
void |
beforeBuild(BuildContext context)
Runs before starting an iteration of the build, after any potential cleanup has finished.
|
void |
beforeScenario(ScenarioContext context)
Runs before the first iteration of the scenario.
|
protected void |
revert(java.io.File file,
java.lang.String originalText) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitafterBuild, afterCleanup, beforeCleanup, validateprotected AbstractFileChangeMutator(java.io.File sourceFile)
public void beforeScenario(ScenarioContext context)
BuildMutatorbeforeScenario in interface BuildMutatorpublic void beforeBuild(BuildContext context)
BuildMutatorbeforeBuild in interface BuildMutatorprotected abstract void applyChangeTo(BuildContext context, java.lang.StringBuilder text)
public void afterScenario(ScenarioContext context)
BuildMutatorafterScenario in interface BuildMutatorprotected void revert(java.io.File file,
java.lang.String originalText)
public java.lang.String toString()
toString in class java.lang.Object