SOLR-5793, SOLR-5792, SOLR-5791: switch to using Constants.JAVA_VENDOR in assume

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1573019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2014-02-28 17:40:37 +00:00
parent 02e3fd09eb
commit 63c914fb21
3 changed files with 12 additions and 6 deletions

View File

@ -19,6 +19,8 @@ package org.apache.solr.handler.component;
import java.io.File;
import org.apache.lucene.util.Constants;
import org.apache.solr.BaseDistributedSearchTestCase;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.params.CommonParams;
@ -32,8 +34,8 @@ public class DistributedQueryElevationComponentTest extends BaseDistributedSearc
@BeforeClass
public static void betterNotBeJ9() {
assumeFalse("FIXME: SOLR-5791: This test fails under J9",
System.getProperty("java.vm.info", "<?>").contains("IBM J9"));
assumeFalse("FIXME: SOLR-5791: This test fails under IBM J9",
Constants.JAVA_VENDOR.startsWith("IBM"));
}
public DistributedQueryElevationComponentTest() {

View File

@ -17,6 +17,8 @@
package org.apache.solr.handler.component;
import org.apache.lucene.util.Constants;
import org.apache.solr.BaseDistributedSearchTestCase;
import org.apache.solr.common.params.TermVectorParams;
import org.junit.BeforeClass;
@ -24,8 +26,8 @@ import org.junit.BeforeClass;
public class TermVectorComponentDistributedTest extends BaseDistributedSearchTestCase {
@BeforeClass
public static void betterNotBeJ9() {
assumeFalse("FIXME: SOLR-5792: This test fails under J9",
System.getProperty("java.vm.info", "<?>").contains("IBM J9"));
assumeFalse("FIXME: SOLR-5792: This test fails under IBM J9",
Constants.JAVA_VENDOR.startsWith("IBM"));
}
@Override

View File

@ -21,6 +21,8 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.lucene.util.Constants;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.client.solrj.impl.BinaryRequestWriter;
import org.apache.solr.client.solrj.request.UpdateRequest;
@ -49,8 +51,8 @@ public class SignatureUpdateProcessorFactoryTest extends SolrTestCaseJ4 {
@BeforeClass
public static void betterNotBeJ9() {
assumeFalse("FIXME: SOLR-5793: This test fails under J9",
System.getProperty("java.vm.info", "<?>").contains("IBM J9"));
assumeFalse("FIXME: SOLR-5793: This test fails under IBM J9",
Constants.JAVA_VENDOR.startsWith("IBM"));
}