-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1186 from hcoles/feature/context_control
new extension points for manipulating environment
- Loading branch information
Showing
14 changed files
with
121 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
pitest/src/main/java/org/pitest/mutationtest/environment/CompositeReset.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.pitest.mutationtest.environment; | ||
|
||
import org.pitest.mutationtest.engine.Mutant; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class CompositeReset implements ResetEnvironment { | ||
private final List<ResetEnvironment> children; | ||
|
||
public CompositeReset(List<ResetEnvironment> children) { | ||
this.children = Collections.unmodifiableList(children); | ||
} | ||
|
||
@Override | ||
public void resetFor(Mutant mutatedClass) { | ||
for (ResetEnvironment each : children) { | ||
each.resetFor(mutatedClass); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
pitest/src/main/java/org/pitest/mutationtest/environment/EnvironmentResetPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.pitest.mutationtest.environment; | ||
|
||
import org.pitest.plugin.ClientClasspathPlugin; | ||
|
||
public interface EnvironmentResetPlugin extends ClientClasspathPlugin { | ||
|
||
ResetEnvironment make(); | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
pitest/src/main/java/org/pitest/mutationtest/environment/ResetEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.pitest.mutationtest.environment; | ||
|
||
import org.pitest.mutationtest.engine.Mutant; | ||
|
||
public interface ResetEnvironment { | ||
void resetFor(Mutant mutatedClass); | ||
} |
11 changes: 11 additions & 0 deletions
11
pitest/src/main/java/org/pitest/mutationtest/environment/TransformationPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.pitest.mutationtest.environment; | ||
|
||
import org.pitest.plugin.ClientClasspathPlugin; | ||
|
||
import java.lang.instrument.ClassFileTransformer; | ||
|
||
public interface TransformationPlugin extends ClientClasspathPlugin { | ||
|
||
ClassFileTransformer makeTransformer(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters