File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Problem in JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Problem in JUnit " Watch "Problem in JUnit " New topic
Author

Problem in JUnit

Roopesh Rana
Greenhorn

Joined: Sep 03, 2012
Posts: 6
I am very new in Junit testing I have a test class and a main class which class I want to test.
I wrote every related test case in test fine. But there is an exception.



[/code]

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282

Are you using maven? What does your POM look like?


[How To Ask Questions][Read before you PM me]
shivamahesh bachu
Greenhorn

Joined: Sep 14, 2012
Posts: 13
Hi Roopesh Rana,

I Executed your code in eclipse , it runs and test cases got passed.


Thank You,
Mahesh.
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1282

Make sure you don't have multiple versions of that library on your classpath.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in JUnit
 
Similar Threads
Basic Question please answer
3rd party library problem
Question about running Junit test's in eclipse.
Problem creating mock using PowerMock
Class not found test.TestIndexBean error in Eclipse