LUCENE-4075: Cleaner path usage in TestXPathEntityProcessor

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1342490 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2012-05-25 02:36:29 +00:00
parent 92f3b3aee2
commit 0cbc7ec4e7
2 changed files with 4 additions and 1 deletions

View File

@ -439,6 +439,9 @@ Bug Fixes
an invalid pattern, and include the 'name' whenever possible in plugin init
error messages. (hossman)
* LUCENE-4075: Cleaner path usage in TestXPathEntityProcessor
(Greg Bowyer via hossman)
Other Changes
----------------------

View File

@ -215,7 +215,7 @@ public class TestXPathEntityProcessor extends AbstractDataImportHandlerTestCase
false);
Map entityAttrs = createMap("name", "e",
XPathEntityProcessor.USE_SOLR_ADD_SCHEMA, "true", "xsl", ""
+ new File(tmpdir, "x.xsl").getAbsolutePath(), "url", "cd.xml");
+ new File(tmpdir, "x.xsl").toURI(), "url", "cd.xml");
Context c = getContext(null,
new VariableResolverImpl(), getDataSource(cdData), Context.FULL_DUMP, null, entityAttrs);
XPathEntityProcessor xPathEntityProcessor = new XPathEntityProcessor();