chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1448771 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/test/java/org/apache/chemistry/opencmis/commons/impl/xml/AbstractXMLConverterTest.java
Date Thu, 21 Feb 2013 18:47:20 GMT
Author: fmui
Date: Thu Feb 21 18:47:20 2013
New Revision: 1448771

URL: http://svn.apache.org/r1448771
Log:
another attempt to make the unit tests work on Jenkins

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=1448771&r1=1448770&r2=1448771&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
Thu Feb 21 18:47:20 2013
@@ -101,14 +101,14 @@ public abstract class AbstractXMLConvert
     public void init() throws SAXException, UnsupportedEncodingException {
         SchemaFactory sf = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema");
 
-        InputStream schema10stream = this.getClass().getResourceAsStream("/schema/cmis10/CMIS-core.xsd");
+        InputStream schema10stream = this.getClass().getClassLoader().getResourceAsStream("schema/cmis10/CMIS-core.xsd");
         if (schema10stream == null) {
             throw new RuntimeException("Cannot find CMIS 1.0 schema file!");
         }
         StreamSource core10 = new StreamSource(schema10stream);
         StreamSource test10 = new StreamSource(new ByteArrayInputStream(TEST_SCHEMA.getBytes("UTF-8")));
 
-        InputStream schema11stream = this.getClass().getResourceAsStream("/schema/cmis11/CMIS-core.xsd");
+        InputStream schema11stream = this.getClass().getClassLoader().getResourceAsStream("schema/cmis11/CMIS-core.xsd");
         if (schema11stream == null) {
             throw new RuntimeException("Cannot find CMIS 1.1 schema file!");
         }



Mime
View raw message