keepcosmos / beanmother

A library for setting up Java objects as test data.
http://beanmother.io
Apache License 2.0
115 stars 23 forks source link

Doesn't support Set #25

Closed ruwanka closed 6 years ago

ruwanka commented 6 years ago

If target object has field of type Set, following exception is thrown

io.beanmother.core.mapper.FixtureMappingException: Target setter of 'name-of-the-property' must be List or array.

this method only checks for arrays or lists, because of that having custom converter doesn't resolve the problem.

keepcosmos commented 6 years ago

Right, it should support Set interface.

gtiwari333 commented 5 years ago

Hello,

I got this problem when using the latest version 0.8.0.

It looks this fix was never released to maven central.

https://mvnrepository.com/artifact/io.beanmother/beanmother-core and https://oss.sonatype.org/content/repositories/releases/io/beanmother/ both shows the last release date to be July 2018.

Could you check?

Thanks,

keepcosmos commented 5 years ago

@gtiwari333 I just release fixed version, you can find soon,