Skip to content

Fixture-Factory 3.0.0

Latest
Compare
Choose a tag to compare
@nykolaslima nykolaslima released this 29 Jan 01:58
· 49 commits to master since this release

Features

  • has and gimme functions now supports multiple templates
Fixture.from(User.class).gimme(2, "male", "female");

Fixture.of(User.class).addTemplate("valid", new Rule() {{
  add("addresses", has(2).of(Address.class, "sp", "mg"));
}});
  • adding asString to instant function #58
    add("birthdayAsString", instant("18 years ago").asString("dd/MM/yyyy"));
  • uniqueRandom function to generate unique values #70
  • CNPJ function #55
    add("cnpj", cnpj());

Bugfixes

  • Fixing range function with BigDecimal type #69
  • Fixing fixtures for inner classes with construtors in Java 8 935214c
  • Fixing overriding nested attribute in gimme call #73
  • And others...

Others

  • Little improvements in documentation
  • Functions' package was refactored, this will break people that are importing those functions