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

Allow user to choose constructor and pass parameters #84

Closed
sta-szek opened this Issue Sep 13, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@sta-szek
Owner

sta-szek commented Sep 13, 2016

When creating objects via construcotrs, exception occurs if parameters don't pass validation.
User could have possibility to provide constructor and parameters (or just parameters and construcotr will chosen by java, based on parameters type).

Proposed API:

assert...(...).create(X.class, constructor, parameters)
or
make ClassAndFieldPredicate to contain construcor and parameters
assert...(ClassAndFieldPredicate)....

@sta-szek sta-szek added this to the 0.2.0 milestone Sep 13, 2016

@sta-szek sta-szek modified the milestones: 0.3.0, 0.2.0 Sep 17, 2016

sta-szek pushed a commit that referenced this issue Sep 19, 2016

sta-szek pushed a commit that referenced this issue Sep 20, 2016

sta-szek pushed a commit that referenced this issue Sep 20, 2016

Piotr Joñski

sta-szek pushed a commit that referenced this issue Sep 20, 2016

Piotr Joñski

sta-szek pushed a commit that referenced this issue Sep 20, 2016

Piotr Joński
Merge pull request #97 from sta-szek/#84-Allow-user-to-choose-constru…
…ctor-and-pass-parameters

#84. Partial implementation for choosing constructor.

@sta-szek sta-szek self-assigned this Sep 20, 2016

@sta-szek sta-szek closed this Sep 20, 2016

@sta-szek sta-szek removed the in progress label Sep 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment