LUCENE-10328: open up certain packages for junit and the test framework (reflective access).

This commit is contained in:
Dawid Weiss 2022-01-05 21:01:18 +01:00
parent ff547e7bbd
commit b8da9f32c8
2 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,9 @@ module org.apache.lucene.core {
// Only export internal packages to the test framework.
exports org.apache.lucene.internal.tests to
org.apache.lucene.test_framework;
// Open certain packages for the test framework (ram usage tester).
opens org.apache.lucene.document to
org.apache.lucene.test_framework;
provides org.apache.lucene.analysis.TokenizerFactory with
org.apache.lucene.analysis.standard.StandardTokenizerFactory;

View File

@ -23,6 +23,10 @@ module org.apache.lucene.test_framework {
requires transitive junit;
requires transitive randomizedtesting.runner;
// Open certain packages for junit because it scans methods via reflection.
opens org.apache.lucene.tests.index to
junit;
exports org.apache.lucene.tests.analysis.standard;
exports org.apache.lucene.tests.analysis;
exports org.apache.lucene.tests.codecs.asserting;