Thanks Simon.
On 2/17/14, 4:50 AM, "Simon Willnauer" <[email protected]> wrote:
>just put this annotation at the class level:
>
>@SuppressCodecs("Lucene3x")
>
>simon
>
>On Mon, Feb 17, 2014 at 4:56 AM, Smiley, David W. <[email protected]>
>wrote:
>> I wrote a test that requires DocValues. It failed on me once because of
>>the
>> Codec randomization chose Lucene3x which doesn’t support DocValues.
>>What’s
>> the best way to adjust my test to assure this doesn’t happen?
>>
>> What I ended up doing was this:
>> indexWriterConfig.setCodec( _TestUtil.alwaysDocValuesFormat(new
>> Lucene45DocValuesFormat()));
>> But I don’t like that I hard-coded a particular format.
>> (FYI the source file is an abstract base test class: SpatialTestCase,
>>method
>> newIndexWriterConfig )
>>
>> Another approach might be to call:
>> assumeTrue(defaultCodecSupportsDocValues())
>> Although sometimes the test of course won’t be run at all instead of it
>> preferably forcing a compatible format.
>>
>> Thoughts?
>>
>> ~ David
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]