Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SliM execute fixture constructor based on parameters types #966 #1024

merged 2 commits into from Nov 14, 2017


Copy link

@george-toma george-toma commented Jan 23, 2017

The scope of this fix is that when a fixture is executed, the fixture class constructor should be selected by taking in consideration the constructor arguments types.

E.g. :
// when the user will execute a fixture called MyFixture
|Query:my fixture|10-Dec-1981 |
|myHeader |
|1429 |

// and when the fixture code is the following
public class MyFixture {

public MyFixture(Date date) {
//do flow for Date type

public MyFixture(Integer number) {
//do flow for Integer type

public MyFixture(String number) {
//do flow for String type

//then the Date constructor should be executed, and not String constructor as it was previously

@amolenaar amolenaar added this to the Next Release milestone Oct 15, 2017
@amolenaar amolenaar merged commit 2585c71 into unclebob:master Nov 14, 2017
amolenaar added a commit that referenced this pull request Nov 14, 2017
SliM execute fixture constructor based on parameters types #966
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants