@@ -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 }
0 commit comments