Skip to content

Commit 2d3df16

Browse files
committed
Update CHANGELOG
1 parent c002c03 commit 2d3df16

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1111

1212
## [Unreleased]
13+
### Fixed
14+
- [JUnit Platform Engine] Implement toString on custom DiscoverySelectors
1315

1416
## [7.25.0] - 2025-07-10
1517
### Changed

cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine/CucumberDiscoverySelectors.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ public int hashCode() {
9797

9898
@Override
9999
public String toString() {
100-
return new ToStringBuilder(this).append("uri", this.uri).append("filePositions", this.filePositions).toString();
100+
return new ToStringBuilder(this) //
101+
.append("uri", this.uri) //
102+
.append("filePositions", this.filePositions) //
103+
.toString();
101104
}
102105
}
103106

@@ -164,7 +167,10 @@ public int hashCode() {
164167

165168
@Override
166169
public String toString() {
167-
return new ToStringBuilder(this).append("feature", this.feature.getUri()).append("element", this.element.getLocation()).toString();
170+
return new ToStringBuilder(this) //
171+
.append("feature", this.feature.getUri()) //
172+
.append("element", this.element.getLocation()) //
173+
.toString();
168174
}
169175
}
170176
}

0 commit comments

Comments
 (0)