Skip to content

Commit d16fe84

Browse files
committed
Update CHANGELOG
1 parent 8e56ceb commit d16fe84

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased] (In Git)
99

1010
### Added
11+
* [JUnit] Warn about usage of io.cucumber.testng.CucumberOptions
12+
* [TestNG] Warn about usage of io.cucumber.junit.CucumberOptions
1113

1214
### Changed
1315

junit/src/main/java/io/cucumber/junit/JUnitCucumberOptionsProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ private static void warnWhenTestNGCucumberOptionsAreUsed(Class<?> clazz) {
2727
String name = clazzAnnotation.annotationType().getName();
2828
if ("io.cucumber.testng.CucumberOptions".equals(name)) {
2929
log.warn(() -> "Ignoring options provided by " + name + " on " + clazz.getName() + ". " +
30-
"It is recommend to use separate runner classes for JUnit and TestNG."
31-
);
30+
"It is recommend to use separate runner classes for JUnit and TestNG.");
3231
}
3332
}
3433
}

testng/src/main/java/io/cucumber/testng/TestNGCucumberOptionsProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ private static void warnWhenJUnitCucumberOptionsAreUsed(Class<?> clazz) {
2727
String name = clazzAnnotation.annotationType().getName();
2828
if ("io.cucumber.junit.CucumberOptions".equals(name)) {
2929
log.warn(() -> "Ignoring options provided by " + name + " on " + clazz.getName() + ". " +
30-
"It is recommend to use separate runner classes for JUnit and TestNG."
31-
);
30+
"It is recommend to use separate runner classes for JUnit and TestNG.");
3231
}
3332
}
3433
}

0 commit comments

Comments
 (0)