@@ -62,7 +62,7 @@ class Query {
62
62
private final Map <String , Step > stepById = new ConcurrentHashMap <>();
63
63
private final Map <String , TestStep > testStepById = new ConcurrentHashMap <>();
64
64
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 <>();
66
66
private TestRunStarted testRunStarted ;
67
67
private TestRunFinished testRunFinished ;
68
68
@@ -71,14 +71,14 @@ public List<TestCaseStarted> findAllTestCaseStarted() {
71
71
return new ArrayList <>(testCaseStarted );
72
72
}
73
73
74
- public Optional <GherkingAstNodes > findGherkinAstNodesBy (Pickle pickle ) {
74
+ public Optional <GherkinAstNodes > findGherkinAstNodesBy (Pickle pickle ) {
75
75
requireNonNull (pickle );
76
76
List <String > astNodeIds = pickle .getAstNodeIds ();
77
77
String pickleAstNodeId = astNodeIds .get (astNodeIds .size () - 1 );
78
78
return Optional .ofNullable (gherkinAstNodesById .get (pickleAstNodeId ));
79
79
}
80
80
81
- public Optional <GherkingAstNodes > findGherkinAstNodesBy (TestCaseStarted testCaseStarted ) {
81
+ public Optional <GherkinAstNodes > findGherkinAstNodesBy (TestCaseStarted testCaseStarted ) {
82
82
return findPickleBy (testCaseStarted )
83
83
.flatMap (this ::findGherkinAstNodesBy );
84
84
}
@@ -233,7 +233,7 @@ private void updateTestRunStarted(TestRunStarted event) {
233
233
}
234
234
235
235
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 ));
237
237
updateSteps (scenario .getSteps ());
238
238
239
239
List <Examples > examples = scenario .getExamples ();
@@ -242,7 +242,7 @@ private void updateScenario(Feature feature, Rule rule, Scenario scenario) {
242
242
List <TableRow > tableRows = currentExamples .getTableBody ();
243
243
for (int exampleIndex = 0 ; exampleIndex < tableRows .size (); exampleIndex ++) {
244
244
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 ));
246
246
}
247
247
}
248
248
}
0 commit comments