Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
leeonky committed Oct 15, 2023
1 parent 6a83187 commit fc00bc5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/test/resources/features/2-spec.feature
Original file line number Diff line number Diff line change
Expand Up @@ -734,14 +734,19 @@ Feature: use spec
value= '3'
"""

Scenario: raise error when args and parameters count is different
Scenario: ignore trait args when count different
Given the following bean class:
"""
public class Bean {
public String value;
}
"""
Given the following spec class:
"""
public class BeanSpec extends Spec<Object> {
public class BeanSpec extends Spec<Bean> {
@Trait("input-(.+)-(.+)")
public void input(int i) {
property("value").value(i+j);
property("value").value(i);
}
}
"""
Expand All @@ -751,5 +756,5 @@ Feature: use spec
"""
Then the result should:
"""
value= '3'
value= '1'
"""

0 comments on commit fc00bc5

Please sign in to comment.