commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xenoterracide <>
Subject [GitHub] commons-lang pull request: random length strings within range
Date Sun, 28 Jun 2015 07:20:05 GMT
GitHub user xenoterracide opened a pull request:

    random length strings within range

    at a high level, I have added  `randomGraph( int count )` and `randomPrint( int count
)` which map to their corresponding regular expression classes. These are useful if you're
needing to test arbitrary user input in various kinds of text fields. `randomAscii` was not
sufficient due to it's inclusion of the DEL character.
    I have also added variants of random Ascii, graph, print, alphabetic, alphanumeric, and
numeric that have  `minimumInclusive` and `maximumInclusive` parameters. These can be used
to create string of random length to ensure more random distribution of data when testing.
The will also ensure that developers who use them are less likely to forget testing variable
lengths within the bounds.

You can merge this pull request into a Git repository by running:

    $ git pull topic/random-lenth-strings-within-range

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #100
commit 53ead9cd983a85c28f63b23fd8ca8c056621dfec
Author: Caleb Cushing <>
Date:   2015-06-27T18:52:41Z

    add randomGraph and randomPrint which match corresponding Posix Regular expression
    These are useful over randomAscii because they do not contain the DEL character but otherwise
contrain the full range of ASCII printing characters, and optionally include whitespace. This
is useful for testing user defined inputs where characters like spaces, angle brakets, semicolons,
dashes, etc, can cause issues.

commit f1bef9b4d034b1fad47fea3a2ca477db65e7a8e5
Author: Caleb Cushing <>
Date:   2015-06-28T07:06:27Z

    add a series of random statics that take an inclusive min and max range
    these methods are useful for testing bound assumption issues

commit dfef87d0936447f9348b4a050b2ddaf17664608a
Author: Caleb Cushing <>
Date:   2015-06-28T07:08:08Z

    consistently refer to Java Regular Expression classes

commit 7daf3794072f75979f86d77c3abfcf3e0897f167
Author: Caleb Cushing <>
Date:   2015-06-28T07:08:57Z

    add self to the contributor list


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message