question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eachLike doesn't seem to generate proper o/p in Java

See original GitHub issue

below is my DSL

.object("dataStorePathInfo")
         .stringMatcher("basePath", String.format("%s/%s/training-data/[a-z0-9]{20,24}", CUSTOMER, TRAINING))
          .eachLike("fileNames", PactDslJsonRootValue.stringType("abc.txt") ,1)
.closeObject()

o/p generated is as follows

"dataStorePathInfo": {
    "basePath": "acctestcustomer/acctesttraining/training-data/l0at879y7786mv5z30g1",
    "fileNames": [
         "\"abc.txt\""
    ]
}

I was expecting file name in o/p to be just “abc.txt” and not “\“abc.txt\””

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
uglyogcommented, May 9, 2017

Released 3.3.9 with this fix

1reaction
petenattresscommented, Apr 10, 2017

Hi, I’ve hit this issue also - just to add that it appears to affect all the array matching methods (e.g. minArrayLike, maxArrayLike, etc)

Read more comments on GitHub >

github_iconTop Results From Across the Web

For-Each and Pointers in Java [duplicate] - Stack Overflow
My question in, how can I make 't' a pointer to 'arr' so that I am able to change the values in a...
Read more >
Consumer Kotlin DSL API proposal · Issue #1352 - GitHub
One thing I would consider is to not wrap the existing DSL as it has been written based on the constraints imposed by...
Read more >
pact-jvm
However, in our project, we?d like to use Cucumber-JVM with a Pact build ... There doesn't appear to be end points for pact...
Read more >
Help us brainstorm closure syntax. - Google Groups
The bar syntax doesn't feel much like Java… Just out of curiosity: what would prevent the use of regular parentheses? I'd be against...
Read more >
[UNSUPPORTED][TP] Warpz0r v1.4.2 - Multiworld Warp and Home ...
Logging back in and out doesn't seem to fix it. It's as if the chunk is not loading properly before they get there....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found