uk.co.jemos.podam.api.PodamParameterizedType

18 views
Skip to first unread message

Valentin Quiblier

unread,
May 6, 2019, 5:52:20 AM5/6/19
to PODAM
Hello,

I've read the documentation on https://mtedone.github.io/podam/usage.html and I try to use uk.co.jemos.podam.api.PodamParameterizedType.

My problem is that class does not exists in Podam src folder, I find it in Podam test folder.

I try to manufacturate an instance of Map<String, List<Pojo>>, is this class the good way to do ?

Thanks.

Daniil Ivanov

unread,
May 8, 2019, 12:47:14 PM5/8/19
to PODAM
Hi,

  PodamParameterizedType is just a test class.

  You should do something like this

 
Map<String, List<Pojo>> pojo = factory.manufacturePojo(HashMap.class, String.class, ArrayList.class, Pojo.class);


Thanks, Daniil

Valentin Quiblier

unread,
May 13, 2019, 3:50:55 AM5/13/19
to PODAM
Hi, Daniil

Many Thanks for your fast response.

When I do :

PODAM.manufacturePojo(HashMap.class, String.class, ArrayList.class, Pojo.class), I get a NullPointerException on PodamFactoryImpl#resolveCollectionValueWhenCollectionIsPojoAttribute (l.1039), attributeName is null :(

My PODAM version is 7.1.1.RELEASE.

Thanks. Valentin

Daniil Ivanov

unread,
May 13, 2019, 4:11:21 PM5/13/19
to PODAM
7.1.1 is rather old version.

Thanks, Daniii

Valentin Quiblier

unread,
May 14, 2019, 2:55:20 AM5/14/19
to PODAM
Ok, I see on https://mtedone.github.io/podam/ that current version was 7.1.1, on GitHUb I see that last versio is 7.2.3, I will try with this newer version and say you if my problem is solved.

Thanks.
Valentin.
Reply all
Reply to author
Forward
0 new messages