Created
January 20, 2021 17:34
-
-
Save chkpnt/b63b31ad504d1ab3df744e9f5c44e0dd to your computer and use it in GitHub Desktop.
jqwik Arbitrary for UUIDs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test { | |
@Provide | |
Arbitrary<UUID> uuids() { | |
return Arbitraries | |
.longs() | |
.tuple2() | |
.map(longs -> new UUID(longs.get1(), longs.get2())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment