From: Patrick B. <pat...@jo...> - 2011-03-11 18:51:12
|
I'm sorry, I simplified that error response to make it more straight forward. The actual error response corresponds to the JUnit from my last post: Class not found org.exist.xquery.modules.stem.Organization.StemOrganizationTest java.lang.ClassNotFoundException: org.exist.xquery.modules.stem.Organization.StemOrganizationTest at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) On Fri, Mar 11, 2011 at 1:37 PM, Dmitriy Shabanov <sha...@gm...>wrote: > Well, it can't find this class org.exist.xquery.modules.my.ModuleTest ... > may be you have reference somewhere? try to search ... > > > On Fri, Mar 11, 2011 at 11:30 PM, Patrick Bosek <pat...@jo...>wrote: > >> 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(); >> } >> } >> >> } >> > > -- > Dmitriy Shabanov > -- Patrick Bosek Jorsek Software Cell (585) 820 9634 Office (585) 239 6060 Jorsek.com |