Skip to content

Using multiple template variables in Rule only replaces firs variable #88

@dcerecedo

Description

@dcerecedo

Whe defining a rule as such:

Fixture.of(DriverImpl.class).addTemplate("valid", new Rule() {{
  add("id", new IdFunction());
  add("legalId", new LegalIdFunction());
  add("firstName", new FirstNameFunction());
  add("lastName", new LastNameFunction());
  add("username", "${firstName}.${lastName}");
}});

Only the first variable reference is subtitued resulting in a fixture with the following username attribute value: Jansen.${lastName}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions