class path exception

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

class path exception

Mashechka

<target name="testDao">
  <testng classpathref="test.path" groups="unitdao" annotations="JDK"
workingDir=".">
        <classfileset dir="build/test-classes" includes="**/*.class" />
  </testng>
</target>

Exception in thread "main" org.testng.TestNGException:
   [testng] Cannot load class from file:
C:\eclipseWorkspaces\Playground_workspace\testNgPlayPan\build\test-classes\sample\test\dao\WidgetDaoTest.class
   [testng] at
org.testng.TestNGCommandLineArgs.fileToClass(TestNGCommandLineArgs.java:658)
   [testng] at
org.testng.TestNGCommandLineArgs.parseCommandLine(TestNGCommandLineArgs.java:206)
   [testng] at org.testng.TestNG.privateMain(TestNG.java:992)

please help


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: class path exception

Cédric Beust ♔
Please make sure that test.dao.WidgetDaoTest is on your classpath...

--
Cédric

On 1/12/07, Mashechka <[hidden email]> wrote:

<target name="testDao">
  <testng classpathref="test.path" groups="unitdao" annotations="JDK"
workingDir=".">
        <classfileset dir="build/test-classes" includes="**/*.class" />
  </testng>
</target>

Exception in thread "main" org.testng.TestNGException:
   [testng] Cannot load class from file:
C:\eclipseWorkspaces\Playground_workspace\testNgPlayPan\build\test-classes\sample\test\dao\WidgetDaoTest.class
   [testng] at
org.testng.TestNGCommandLineArgs.fileToClass(TestNGCommandLineArgs.java:658)
   [testng] at
org.testng.TestNGCommandLineArgs.parseCommandLine(TestNGCommandLineArgs.java:206)
   [testng] at org.testng.TestNG.privateMain (TestNG.java:992)

please help






--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en
-~----------~----~----~----~------~----~------~--~---