six2six / fixture-factory

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

Native Suports for List of Enum #8

Closed asponton closed 11 years ago

asponton commented 12 years ago

My object has a list of Enum, and Fixture Factory doesn´t support this need.

E.G:

    Fixture.of(Empresa.class).addTemplate("valid", new Rule() {{
        add("idenficacao", fixture(Idenficacao.class, "valid"));
        add("unidade", fixture(Unidade.class, "valid"));
        add("modalidades", has(2).of(Enum.class); // that´s what we need
     }});
nykolaslima commented 11 years ago

fixed by pullrequest #28