commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1063) Add RandomEnumUtils to operate with random instances of enum types
Date Tue, 11 Nov 2014 13:00:37 GMT

    [ 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)

Mime
View raw message