Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType

2014-10-07 Thread Matthieu Mestrez
Yeah, i saw, thank you very much for this quick followup, we are going to
use the new version today.

If no feedback consider that your fix was great :-)

Have a good day

2014-10-07 9:18 GMT+02:00 Mauro Talevi :

>  Versions 3.9.5 and 4.0-beta-11 are released and synched to Maven Central.
>
>
> On 02/10/2014 08:16, Matthieu Mestrez wrote:
>
> Nice ! You fixed it that fast !
>
>  Thanks for that.
>
>  Do you know when i can expect a release ?
>
>
>
> 2014-10-01 10:15 GMT+02:00 Matthieu Mestrez :
>
>> Thanks for the follow-up
>>
>>  I've created a Jira issue here :
>>
>>  https://jira.codehaus.org/browse/JBEHAVE-1049
>>
>> 2014-10-01 1:02 GMT+02:00 Mauro Talevi :
>>
>>>  Yes, there is a problem but not in the converter.   Rather, the
>>> StepCreator tries to use the parameter types instead of the generic
>>> parameter types.
>>>
>>> Could you please raise a Jira issue for this?
>>>
>>> Cheers
>>>
>>>
>>> On 30/09/2014 15:19, Matthieu Mestrez wrote:
>>>
>>> Since i'm behind a proxy at work i can only give you a zip file to work
>>> with by this way :
>>>
>>>  http://www.filedropper.com/meta-string-list
>>>
>>> 2014-09-30 15:52 GMT+02:00 Matthieu Mestrez 
>>> :
>>>
 Since i'm behind a proxy at work i can only give you a zip file to work
 with by this way :

  http://www.filedropper.com/meta-string-list

  Or attached here, not sure it will work through a mailing list though
 :


 2014-09-30 15:00 GMT+02:00 Mauro Talevi :

> Could you provide a sample project that reproduces the desired
> behaviour?
>
>
> > On 30 Sep 2014, at 13:01, Matthieu Mestrez <
> mestrez.matth...@gmail.com> wrote:
> >
>  > Hello,
> >
> > I've been trying to make use of a list of strings in a Meta in this
> context :
> >
> > Scenario: 1. First Case
> > Meta :
> > @Dataset firstDataset.xml, secondDataset.xml
> > Given ...
> > When ..
> > Then ...
> >
> > And in the
> > @BeforeScenario
> > public void initializeDataset(@Named("Dataset") List
> dbUnitFiles) {
> > ...
> > }
> >
> >
> > The scenario fails because
> "org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed: No
> parameter converter for interface java.util.List'
> >
> >
> > If i debug, he passes through the StringListConverter, but in the
> accept method the type is not an instance of ParameterizedType, because in
> the StepCreator class you use method.getParameterTypes() that doesn't
> retrieve de generics but the Class type (so java.util.List)
> >
> > I think that you should use for that Parameter class the Type and
> not the Class
> >
> >
> > Or maybe i've made a mistake somewhere
>
>
> -
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>


   --
 Mestrez Matthieu
 avenue Jolé 11
 1160 Auderghem
 GSM : 0494/77.26.87
 e-mail : mestrez.matth...@gmail.com

>>>
>>>
>>>
>>>  --
>>> Mestrez Matthieu
>>> avenue Jolé 11
>>> 1160 Auderghem
>>> GSM : 0494/77.26.87
>>> e-mail : mestrez.matth...@gmail.com
>>>
>>>
>>>
>>
>>
>>  --
>> Mestrez Matthieu
>> avenue Jolé 11
>> 1160 Auderghem
>> GSM : 0494/77.26.87
>> e-mail : mestrez.matth...@gmail.com
>>
>
>
>
>  --
> Mestrez Matthieu
> avenue Jolé 11
> 1160 Auderghem
> GSM : 0494/77.26.87
> e-mail : mestrez.matth...@gmail.com
>
>
>


-- 
Mestrez Matthieu
avenue Jolé 11
1160 Auderghem
GSM : 0494/77.26.87
e-mail : mestrez.matth...@gmail.com


Re: [jbehave-dev] Generics doesn't work for StringListConverter, List is not recognized as a ParameterType

2014-10-07 Thread Mauro Talevi

Versions 3.9.5 and 4.0-beta-11 are released and synched to Maven Central.

On 02/10/2014 08:16, Matthieu Mestrez wrote:

Nice ! You fixed it that fast !

Thanks for that.

Do you know when i can expect a release ?



2014-10-01 10:15 GMT+02:00 Matthieu Mestrez 
mailto:mestrez.matth...@gmail.com>>:


Thanks for the follow-up

I've created a Jira issue here :

https://jira.codehaus.org/browse/JBEHAVE-1049

2014-10-01 1:02 GMT+02:00 Mauro Talevi mailto:mauro.tal...@aquilonia.org>>:

Yes, there is a problem but not in the converter.   Rather,
the StepCreator tries to use the parameter types instead of
the generic parameter types.

Could you please raise a Jira issue for this?

Cheers


On 30/09/2014 15:19, Matthieu Mestrez wrote:

Since i'm behind a proxy at work i can only give you a zip
file to work with by this way :

http://www.filedropper.com/meta-string-list

2014-09-30 15:52 GMT+02:00 Matthieu Mestrez
mailto:mestrez.matth...@gmail.com>>:

Since i'm behind a proxy at work i can only give you a
zip file to work with by this way :

http://www.filedropper.com/meta-string-list

Or attached here, not sure it will work through a mailing
list though :


2014-09-30 15:00 GMT+02:00 Mauro Talevi
mailto:mauro.tal...@aquilonia.org>>:

Could you provide a sample project that reproduces
the desired behaviour?


> On 30 Sep 2014, at 13:01, Matthieu Mestrez
mailto:mestrez.matth...@gmail.com>> wrote:
>
> Hello,
>
> I've been trying to make use of a list of strings
in a Meta in this context :
>
> Scenario: 1. First Case
> Meta :
> @Dataset firstDataset.xml, secondDataset.xml
> Given ...
> When ..
> Then ...
>
> And in the
> @BeforeScenario
> public void initializeDataset(@Named("Dataset")
List dbUnitFiles) {
> ...
> }
>
>
> The scenario fails because

"org.jbehave.core.steps.ParameterConverters$ParameterConvertionFailed:
No parameter converter for interface java.util.List'
>
>
> If i debug, he passes through the
StringListConverter, but in the accept method the
type is not an instance of ParameterizedType, because
in the StepCreator class you use
method.getParameterTypes() that doesn't retrieve de
generics but the Class type (so java.util.List)
>
> I think that you should use for that Parameter
class the Type and not the Class
>
>
> Or maybe i've made a mistake somewhere


-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email





-- 
Mestrez Matthieu

avenue Jolé 11
1160 Auderghem
GSM : 0494/77.26.87
e-mail : mestrez.matth...@gmail.com





-- 
Mestrez Matthieu

avenue Jolé 11
1160 Auderghem
GSM : 0494/77.26.87
e-mail : mestrez.matth...@gmail.com






-- 
Mestrez Matthieu

avenue Jolé 11
1160 Auderghem
GSM : 0494/77.26.87
e-mail : mestrez.matth...@gmail.com





--
Mestrez Matthieu
avenue Jolé 11
1160 Auderghem
GSM : 0494/77.26.87
e-mail : mestrez.matth...@gmail.com