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

Allow user to choose constructor and pass parameters #84

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

Allow user to choose constructor and pass parameters #84

sta-szek opened this issue Sep 13, 2016 · 0 comments
Assignees
Milestone

Comments

@sta-szek
Copy link
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 20, 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
…ctor-and-pass-parameters

#84. Partial implementation for choosing constructor.
@sta-szek sta-szek self-assigned this Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant