Releases: qala-io/datagen
Releases · qala-io/datagen
2.5.1 Don't err when sampling/shuffling empty collections
Actually sampling will not throw only when number of elements to return is 0. In all other cases it will still throw.
2.5.0 mixedCase() for lower/upper case randomization
mixedCase("blah")
-> bLaH
, exists only as part of Short API in io.qala.datagen.RandomShortApi
2.4.0 Add shuffled() for shuffling collections
As opposed to standard Collections.shuffle()
this method returns a new collection.
2.3.0 Deprecate ugly methods, update sampleMultiple() behaviour (breaking)
- There were uncertainties with
upTo()
method because from its name it wasn't clear if 0 was included. From now on use onlyinteger(min, max)
instead, it's more explicit sampleMultiple(Collection)
was returning empty collections as one of the possibilities. But it wasn't convenient, if user wants empty collections then he should be explicit about that. The method now returns collections with at least 1 element.
2.2.0 Place JUnit5 classes into a different package
According to #2
2.1.0 Add `@BlankString` to JUnit5
JUnit5: Add `@BlankString` Passes either `null` or empty string or string with spaces.
2.0.0 Ability to specify seeds
Can be done manually via DatagenRandom
or with annotations for JUnit5 (@Seed
)
1.14.0 Add @RandomDouble to JUnit5 Integration
release-1.14.0 JUnit5: add `@RandomDouble`
1.13.1 Random Date range defaults to more sensible values
Previously values varied from Java8 min possible to max possible.
Most people wouldn't want to go that far anyway, but yet another reason
is that there are bugs in Java that relate to the Timestamp - this
class doesn't allow dates with Long.MIN_VALUE
up to
Long.MIN_VALUE+808
. So now the default range includes values valid for java.util.Date
.
1.13.0 Add a lot more annotations to JUnit5 integration
Added
@Unicode
@Numeric
@English
@RandomLong