Skip to content

Commit

Permalink
Merge RandomInt and RandomLong to RandomNumber
Browse files Browse the repository at this point in the history
Resolves #56
  • Loading branch information
mkutz authored Sep 6, 2024
1 parent ca879ad commit 9512c2f
Show file tree
Hide file tree
Showing 12 changed files with 336 additions and 343 deletions.
4 changes: 2 additions & 2 deletions manual/src/docs/asciidoc/chapters/03-random.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
The Random module contains a collection of builders and utility functions to generate random data.


== Random Integer/Long
== Random Number

The link:{javadoc-url}/random/org/stubit/random/RandomInt.html[`RandomInt`] and link:{javadoc-url}/random/org/stubit/random/RandomLong.html[`RandomLong`] classes allow to generate random Integer/Long values within a defined min and max range (both inclusive).
The link:{javadoc-url}/random/org/stubit/random/RandomNumber.html[`RandomNumber`] class allows to generate random Integer/Long values within a defined min and max range (both inclusive).

For simple integers/longs there are several static methods available.
More complex integers/long can be defined with Builder classes that's returned by the `anInt`/`aLong` methods.
Expand Down
16 changes: 8 additions & 8 deletions manual/src/test/java/org/stubit/random/RandomDocTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
import static org.stubit.random.RandomChoice.anyOf;
import static org.stubit.random.RandomDuration.aDuration;
import static org.stubit.random.RandomDuration.aDurationBetween;
import static org.stubit.random.RandomInt.aNegativeInt;
import static org.stubit.random.RandomInt.aPositiveInt;
import static org.stubit.random.RandomInt.anInt;
import static org.stubit.random.RandomInt.anIntBetween;
import static org.stubit.random.RandomLocalDate.aLocalDate;
import static org.stubit.random.RandomLocalDate.aLocalDateBetween;
import static org.stubit.random.RandomLocalDate.aLocalDateInRange;
import static org.stubit.random.RandomLong.aLong;
import static org.stubit.random.RandomLong.aLongBetween;
import static org.stubit.random.RandomLong.aNegativeLong;
import static org.stubit.random.RandomLong.aPositiveLong;
import static org.stubit.random.RandomNumber.aLong;
import static org.stubit.random.RandomNumber.aLongBetween;
import static org.stubit.random.RandomNumber.aNegativeInt;
import static org.stubit.random.RandomNumber.aNegativeLong;
import static org.stubit.random.RandomNumber.aPositiveInt;
import static org.stubit.random.RandomNumber.aPositiveLong;
import static org.stubit.random.RandomNumber.anInt;
import static org.stubit.random.RandomNumber.anIntBetween;
import static org.stubit.random.RandomString.aLetterFrom;
import static org.stubit.random.RandomString.aStringStartingWith;
import static org.stubit.random.RandomString.arabicDigits;
Expand Down
117 changes: 0 additions & 117 deletions modules/random/src/main/java/org/stubit/random/RandomInt.java

This file was deleted.

116 changes: 0 additions & 116 deletions modules/random/src/main/java/org/stubit/random/RandomLong.java

This file was deleted.

Loading

0 comments on commit 9512c2f

Please sign in to comment.