-
Notifications
You must be signed in to change notification settings - Fork 7
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
Formating param values error #9
Conversation
Added data provider dependency for testing in gradle Fixed error in formating values Added unit test for ParamTypeResolver class
@enriclluelles @albertoramirezscmspain @cristiangarciascmspain Thanks! |
@Test | ||
@UseDataProvider("dataProviderAdd") | ||
public void testResolveValueType(Class<T> type, String value) throws Exception { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems really better than previous version we was working on!!!
👍 |
{ Short.class, "2" }, | ||
{ Float.class, "27.42" }, | ||
{ Double.class, "42.42" } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if I add:
{ boolean.class, "true" },
{ long.class, "27" },
{ int.class, "42" },
the test fails.
Is this an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also add some negative test cases in order to document the behavior when somebody call Resolver with things like
SomeExoticClass.class, "whatever value"
… can not resolve to the given class
👍 |
1 similar comment
👍 |
Added in gitignore a release version of build.gradle
Added data provider dependency for testing in gradle
Fixed error in formating values
Added unit test for ParamTypeResolver class