Skip to content

Commit 5a7a317

Browse files
authored
Fix/naming within junit test (#3126)
* synchronize test-methode's name and result String * synchronize variable name and referred method's number of arguments
1 parent a22c82f commit 5a7a317

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cucumber-java/src/test/java/io/cucumber/java/JavaDefaultParameterTransformerDefinitionTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void must_have_two_arguments() throws Throwable {
7979
}
8080

8181
public Object one_argument(String fromValue) {
82-
return "one_arguments";
82+
return "one_argument";
8383
}
8484

8585
public Object three_arguments(String fromValue, Type toValueType, Object extra) {
@@ -88,10 +88,10 @@ public Object three_arguments(String fromValue, Type toValueType, Object extra)
8888

8989
@Test
9090
void must_have_string_or_object_as_from_value() throws Throwable {
91-
Method threeArg = JavaDefaultParameterTransformerDefinitionTest.class.getMethod("map_as_from_value", Map.class,
91+
Method twoArg = JavaDefaultParameterTransformerDefinitionTest.class.getMethod("map_as_from_value", Map.class,
9292
Type.class);
9393
assertThrows(InvalidMethodSignatureException.class,
94-
() -> new JavaDefaultParameterTransformerDefinition(threeArg, lookup));
94+
() -> new JavaDefaultParameterTransformerDefinition(twoArg, lookup));
9595
}
9696

9797
public Object map_as_from_value(Map<String, String> fromValue, Type toValueType) {
@@ -100,10 +100,10 @@ public Object map_as_from_value(Map<String, String> fromValue, Type toValueType)
100100

101101
@Test
102102
void must_have_type_as_to_value_type() throws Throwable {
103-
Method threeArg = JavaDefaultParameterTransformerDefinitionTest.class.getMethod("object_as_to_value_type",
103+
Method twoArg = JavaDefaultParameterTransformerDefinitionTest.class.getMethod("object_as_to_value_type",
104104
String.class, Object.class);
105105
assertThrows(InvalidMethodSignatureException.class,
106-
() -> new JavaDefaultParameterTransformerDefinition(threeArg, lookup));
106+
() -> new JavaDefaultParameterTransformerDefinition(twoArg, lookup));
107107
}
108108

109109
public Object object_as_to_value_type(String fromValue, Object toValueType) {

0 commit comments

Comments
 (0)