List of usage examples for org.apache.lucene.util Constants JAVA_VENDOR
String JAVA_VENDOR
To view the source code for org.apache.lucene.util Constants JAVA_VENDOR.
Click Source Link
From source file:org.apache.solr.BaseDistributedSearchTestCase.java
License:Apache License
@BeforeClass public static void initialize() { assumeFalse("SOLR-4147: ibm 64bit has jvm bugs!", Constants.JRE_IS_64BIT && Constants.JAVA_VENDOR.startsWith("IBM")); r = new Random(random().nextLong()); }
From source file:org.apache.solr.cloud.SaslZkACLProviderTest.java
License:Apache License
@BeforeClass public static void beforeClass() { assumeFalse("FIXME: SOLR-7040: This test fails under IBM J9", Constants.JAVA_VENDOR.startsWith("IBM")); System.setProperty("solrcloud.skip.autorecovery", "true"); }
From source file:org.apache.solr.handler.component.DistributedQueryElevationComponentTest.java
License:Apache License
@BeforeClass public static void betterNotBeJ9() { assumeFalse("FIXME: SOLR-5791: This test fails under IBM J9", Constants.JAVA_VENDOR.startsWith("IBM")); }
From source file:org.apache.solr.handler.component.TermVectorComponentDistributedTest.java
License:Apache License
@BeforeClass public static void betterNotBeJ9() { assumeFalse("FIXME: SOLR-5792: This test fails under IBM J9", Constants.JAVA_VENDOR.startsWith("IBM")); }
From source file:org.apache.solr.uninverting.TestFieldCacheVsDocValues.java
License:Apache License
@Override public void setUp() throws Exception { super.setUp(); assumeFalse("test unsupported on J9 temporarily, see https://issues.apache.org/jira/browse/LUCENE-6522", Constants.JAVA_VENDOR.startsWith("IBM")); }
From source file:org.apache.solr.update.processor.SignatureUpdateProcessorFactoryTest.java
License:Apache License
@BeforeClass public static void betterNotBeJ9() { assumeFalse("FIXME: SOLR-5793: This test fails under IBM J9", Constants.JAVA_VENDOR.startsWith("IBM")); }
From source file:org.elasticsearch.bootstrap.JVMCheck.java
License:Apache License
/** * Returns java + jvm version, looks like this: * {@code Oracle Corporation 1.8.0_45 [Java HotSpot(TM) 64-Bit Server VM 25.45-b02]} *///from w w w .j ava2s . com static String fullVersion() { StringBuilder sb = new StringBuilder(); sb.append(Constants.JAVA_VENDOR); sb.append(" "); sb.append(Constants.JAVA_VERSION); sb.append(" ["); sb.append(Constants.JVM_NAME); sb.append(" "); sb.append(Constants.JVM_VERSION); sb.append("]"); return sb.toString(); }
From source file:org.elasticsearch.painless.WhenThingsGoWrongTests.java
License:Apache License
public void testOutOfMemoryError() { assumeTrue("test only happens to work for sure on oracle jre", Constants.JAVA_VENDOR.startsWith("Oracle")); expectScriptThrows(OutOfMemoryError.class, () -> { exec("int[] x = new int[Integer.MAX_VALUE - 1];"); });//w ww. j a v a 2 s .c o m }