Mailing List Archive

Heads up: LUCENE-10662 - making LuceneTestCase not extend Assert
Hi everyone,

I wanted you to take a look at this proposal/ patch:
https://issues.apache.org/jira/browse/LUCENE-10662

it removes LuceneTestCase inheritance from junit's Assert. I am generally
in favor of this as I prefer aspectj and this patch gives one the liberty
of using whatever via static imports. But it does come with consequences
for those who use LuceneTestCase (a potentially painful follow-up).

If you have a strong opinion about it, follow up with a comment on the
issue, please.

Dawid
RE: Heads up: LUCENE-10662 - making LuceneTestCase not extend Assert [ In reply to ]
I think that in most cases, the consequence for classes extending from
LuceneTestCase is just to import the static methods from org.junit.Assert.
So I'm guessing that the transition wouldn't be very painful after all.

Marios

On 2022/07/28 20:19:06 Dawid Weiss wrote:
> Hi everyone,
>
> I wanted you to take a look at this proposal/ patch:
> https://issues.apache.org/jira/browse/LUCENE-10662
>
> it removes LuceneTestCase inheritance from junit's Assert. I am generally
> in favor of this as I prefer aspectj and this patch gives one the liberty
> of using whatever via static imports. But it does come with consequences
> for those who use LuceneTestCase (a potentially painful follow-up).
>
> If you have a strong opinion about it, follow up with a comment on the
> issue, please.
>
> Dawid
>