Skip to content

Instantly share code, notes, and snippets.

@chkpnt
Created January 20, 2021 17:34
Show Gist options
  • Save chkpnt/b63b31ad504d1ab3df744e9f5c44e0dd to your computer and use it in GitHub Desktop.
Save chkpnt/b63b31ad504d1ab3df744e9f5c44e0dd to your computer and use it in GitHub Desktop.
jqwik Arbitrary for UUIDs
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