I'll have a look and see if there is code to move from the test case to the _TestUtil.
On Mon, Feb 17, 2014 at 7:29 AM, Uwe Schindler <u...@thetaphi.de> wrote: > Hi Benson, > > See > http://lucene.apache.org/core/4_6_0/test-framework/org/apache/lucene/util/_TestUtil.html > > There are methods like: > randomRealisticUnicodeString(Random r, int minLength, int maxLength) > > or more fancy: > randomRegexpishString(Random r, int maxLength) > > Those methods are all static, so you can use from anywhere. The name > _TestUtil goes back to older days. But it is part of test-framework. > > ----- > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > >> -----Original Message----- >> From: Benson Margulies [mailto:bimargul...@gmail.com] >> Sent: Monday, February 17, 2014 1:19 PM >> To: dev@lucene.apache.org >> Subject: Exposing random string generation >> >> Down in the bottom of the randomized testing apparatus is some code for >> generating random stress data. The only public/protected API for it is to >> push >> it into an analysis chain. Would anyone object to a patch to allow direct >> access >> to methods that just deliver the randomized text? I'd like some random >> strings for code below the level of the analysis components. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional >> commands, e-mail: dev-h...@lucene.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org