From 85da54b3231fdc57c276a62118e0288d04de32b5 Mon Sep 17 00:00:00 2001 From: Patrick Altaie Date: Fri, 5 Jul 2024 15:28:34 +0100 Subject: [PATCH] Use import static for Assertions in archetype (#2899) Fixes: #2898 --- CHANGELOG.md | 1 + .../archetype-resources/src/test/java/StepDefinitions.java | 2 +- .../reference/src/test/java/com/example/StepDefinitions.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb4c6bf055..8d4b9a6c04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Changed - [Core] Include parameterized scenario name in JUnit and TestNG XML report +- [Archetype] Use `import static` for Assertions in archetype ([#2899](https://github.com/cucumber/cucumber-jvm/issues/2798) Patrick Altaie) ## [7.18.0] - 2024-05-17 ### Added diff --git a/cucumber-archetype/src/main/resources/archetype-resources/src/test/java/StepDefinitions.java b/cucumber-archetype/src/main/resources/archetype-resources/src/test/java/StepDefinitions.java index f34f3e669d..eb4f9e9a8a 100644 --- a/cucumber-archetype/src/main/resources/archetype-resources/src/test/java/StepDefinitions.java +++ b/cucumber-archetype/src/main/resources/archetype-resources/src/test/java/StepDefinitions.java @@ -2,7 +2,7 @@ import io.cucumber.java.en.*; -import org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.*; public class StepDefinitions { diff --git a/cucumber-archetype/src/test/resources/projects/should-generate-project/reference/src/test/java/com/example/StepDefinitions.java b/cucumber-archetype/src/test/resources/projects/should-generate-project/reference/src/test/java/com/example/StepDefinitions.java index 5cea391f8c..b34aad7b2c 100644 --- a/cucumber-archetype/src/test/resources/projects/should-generate-project/reference/src/test/java/com/example/StepDefinitions.java +++ b/cucumber-archetype/src/test/resources/projects/should-generate-project/reference/src/test/java/com/example/StepDefinitions.java @@ -2,7 +2,7 @@ import io.cucumber.java.en.*; -import org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.*; public class StepDefinitions {