Questions tagged [vavr-test]

Vavr Module: A property check framework for random testing of program properties.

vavr-test: A property check framework for random testing of program properties.

3 questions
2
votes
1 answer

using vavr how to catch and re-throw the same exception

I am new to the functional style of programming using vavr. I have a method returns the data when its executed successfully and if it fails, it returns the MyCustomRunTimeException. In my Service class, I am calling this API method, when API method…
Madhu
  • 552
  • 2
  • 10
  • 23
1
vote
1 answer

vavr's Future don't execute some code, with method andThen

In this code, I have two methods using vavr library. From this library I am using Future with the method andThen, this method run when the future has been completed, and this is synchronous, but when the thread call to the method "printTime" in this…
0
votes
1 answer

Generating tuples containing Long for Vavr Property Checking

I need a pair of random longs for property checking with Vavr. My implementation looks like this: Gen longs = Gen.choose(Long.MIN_VALUE, Long.MAX_VALUE); Arbitrary> pairOfLongs = longs .flatMap(value -> random ->…
MariuszS
  • 30,646
  • 12
  • 114
  • 155