File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/java/io/cucumber/junitxmlformatter
test/java/io/cucumber/junitxmlformatter Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public Builder testClassName(String testClassName) {
7676 * {@link NamingStrategy.Strategy#LONG} strategy with {@link NamingStrategy.FeatureName#EXCLUDE} and
7777 * {@link NamingStrategy.ExampleName#NUMBER_AND_PICKLE_IF_PARAMETERIZED}.
7878 */
79- public Builder namingStrategy (NamingStrategy namingStrategy ) {
79+ public Builder testNamingStrategy (NamingStrategy namingStrategy ) {
8080 this .testNamingStrategy = requireNonNull (namingStrategy );
8181 return this ;
8282 }
Original file line number Diff line number Diff line change 2929import java .util .stream .Stream ;
3030
3131import static io .cucumber .junitxmlformatter .Jackson .OBJECT_MAPPER ;
32+ import static io .cucumber .query .NamingStrategy .Strategy .LONG ;
33+ import static io .cucumber .query .NamingStrategy .strategy ;
3234import static org .xmlunit .assertj .XmlAssert .assertThat ;
3335
3436class MessagesToJunitXmlWriterAcceptanceTest {
@@ -57,9 +59,7 @@ static List<TestCase> acceptance() throws IOException {
5759 MessagesToJunitXmlWriter .builder ()
5860 .testSuiteName ("Cucumber Suite" )
5961 .testClassName ("Cucumber Class" )
60- .namingStrategy (NamingStrategy
61- .strategy (Strategy .LONG )
62- .build ())
62+ .testNamingStrategy (strategy (LONG ).build ())
6363 )
6464 );
6565
You can’t perform that action at this time.
0 commit comments