@Test @Order(0) @Named("When I define a variable in the background") public void _whenIDefineAVariableInTheBackground() { final StepArguments args = new StepArguments( "package bootstrap4\nFeature: Variable test\n\tBackground:\n\t\tint x\n\t\tGiven some variable\n\t\t\tx = 3\n\tScenario: Some scenario\n\t\t\tThen x should be 3\n\t\t\t\tx => 3\n"); String _first = JnarioIterableExtensions.<String>first(args); this.jnarioFile = _first; }
@Test @Order(0) @Named("When I have a feature with parameters") public void whenIHaveAFeatureWithParameters() { StepArguments _stepArguments = new StepArguments( "package bootstrap\nFeature: Test feature\n\tScenario: using fields in step definitions\n\t\tString x\n\t\tGiven some values \"3\", \"4\"\n\t\t\tx = args.get(0)\n\t\tThen it should be possible to get the value\n\t\t\tx => \"3\"\n"); final StepArguments args = _stepArguments; String _first = JnarioIterableExtensions.<String>first(args); this.jnarioFile = _first; }