diff --git a/lucene/core/src/java/module-info.java b/lucene/core/src/java/module-info.java index f56b19409a2..02fc3ff0821 100644 --- a/lucene/core/src/java/module-info.java +++ b/lucene/core/src/java/module-info.java @@ -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; diff --git a/lucene/test-framework/src/java/module-info.java b/lucene/test-framework/src/java/module-info.java index d87d56a6938..893d57189bb 100644 --- a/lucene/test-framework/src/java/module-info.java +++ b/lucene/test-framework/src/java/module-info.java @@ -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;