Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

IntelliJ configuration fixes: - Make FacetTestCase abstract so that the IntelliJ test runner doesn't try to execute its tests under the facet module test run configuration - In the facet module configuration, drop source directory facet/src/examples/ and add source directory facet/src/resources/ - Add -Xmx256m to the Lucene core test run configuration to avoid OOM in a couple tests - Add resource pattern 'test-files:*' to .idea/compiler.xml, so that all files under */src/test-files/, regardless of file name/extension, will be copied over to the test output directory (previously .js files under solr/src/test-files/ were being excluded)

Steven Rowe17cdd3a46bab
diff --git a/dev-tools/idea/.idea/compiler.xml b/dev-tools/idea/.idea/compiler.xml
index 892573d0af2..006fea16c1c 100644
--- a/dev-tools/idea/.idea/compiler.xml
+++ b/dev-tools/idea/.idea/compiler.xml
@@ -3,6 +3,7 @@
<component name="CompilerConfiguration">
<wildcardResourcePatterns>
<entry name="!*.(cpp|java|jflex|jflex-macro|jj|js|pl|py)"/>
+ <entry name="test-files:*"/>
</wildcardResourcePatterns>
</component>
<component name="JavacSettings">
diff --git a/dev-tools/idea/.idea/workspace.xml b/dev-tools/idea/.idea/workspace.xml
index 265715d54f9..579bdb4ade0 100644
--- a/dev-tools/idea/.idea/workspace.xml
+++ b/dev-tools/idea/.idea/workspace.xml
@@ -8,7 +8,7 @@
<module name="lucene-core-tests" />
<option name="TEST_OBJECT" value="package" />
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/idea-build/lucene/core" />
- <option name="VM_PARAMETERS" value="-ea -Dlucene.version=5.0-SNAPSHOT -DtempDir=temp" />
+ <option name="VM_PARAMETERS" value="-Xmx256m -ea -Dlucene.version=5.0-SNAPSHOT -DtempDir=temp" />
<option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>
</configuration>
<configuration default="false" name="Module analyzers-common" type="JUnit" factoryName="JUnit">
diff --git a/dev-tools/idea/lucene/facet/facet.iml b/dev-tools/idea/lucene/facet/facet.iml
index 4eaadf5a298..8da5b5da794 100644
--- a/dev-tools/idea/lucene/facet/facet.iml
+++ b/dev-tools/idea/lucene/facet/facet.iml
@@ -6,7 +6,7 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/examples" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/work" />
</content>
diff --git a/lucene/facet/src/test/org/apache/lucene/facet/FacetTestCase.java b/lucene/facet/src/test/org/apache/lucene/facet/FacetTestCase.java
index 1de435b07e8..31e79edbf14 100644
--- a/lucene/facet/src/test/org/apache/lucene/facet/FacetTestCase.java
+++ b/lucene/facet/src/test/org/apache/lucene/facet/FacetTestCase.java
@@ -35,7 +35,7 @@ import org.junit.BeforeClass;
* limitations under the License.
*/
-public class FacetTestCase extends LuceneTestCase {
+public abstract class FacetTestCase extends LuceneTestCase {
private static final IntEncoder[] ENCODERS = new IntEncoder[] {
new SortingIntEncoder(new UniqueValuesIntEncoder(new VInt8IntEncoder())),