@@ -216,15 +216,17 @@ private Function<TestDescriptor, Optional<TestDescriptor>> createTestDescriptor(
216
216
if (node instanceof Node .Rule ) {
217
217
return Optional .of (new RuleDescriptor (
218
218
parameters ,
219
- parent .getUniqueId ().append (FeatureOrigin .RULE_SEGMENT_TYPE , String .valueOf (node .getLocation ().getLine ())),
219
+ parent .getUniqueId ().append (FeatureOrigin .RULE_SEGMENT_TYPE ,
220
+ String .valueOf (node .getLocation ().getLine ())),
220
221
namingStrategy .name (node ),
221
222
source .nodeSource (node )));
222
223
}
223
224
224
225
if (node instanceof Node .Scenario ) {
225
226
return Optional .of (new PickleDescriptor (
226
227
parameters ,
227
- parent .getUniqueId ().append (FeatureOrigin .SCENARIO_SEGMENT_TYPE , String .valueOf (node .getLocation ().getLine ())),
228
+ parent .getUniqueId ().append (FeatureOrigin .SCENARIO_SEGMENT_TYPE ,
229
+ String .valueOf (node .getLocation ().getLine ())),
228
230
namingStrategy .name (node ),
229
231
source .nodeSource (node ),
230
232
feature .getPickleAt (node )));
@@ -233,23 +235,26 @@ private Function<TestDescriptor, Optional<TestDescriptor>> createTestDescriptor(
233
235
if (node instanceof Node .ScenarioOutline ) {
234
236
return Optional .of (new ScenarioOutlineDescriptor (
235
237
parameters ,
236
- parent .getUniqueId ().append (FeatureOrigin .SCENARIO_SEGMENT_TYPE , String .valueOf (node .getLocation ().getLine ())),
238
+ parent .getUniqueId ().append (FeatureOrigin .SCENARIO_SEGMENT_TYPE ,
239
+ String .valueOf (node .getLocation ().getLine ())),
237
240
namingStrategy .name (node ),
238
241
source .nodeSource (node )));
239
242
}
240
243
241
244
if (node instanceof Node .Examples ) {
242
245
return Optional .of (new ExamplesDescriptor (
243
246
parameters ,
244
- parent .getUniqueId ().append (FeatureOrigin .EXAMPLES_SEGMENT_TYPE , String .valueOf (node .getLocation ().getLine ())),
247
+ parent .getUniqueId ().append (FeatureOrigin .EXAMPLES_SEGMENT_TYPE ,
248
+ String .valueOf (node .getLocation ().getLine ())),
245
249
namingStrategy .name (node ),
246
250
source .nodeSource (node )));
247
251
}
248
252
249
253
if (node instanceof Node .Example ) {
250
254
return Optional .of (new PickleDescriptor (
251
255
parameters ,
252
- parent .getUniqueId ().append (FeatureOrigin .EXAMPLE_SEGMENT_TYPE , String .valueOf (node .getLocation ().getLine ())),
256
+ parent .getUniqueId ().append (FeatureOrigin .EXAMPLE_SEGMENT_TYPE ,
257
+ String .valueOf (node .getLocation ().getLine ())),
253
258
namingStrategy .name (node ),
254
259
source .nodeSource (node ),
255
260
feature .getPickleAt (node )));
0 commit comments