TODO List

69 views
Skip to first unread message

Parra

unread,
Apr 20, 2011, 9:55:05 AM4/20/11
to fixture-factory
* create function to generate valid CPF

* create function to generate valid CNPJ

Parra

unread,
May 2, 2011, 10:15:42 PM5/2/11
to fixture-factory
* create function to generate valid CPF: Done!

Fábio Arezi

unread,
Nov 18, 2013, 1:35:28 PM11/18/13
to fixture...@googlegroups.com

Would be nice if it had recursive properties. :) 

Ex:

        Fixture.of( X.class ).addTemplate("ok", new Rule(){{
            add("id", 1);
            add("prop1.prop2.val", 123);
        }});

Flávio Alves Granato

unread,
Nov 18, 2013, 1:47:38 PM11/18/13
to fixture...@googlegroups.com
would be nice too if it working with jodatime...
--
Você está recebendo esta mensagem porque se inscreveu no grupo "fixture-factory" dos Grupos do Google.
Para cancelar a inscrição neste grupo e parar de receber seus e-mails, envie um e-mail para fixture-facto...@googlegroups.com.
Para obter mais opções, acesse https://groups.google.com/groups/opt_out.

Arthur Hirata

unread,
Nov 19, 2013, 12:44:11 AM11/19/13
to fixture...@googlegroups.com
Fabio,

Your example should work just fine. Is it not working for you?

Fábio Arezi

unread,
Nov 19, 2013, 6:48:42 AM11/19/13
to fixture...@googlegroups.com
No..

it's work
            add("prop1.val", 123);

it's not work
            add("prop1.prop2.val", 123);

I'm using 2.1.0 version

Fábio Arezi

unread,
Nov 19, 2013, 7:19:15 AM11/19/13
to fixture...@googlegroups.com
follows the stacktrace, when it has more than two levels attributes

java.lang.NullPointerException
    at br.com.six2six.fixturefactory.util.ReflectionUtils.invokeRecursiveField(ReflectionUtils.java:96)
    at br.com.six2six.fixturefactory.util.ReflectionUtils.invokeRecursiveType(ReflectionUtils.java:86)
    at br.com.six2six.fixturefactory.ObjectFactory.processPropertyValue(ObjectFactory.java:110)
    at br.com.six2six.fixturefactory.ObjectFactory.createObject(ObjectFactory.java:73)
    at br.com.six2six.fixturefactory.ObjectFactory.gimme(ObjectFactory.java:37)
    at exp.TestAbcService.setUp(TestAbcService.java:57)

Arthur Hirata

unread,
Nov 19, 2013, 8:38:08 AM11/19/13
to fixture...@googlegroups.com
Humm, I was using the master branch. That should be fixed in the new version that we are trying to release.



Reply all
Reply to author
Forward
0 new messages