commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TEXT-34) Add class to generate random strings
Date Mon, 19 Dec 2016 23:41:58 GMT

    [ https://issues.apache.org/jira/browse/TEXT-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15762658#comment-15762658
] 

Emmanuel Bourg commented on TEXT-34:
------------------------------------

Thank you for the example, I didn't realize the filter could be used this way.

I'd suggest adding more methods like {{withRange(char, char)}}, {{withDigits()}} or {{withLetter()}}
to make common cases easier.

Regarding the filter, I wonder if it would be worth making the pending string accessible to
the test method. A test could thus be based on the previous characters, and it would be possible
to write a test avoiding the repetitions characters.

> Add class to generate random strings
> ------------------------------------
>
>                 Key: TEXT-34
>                 URL: https://issues.apache.org/jira/browse/TEXT-34
>             Project: Commons Text
>          Issue Type: New Feature
>            Reporter: Duncan Jones
>            Assignee: Duncan Jones
>
> The {{RandomStringUtils}} class will be deprecated in Commons Lang and reborn in Commons
Text.
> Because the original class has some complicated parameters and potentially unnecessary
capabilities, I'll simplify as I move it across. I'll also ensure the class plays nicely with
Unicode characters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message