LUCENE-6556: mute test temporarily on J9

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685021 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-06-12 03:29:16 +00:00
parent 413bca718d
commit e20a54a2c2
1 changed files with 2 additions and 5 deletions

View File

@ -74,11 +74,8 @@ public class TestQueryTemplateManager extends LuceneTestCase {
public void testFormTransforms() throws SAXException, IOException, ParserConfigurationException, TransformerException, ParserException { public void testFormTransforms() throws SAXException, IOException, ParserConfigurationException, TransformerException, ParserException {
// Sun 1.5 suffers from http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6240963 assumeFalse("test temporarily disabled on J9, see https://issues.apache.org/jira/browse/LUCENE-6556",
if (Constants.JAVA_VENDOR.startsWith("Sun") && Constants.JAVA_VERSION.startsWith("1.5")) { Constants.JAVA_VENDOR.startsWith("IBM"));
String defLang = Locale.getDefault().getLanguage();
assumeFalse("Sun JRE 1.5 suffers from http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6240963 under Turkish locale", defLang.equals("tr") || defLang.equals("az"));
}
//Cache all the query templates we will be referring to. //Cache all the query templates we will be referring to.
QueryTemplateManager qtm = new QueryTemplateManager(); QueryTemplateManager qtm = new QueryTemplateManager();
qtm.addQueryTemplate("albumBooleanQuery", getClass().getResourceAsStream("albumBooleanQuery.xsl")); qtm.addQueryTemplate("albumBooleanQuery", getClass().getResourceAsStream("albumBooleanQuery.xsl"));