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
This commit is contained in:
Robert Muir 2014-02-26 19:09:41 +00:00
parent e15aeb2859
commit e4be54e8b5
1 changed files with 6 additions and 1 deletions

View File

@ -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;
@ -131,6 +134,8 @@ public class AbstractSolrMorphlineTestBase extends SolrTestCaseJ4 {
Map<String,Integer> expectedRecords,
Map<String, Map<String, Object>> 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++) {