Skip to content

Releases: qala-io/datagen

2.5.1 Don't err when sampling/shuffling empty collections

11 Aug 10:22
Compare
Choose a tag to compare

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

11 Aug 05:54
Compare
Choose a tag to compare

mixedCase("blah") -> bLaH, exists only as part of Short API in io.qala.datagen.RandomShortApi

2.4.0 Add shuffled() for shuffling collections

10 Aug 08:28
Compare
Choose a tag to compare

As opposed to standard Collections.shuffle() this method returns a new collection.

2.3.0 Deprecate ugly methods, update sampleMultiple() behaviour (breaking)

07 Jul 09:33
Compare
Choose a tag to compare
  • There were uncertainties with upTo() method because from its name it wasn't clear if 0 was included. From now on use only integer(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

13 Jun 15:33
Compare
Choose a tag to compare

2.1.0 Add `@BlankString` to JUnit5

12 Jun 17:37
Compare
Choose a tag to compare
JUnit5: Add `@BlankString`

Passes either `null` or empty string or string with spaces.

2.0.0 Ability to specify seeds

12 Jun 17:36
Compare
Choose a tag to compare

Can be done manually via DatagenRandom or with annotations for JUnit5 (@Seed)

1.14.0 Add @RandomDouble to JUnit5 Integration

10 Jun 20:13
Compare
Choose a tag to compare
release-1.14.0

JUnit5: add `@RandomDouble`

1.13.1 Random Date range defaults to more sensible values

10 Jun 21:40
Compare
Choose a tag to compare

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

10 Jun 18:07
Compare
Choose a tag to compare

Added

  • @Unicode
  • @Numeric
  • @English
  • @RandomLong