checkSyntaxBuilderWithStepImpls(stepImpls);
}
private void checkSyntaxBuilderWithStepImpls(final List<Class<?>> stepImpls) {
final Syntax syntax = SyntaxBuilder.buildSyntax(stepImpls, new File(
"./target/test-classes/substeps/allFeatures.substeps"));
final List<StepImplementation> stepImplementations = syntax.getStepImplementations();
Assert.assertFalse("expecting some step impls", stepImplementations.isEmpty());
System.out.println("\nStep implementations\n");
for (final StepImplementation impl : stepImplementations) {
System.out.println(impl.getKeyword() + " " + impl.getValue() + " : "
+ impl.getImplementedIn().getSimpleName() + "." + impl.getMethod().getName());
}
final List<ParentStep> sortedList = syntax.getSortedRootSubSteps();
System.out.println("\n\n\nSubSteps\n");
for (final ParentStep parent : sortedList) {
final StringBuilder buf = new StringBuilder();