Searched defs:xml (Results 1 - 14 of 14) sorted by relevance

/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/
H A DTestDataConfig.java22 import org.xml.sax.InputSource;
24 import javax.xml.parsers.DocumentBuilderFactory;
40 initCore("dataimport-nodatasource-solrconfig.xml", "dataimport-schema.xml");
50 runFullImport(loadDataConfig("data-config-with-datasource.xml"));
57 javax.xml.parsers.DocumentBuilder builder = DocumentBuilderFactory
59 Document doc = builder.parse(new InputSource(new StringReader(xml)));
66 private static final String xml = "<dataConfig>\n" field in class:TestDataConfig
H A DTestFieldReader.java41 l.add(createMap("xml", xml));
53 " <entity name=\"b\" dataSource=\"f\" processor=\"XPathEntityProcessor\" forEach=\"/x\" dataField=\"a.xml\">\n" +
60 String xml = "<x>\n" + field in class:TestFieldReader
H A DTestScriptTransformer.java22 import org.xml.sax.InputSource;
24 import javax.xml.parsers.DocumentBuilder;
25 import javax.xml.parsers.DocumentBuilderFactory;
104 Document document = builder.parse(new InputSource(new StringReader(xml)));
122 Document document = builder.parse(new InputSource(new StringReader(xml)));
147 static String xml = "<dataConfig>\n" field in class:TestScriptTransformer
H A DTestLineEntityProcessor.java83 * acceptLineRegex="xml"
88 LineEntityProcessor.ACCEPT_LINE_REGEX, "xml",
120 * acceptLineRegex="\\.xml"
126 LineEntityProcessor.ACCEPT_LINE_REGEX, "\\.xml",
192 String type, // field type from schema.xml
208 private DataSource<Reader> getDataSource(final String xml) { argument
220 return new StringReader(xml);
242 "412593 8 -rwxr-xr-x 1 user group 1155 1 Apr 11:10 /Volumes/spare/ts/config/xml.xsd\n" +
245 "412622 24 -rwxr-xr-x 1 user group 8894 1 Apr 11:09 /Volumes/spare/ts/acm19/data/00000510.xml\n" +
246 "412623 32 -rwxr-xr-x 1 user group 14124 1 Apr 11:09 /Volumes/spare/ts/acm19/data/00000603.xml\
[all...]
H A DTestContentStreamDataSource.java65 DirectXmlRequest req = new DirectXmlRequest("/dataimport", xml);
104 return CONF_DIR + "dataimport-schema.xml";
116 return CONF_DIR + "contentstream-solrconfig.xml";
133 File f = new File(confDir, "solrconfig.xml");
135 f = new File(confDir, "schema.xml");
138 f = new File(confDir, "data-config.xml");
139 FileUtils.copyFile(getFile(CONF_DIR + "dataconfig-contentstream.xml"), f);
155 static String xml = "<root>\n" field in class:TestContentStreamDataSource
H A DTestXPathEntityProcessor.java50 Map entityAttrs = createMap("name", "e", "url", "cd.xml",
75 Map entityAttrs = createMap("name", "e", "url", "testdata.xml",
95 Map entityAttrs = createMap("name", "e", "url", "testdata.xml",
118 Map entityAttrs = createMap("name", "e", "url", "cd.xml",
218 + new File(tmpdir, "x.xsl").getAbsolutePath(), "url", "cd.xml");
236 private DataSource<Reader> getDataSource(final String xml) { argument
249 return new StringReader(xml);
254 private static final String xsl = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
257 + "<xsl:output version='1.0' method='xml' encoding='UTF-8' indent='yes'/>\n"
274 private static final String cdData = "<?xml versio
[all...]
H A DTestErrorHandling.java39 initCore("dataimport-solrconfig.xml", "dataimport-schema.xml");
51 StringDataSource.xml = malformedXml;
58 StringDataSource.xml = malformedXml;
65 StringDataSource.xml = malformedXml;
71 StringDataSource.xml = wellformedXml;
80 public static String xml = ""; field in class:TestErrorHandling.StringDataSource
88 return new StringReader(xml);
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/request/
H A DDirectXmlRequest.java39 final String xml; field in class:DirectXmlRequest
45 xml = body;
50 return ClientUtils.toContentStreams( xml, ClientUtils.TEXT_XML );
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/util/
H A DDOMUtilTestBase.java22 import javax.xml.parsers.DocumentBuilder;
23 import javax.xml.parsers.DocumentBuilderFactory;
24 import javax.xml.xpath.XPath;
25 import javax.xml.xpath.XPathConstants;
26 import javax.xml.xpath.XPathFactory;
31 import org.xml.sax.InputSource;
44 public Node getNode( String xml, String path ) throws Exception { argument
45 return getNode( getDocument(xml), path );
53 public Document getDocument( String xml ) throws Exception {
54 return builder.parse(new InputSource(new StringReader(xml)));
[all...]
H A DAbstractSolrTestCase.java29 import javax.xml.xpath.XPathExpressionException;
48 import org.xml.sax.SAXException;
55 * schema.xml file (:TODO: the solrconfig.xml as well) and write some
86 * schema.xml they wish to use.
92 * solrconfig.xml they wish to use.
277 "\n xml response was: " + response +
381 r.write(doc.xml);
384 XML.writeUnescapedXML(r, "add", doc.xml, (Object[])args);
420 d.xml
450 public String xml; field in class:AbstractSolrTestCase.Doc
[all...]
H A DTestHarness.java36 import org.xml.sax.SAXException;
39 import javax.xml.parsers.DocumentBuilder;
40 import javax.xml.parsers.DocumentBuilderFactory;
41 import javax.xml.xpath.XPath;
42 import javax.xml.xpath.XPathConstants;
43 import javax.xml.xpath.XPathExpressionException;
44 import javax.xml.xpath.XPathFactory;
87 * Assumes "solrconfig.xml" is the config file to use, and
88 * "schema.xml" is the schema path to use.
93 this( dataDirectory, "schema.xml");
203 update(String xml) argument
223 validateUpdate(String xml) argument
235 validateErrorUpdate(String xml) argument
247 checkUpdateStatus(String xml, String code) argument
360 validateXPath(String xml, String... tests) argument
[all...]
/lucene-3.6.0/solr/solrj/src/test/org/apache/solr/client/solrj/beans/
H A DTestDocumentObjectBinder.java44 nl = parser.processResponse(new StringReader(xml));
86 NamedList<Object> nl = parser.processResponse(new StringReader(xml));
230 public static final String xml = field in class:TestDocumentObjectBinder
231 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
/lucene-3.6.0/dev-tools/scripts/
H A DsmokeTestRelease.py30 import xml.etree.ElementTree as ET namespace
411 extras += ('build.xml', 'index.html', 'common-build.xml', 'core', 'backwards', 'tools', 'site')
554 run('sh ./exampledocs/post.sh ./exampledocs/*.xml', 'post-example-docs.log')
965 rePOMtemplate = re.compile(r'^pom.xml.template$')
981 POMtemplates['grandfather'] = [p for p in allPOMtemplates if '/maven/pom.xml.template' in p]
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/
H A DSolrTestCaseJ4.java36 import javax.xml.xpath.XPathExpressionException;
70 import org.xml.sax.SAXException;
72 import javax.xml.xpath.XPathExpressionException;
214 * schema.xml they wish to use.
222 * solrconfig.xml they wish to use.
439 if (!"json".equals(params.get("wt","xml")) || params.get("indent")==null) {
570 r.write(doc.xml);
573 XML.writeUnescapedXML(r, "add", doc.xml, (Object[])args);
608 d.xml = TestHarness.makeSimpleDoc(fieldsAndValues).toString();
657 public String xml; field in class:SolrTestCaseJ4.XmlDoc
[all...]

Completed in 35 milliseconds