Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sapphire-dev] Sapphire test

You need to invoke it as “JUnit Plug-in Test” or it will run standard Java process instead of Eclipse instance.

 

From: Ling Hao [mailto:ling.hao@xxxxxxxxxx]
Sent: Tuesday, April 26, 2011 3:20 PM
To: Konstantin Komissarchik
Subject: Sapphire test

 

I'm trying to add unit test for the fixes I added in the parser. I tried right click on XmlXsdTestSuite.java -> Run As -> JUnit Test and I got the following failure trace: What am I doing wrong?

 

java.lang.ExceptionInInitializerError
 at org.eclipse.sapphire.modeling.xml.schema.UrlResolver.resolve(UrlResolver.java:39)
 at org.eclipse.sapphire.modeling.xml.schema.XmlDocumentSchemaParser.parseSchemaToDom(XmlDocumentSchemaParser.java:516)
 at org.eclipse.sapphire.modeling.xml.schema.XmlDocumentSchemaParser.parse(XmlDocumentSchemaParser.java:65)
 at org.eclipse.sapphire.modeling.xml.schema.XmlDocumentSchemaParser.parseFromUrl(XmlDocumentSchemaParser.java:56)
 at org.eclipse.sapphire.modeling.xml.schema.XmlDocumentSchemasCache.getSchema(XmlDocumentSchemasCache.java:62)
 at org.eclipse.sapphire.tests.modeling.xml.xsd.t0001.TestXmlXsd0001.testSchemaParsing(TestXmlXsd0001.java:59)


Back to the top