Skip to content

Commit e48870b

Browse files
committed
Fix spelling mistakes
1 parent fad0b27 commit e48870b

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

java/src/main/java/io/cucumber/junitxmlformatter/GherkingAstNodes.java renamed to java/src/main/java/io/cucumber/junitxmlformatter/GherkinAstNodes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import static java.util.Objects.requireNonNull;
1212

13-
class GherkingAstNodes {
13+
class GherkinAstNodes {
1414
private final Feature feature;
1515
private final Rule rule;
1616
private final Scenario scenario;
@@ -19,11 +19,11 @@ class GherkingAstNodes {
1919
private final Integer examplesIndex;
2020
private final Integer exampleIndex;
2121

22-
public GherkingAstNodes(Feature feature, Rule rule, Scenario scenario) {
22+
public GherkinAstNodes(Feature feature, Rule rule, Scenario scenario) {
2323
this(feature, rule, scenario, null, null, null, null);
2424
}
2525

26-
public GherkingAstNodes(Feature feature, Rule rule, Scenario scenario, Integer examplesIndex, Examples examples, Integer exampleIndex, TableRow example) {
26+
public GherkinAstNodes(Feature feature, Rule rule, Scenario scenario, Integer examplesIndex, Examples examples, Integer exampleIndex, TableRow example) {
2727
this.feature = requireNonNull(feature);
2828
this.rule = rule;
2929
this.scenario = requireNonNull(scenario);

java/src/main/java/io/cucumber/junitxmlformatter/MessagesToJunitXmlWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import static java.util.Objects.requireNonNull;
1212

1313
/**
14-
* Writes the message output of a test run as single page html report.
14+
* Writes the message output of a test run as single page xml report.
1515
* <p>
1616
* Note: Messages are first collected and only written once the stream is closed.
1717
*

java/src/main/java/io/cucumber/junitxmlformatter/Query.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Query {
6262
private final Map<String, Step> stepById = new ConcurrentHashMap<>();
6363
private final Map<String, TestStep> testStepById = new ConcurrentHashMap<>();
6464
private final Map<String, PickleStep> pickleStepById = new ConcurrentHashMap<>();
65-
private final Map<String, GherkingAstNodes> gherkinAstNodesById = new ConcurrentHashMap<>();
65+
private final Map<String, GherkinAstNodes> gherkinAstNodesById = new ConcurrentHashMap<>();
6666
private TestRunStarted testRunStarted;
6767
private TestRunFinished testRunFinished;
6868

@@ -71,14 +71,14 @@ public List<TestCaseStarted> findAllTestCaseStarted() {
7171
return new ArrayList<>(testCaseStarted);
7272
}
7373

74-
public Optional<GherkingAstNodes> findGherkinAstNodesBy(Pickle pickle) {
74+
public Optional<GherkinAstNodes> findGherkinAstNodesBy(Pickle pickle) {
7575
requireNonNull(pickle);
7676
List<String> astNodeIds = pickle.getAstNodeIds();
7777
String pickleAstNodeId = astNodeIds.get(astNodeIds.size() - 1);
7878
return Optional.ofNullable(gherkinAstNodesById.get(pickleAstNodeId));
7979
}
8080

81-
public Optional<GherkingAstNodes> findGherkinAstNodesBy(TestCaseStarted testCaseStarted) {
81+
public Optional<GherkinAstNodes> findGherkinAstNodesBy(TestCaseStarted testCaseStarted) {
8282
return findPickleBy(testCaseStarted)
8383
.flatMap(this::findGherkinAstNodesBy);
8484
}
@@ -233,7 +233,7 @@ private void updateTestRunStarted(TestRunStarted event) {
233233
}
234234

235235
private void updateScenario(Feature feature, Rule rule, Scenario scenario) {
236-
this.gherkinAstNodesById.put(scenario.getId(), new GherkingAstNodes(feature, rule, scenario));
236+
this.gherkinAstNodesById.put(scenario.getId(), new GherkinAstNodes(feature, rule, scenario));
237237
updateSteps(scenario.getSteps());
238238

239239
List<Examples> examples = scenario.getExamples();
@@ -242,7 +242,7 @@ private void updateScenario(Feature feature, Rule rule, Scenario scenario) {
242242
List<TableRow> tableRows = currentExamples.getTableBody();
243243
for (int exampleIndex = 0; exampleIndex < tableRows.size(); exampleIndex++) {
244244
TableRow currentExample = tableRows.get(exampleIndex);
245-
gherkinAstNodesById.put(currentExample.getId(), new GherkingAstNodes(feature, rule, scenario, examplesIndex, currentExamples, exampleIndex, currentExample));
245+
gherkinAstNodesById.put(currentExample.getId(), new GherkinAstNodes(feature, rule, scenario, examplesIndex, currentExamples, exampleIndex, currentExample));
246246
}
247247
}
248248
}

java/src/main/java/io/cucumber/junitxmlformatter/XmlReportData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ String getPickleName(TestCaseStarted testCaseStarted) {
7575
.orElse(pickle.getName());
7676
}
7777

78-
private static String getPickleName(GherkingAstNodes elements) {
78+
private static String getPickleName(GherkinAstNodes elements) {
7979
List<String> pieces = new ArrayList<>();
8080

8181
elements.rule().map(Rule::getName).ifPresent(pieces::add);
@@ -101,7 +101,7 @@ private static String getPickleName(GherkingAstNodes elements) {
101101

102102
public String getFeatureName(TestCaseStarted testCaseStarted) {
103103
return query.findGherkinAstNodesBy(testCaseStarted)
104-
.map(GherkingAstNodes::feature)
104+
.map(GherkinAstNodes::feature)
105105
.map(Feature::getName)
106106
.orElseThrow(() -> new IllegalStateException("No feature for " + testCaseStarted));
107107
}

0 commit comments

Comments
 (0)