Skip to content

Commit

Permalink
chore(deps): Bump org.pitest:pitest-maven from 1.16.3 to 1.18.0 (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Feb 6, 2025
1 parent 4c1e102 commit b5c4ac5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<assert-j.version>3.27.3</assert-j.version>
<jackson-jr.version>2.17.2</jackson-jr.version>
<junit-jupiter.version>5.11.4</junit-jupiter.version>
<pitest.version>1.18.0</pitest.version>
<wiremock.version>2.35.2</wiremock.version>
</properties>

Expand Down Expand Up @@ -74,7 +75,7 @@
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-entry</artifactId>
<version>1.14.0</version>
<version>${pitest.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -213,7 +214,7 @@
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.16.3</version>
<version>${pitest.version}</version>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void should_have_description() {
void should_create_listener() {
// arrange
var reportOptions = new ReportOptions();
var args = new ListenerArguments(null, null, null, null, System.currentTimeMillis(), false, reportOptions);
var args = new ListenerArguments(null, null, null, null, System.currentTimeMillis(), false, reportOptions, Collections.emptyList());

// act
var listener = factory.getListener(new Properties(), args);
Expand All @@ -51,7 +51,7 @@ void should_specify_module_name_if_supplied() {
props.put(STRYKER_MODULE_NAME_PROPERTY, "example-1");
var reportOptions = new ReportOptions();

var args = new ListenerArguments(null, null, null, null, System.currentTimeMillis(), false, reportOptions);
var args = new ListenerArguments(null, null, null, null, System.currentTimeMillis(), false, reportOptions, Collections.emptyList());

// act
var listener = factory.getListener(props, args);
Expand All @@ -66,8 +66,12 @@ void should_have_code_source() {
// arrange
var props = new Properties();
var reportOptions = new ReportOptions();
reportOptions.setClassPathElements(Collections.singleton("target/test-classes"));
reportOptions.setTargetTests(Collections.singleton(
className -> true // Include all classes for simplicity
));

var args = new ListenerArguments(null, null, null, null, System.currentTimeMillis(), false, reportOptions);
var args = new ListenerArguments(null, null, null, null, System.currentTimeMillis(), false, reportOptions, Collections.emptyList());

// act
var listener = factory.getListener(props, args);
Expand All @@ -79,9 +83,7 @@ void should_have_code_source() {
.satisfies(codeSource -> {
assertThat(codeSource.getClassPath()).isNotNull();
var ownClassName = ClassName.fromClass(getClass());
assertThat(codeSource.getClassInfo(Collections.singleton(ownClassName)))
.isNotNull()
.isNotEmpty();
assertThat(codeSource.getAllClassAndTestNames()).contains(ownClassName);
});
}
}

0 comments on commit b5c4ac5

Please sign in to comment.