six2six / fixture-factory

Generator fake objects from a template
Apache License 2.0
445 stars 88 forks source link

Implement random function for enum types #40

Closed nykolaslima closed 10 years ago

nykolaslima commented 10 years ago

I have a enum and in my template, any value of this Enum is ok.

add("myEnum", random(MyEnum.class));

I believe we can do this with EnumFunction.

nykolaslima commented 10 years ago

It's already implemented.

My bad, i'm sorry.