From e4be54e8b5a78296099caf875f7c8604443da5d9 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 26 Feb 2014 19:09:41 +0000 Subject: [PATCH] SOLR-5778: add assume for now, if the locale does not use GregorianCalendar git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1572201 13f79535-47bb-0310-9956-ffa450edef68 --- .../morphlines/solr/AbstractSolrMorphlineTestBase.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/solr/contrib/morphlines-core/src/test/org/apache/solr/morphlines/solr/AbstractSolrMorphlineTestBase.java b/solr/contrib/morphlines-core/src/test/org/apache/solr/morphlines/solr/AbstractSolrMorphlineTestBase.java index 039de0c565d..de8a9f004dc 100644 --- a/solr/contrib/morphlines-core/src/test/org/apache/solr/morphlines/solr/AbstractSolrMorphlineTestBase.java +++ b/solr/contrib/morphlines-core/src/test/org/apache/solr/morphlines/solr/AbstractSolrMorphlineTestBase.java @@ -20,12 +20,15 @@ import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.util.Arrays; +import java.util.Calendar; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; +import java.util.Locale; import java.util.Map; import java.util.Map.Entry; +import java.util.TimeZone; import java.util.concurrent.atomic.AtomicInteger; import org.apache.commons.io.FileUtils; @@ -130,7 +133,9 @@ public class AbstractSolrMorphlineTestBase extends SolrTestCaseJ4 { String[] files, Map expectedRecords, Map> expectedRecordContents) throws Exception { - + + assumeTrue("This test has issues with this locale: https://issues.apache.org/jira/browse/SOLR-5778", + "GregorianCalendar".equals(Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault()).getClass().getSimpleName())); deleteAllDocuments(); int numDocs = 0; for (int i = 0; i < 1; i++) {