1

I would like to model my much such that its body consists of an array of n elements. The below code only creates one element in the array, when it should produce three.

withBody(eachLike(3, {
   id identifier
   state("COMPLETED")
   type regexp("(A|B)", "A")
 }))

Oddly enough, if I name the name collection, it actually generates three objects:

withBody {
  namedObject eachLike(3, {
  id identifier
  })
}

Where do I go wrong? Is this a bug?

bengro
  • 1,004
  • 10
  • 19
  • hm, seems like it could be a bug. I don't know enough of pact jvm to comment fully however. Your best bet is to create an issue on the repo: https://github.com/DiUS/pact-jvm/issues – J_A_X Oct 04 '17 at 22:29
  • 1
    https://github.com/DiUS/pact-jvm/issues/555 – bengro Oct 05 '17 at 08:06

0 Answers0