From: Patrick B. <pat...@jo...> - 2011-03-11 18:31:00
|
I'm not sure what you mean. I was under the impression that JUnit 4.6 is bundled with eXist (I think), and my module is in the directory with all the other eXist modules and is running just fine. What should I be checking to see if it's in my class path? Here is the JUnit class: (actual code, I didn't simplify it this time) package org.exist.xquery.modules.stem.Organization; import static org.junit.Assert.*; import org.exist.xquery.XPathException; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; public class StemOrganizationTest { @Test public void testGetPath() { try { StemOrganization org = new StemOrganization("jorsek"); assertTrue(org.getPath() != ""); } catch (XPathException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } On Fri, Mar 11, 2011 at 1:06 PM, Dmitriy Shabanov <sha...@gm...>wrote: > On Fri, Mar 11, 2011 at 10:48 PM, Patrick Bosek <pat...@jo...>wrote: > >> Has anyone gotten this error when trying to run a JUnit on their eXist >> extension module (through Eclipse)? >> >> Class not found org.exist.xquery.modules.my.ModuleTest >> java.lang.ClassNotFoundException: org.exist.xquery.modules.my.ModuleTest >> >> > That looks like your own class, can you make sure you have it in > classpaths. > > -- > Dmitriy Shabanov > -- Patrick Bosek Jorsek Software Cell (585) 820 9634 Office (585) 239 6060 Jorsek.com |