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

Formating param values error #9

Merged
merged 9 commits into from
Sep 14, 2015
Merged

Formating param values error #9

merged 9 commits into from
Sep 14, 2015

Conversation

victuxbb
Copy link
Contributor

@victuxbb victuxbb commented Sep 8, 2015

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

Added data provider dependency for testing in gradle
Fixed error in formating values
Added unit test for ParamTypeResolver class
@victuxbb
Copy link
Contributor Author

victuxbb commented Sep 8, 2015

@enriclluelles @albertoramirezscmspain @cristiangarciascmspain
Someone can review it?

Thanks!

@victuxbb victuxbb mentioned this pull request Sep 8, 2015
@Test
@UseDataProvider("dataProviderAdd")
public void testResolveValueType(Class<T> type, String value) throws Exception {

Copy link

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!!!

@enriclluelles
Copy link
Contributor

👍

{ Short.class, "2" },
{ Float.class, "27.42" },
{ Double.class, "42.42" }

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?

Copy link

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"

@victuxbb
Copy link
Contributor Author

👍

1 similar comment
@cristiangarciascmspain
Copy link

👍

victuxbb added a commit that referenced this pull request Sep 14, 2015
@victuxbb victuxbb merged commit 9f366ef into master Sep 14, 2015
@enriclluelles enriclluelles deleted the fix/parameter_resolver branch September 14, 2015 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants