Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use Pair object to translate the yml data #21

Closed
njchandu opened this issue Jun 25, 2018 · 1 comment
Closed

Is it possible to use Pair object to translate the yml data #21

njchandu opened this issue Jun 25, 2018 · 1 comment

Comments

@njchandu
Copy link
Contributor

author:
  id: ${sequence.number}
  policies:
    id2:
      id: ${sequence.number}
      title: ${faker.book.title}
      pubInfo:
        publishedAt: ${current.date}
        publishedAt: ${faker.date.between('2020-01-01', '2030-01-01')}

Is it possible to translate it to

private Pair<String, Book> policies;

I'm able to read it into a map though.

private Map<String, Book> policies;

Thanks in advance!

@keepcosmos
Copy link
Owner

Yes, please refer to FixtureMapFieldMapperTest :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants