This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Problem in JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

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

Problem in JUnit

Roopesh Rana

Joined: Sep 03, 2012
Posts: 29
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.


Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

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

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

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

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

Thank You,
Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

Make sure you don't have multiple versions of that library on your classpath.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Problem in JUnit
It's not a secret anymore!