commit d707378c4fb802647125e99f7b08ee443ba5e19e Author: Mauro Talevi <mauro.tal...@aquilonia.org> AuthorDate: Mon, 17 Jun 2013 08:53:07 +0100 Commit: Mauro Talevi <mauro.tal...@aquilonia.org> CommitDate: Sun, 21 Jul 2013 18:40:14 +0200
JBEHAVE-922: Renamed example custom type, used both for annotated and non-annotated parameter mapping. diff --git a/examples/core/src/main/java/org/jbehave/examples/core/steps/ExamplesTableParametersSteps.java b/examples/core/src/main/java/org/jbehave/examples/core/steps/ExamplesTableParametersSteps.java index d171418..3683ac6 100644 --- a/examples/core/src/main/java/org/jbehave/examples/core/steps/ExamplesTableParametersSteps.java +++ b/examples/core/src/main/java/org/jbehave/examples/core/steps/ExamplesTableParametersSteps.java @@ -12,27 +12,27 @@ import org.jbehave.core.annotations.Parameter; public class ExamplesTableParametersSteps { @Given("the parameters mapped via annotations to custom types: %table") - public void givenTheAnnotatedParametersList(List<AnnotatedParameters> list) { + public void givenTheMyParametersList(List<MyParameters> list) { System.out.println("List annotated: "+list); } @Given("the parameters mapped via annotations to custom type: %table") - public void givenTheAnnotatedParametersType(AnnotatedParameters type) { - System.out.println("Single annotated: "+type); + public void givenTheMyParametersType(MyParameters single) { + System.out.println("Single annotated: "+single); } @Given("the parameters mapped via names to custom types: %table") - public void givenTheNamedParametersList(List<AnnotatedParameters> list) { + public void givenTheNamedParametersList(List<MyParameters> list) { System.out.println("List named: "+list); } @Given("the parameters mapped via names to custom type: %table") - public void givenTheNamedParametersType(AnnotatedParameters type) { - System.out.println("Single named: "+type); + public void givenTheNamedParametersType(MyParameters single) { + System.out.println("Single named: "+single); } @AsParameters - public static class AnnotatedParameters { + public static class MyParameters { @Parameter(name = "aString") private String string; @Parameter(name = "anInteger")