six2six / fixture-factory

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

Multiple placeholders doesn't work #74

Closed nykolaslima closed 9 years ago

nykolaslima commented 9 years ago

When we have multiple placeholders in the same attribute definition, F-F only process the first.

Fixture.of(User.class).addTemplate("valid", new Rule() {{
  add("name", "Nykolas");
  add("sobrenome", "Lima");
  add("nomeInteiro", "${name} ${sobrenome}"
}});

Fixture.from(User.class).gimme("valid").getSobrenome(); The above code will return: Nykolas ${sobrenome}

@aparra @ahirata

nykolaslima commented 9 years ago

Thank you @ahirata!