Author: fmui
Date: Fri Feb 22 15:30:02 2013
New Revision: 1449075
URL: http://svn.apache.org/r1449075
Log:
yet another attempt to fix the Jenkins build
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractXMLConverterTest.java
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractXMLConverterTest.java
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractXMLConverterTest.java?rev=1449075&r1=1449074&r2=1449075&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractXMLConverterTest.java
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractXMLConverterTest.java
Fri Feb 22 15:30:02 2013
@@ -101,19 +101,13 @@ public abstract class AbstractXMLConvert
public void init() throws SAXException, IOException {
SchemaFactory sf =
SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
- System.out.println(this.getClass().getResource("/"));
+ URL base = this.getClass().getResource("/");
- URL schema10url =
this.getClass().getResource("/schema/cmis10/CMIS-core.xsd");
- if (schema10url == null) {
- throw new RuntimeException("Cannot find CMIS 1.0 schema file!");
- }
+ URL schema10url = new URL(base, "schema/cmis10/CMIS-core.xsd");
StreamSource core10 = new StreamSource(schema10url.openStream());
StreamSource test10 = new StreamSource(new
ByteArrayInputStream(TEST_SCHEMA.getBytes("UTF-8")));
- URL schema11url =
this.getClass().getResource("/schema/cmis11/CMIS-core.xsd");
- if (schema11url == null) {
- throw new RuntimeException("Cannot find CMIS 1.1 schema file!");
- }
+ URL schema11url = new URL(base, "schema/cmis11/CMIS-core.xsd");
StreamSource core11 = new StreamSource(schema11url.openStream());
StreamSource test11 = new StreamSource(new
ByteArrayInputStream(TEST_SCHEMA.getBytes("UTF-8")));