You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Duncan Jones (JIRA)" <ji...@apache.org> on 2014/11/11 14:00:37 UTC
[jira] [Commented] (LANG-1063) Add RandomEnumUtils to operate with
random instances of enum types
[ https://issues.apache.org/jira/browse/LANG-1063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14206383#comment-14206383 ]
Duncan Jones commented on LANG-1063:
------------------------------------
I'm not wholly convinced by this addition. In your described use case, this only solves part of the problem. Perhaps a fuzzy logic library would be a better way of making random objects.
If we do go ahead and commit this, it probably should reside in {{RandomUtils}} rather than being a separate class.
> Add RandomEnumUtils to operate with random instances of enum types
> ------------------------------------------------------------------
>
> Key: LANG-1063
> URL: https://issues.apache.org/jira/browse/LANG-1063
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Benedikt Ritter
> Labels: github
>
> Placeholder ticket for https://github.com/apache/commons-lang/pull/37
> bq. Added a utility class that returns a random instance of an Enum of a certain provided type. This, I consider, is useful when creating test data instances with random values for its fields, among which are most likely some Enum types as well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)