Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1BBF178DA for ; Tue, 11 Nov 2014 13:00:37 +0000 (UTC) Received: (qmail 14370 invoked by uid 500); 11 Nov 2014 13:00:37 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 14255 invoked by uid 500); 11 Nov 2014 13:00:37 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 14235 invoked by uid 99); 11 Nov 2014 13:00:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 13:00:37 +0000 Date: Tue, 11 Nov 2014 13:00:37 +0000 (UTC) From: "Duncan Jones (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1063) Add RandomEnumUtils to operate with random instances of enum types MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)