aspose file tools*
The moose likes Testing and the fly likes junit gui problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "junit gui problem" Watch "junit gui problem" New topic
Author

junit gui problem

Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
I have written a test for junit, when I run it through the text version of junit the test passes, but when it is ran through the gui version it fails. Can anybody help me with this/has anybody had this happen to them also?

Thanks in advance Dan
[ June 24, 2004: Message edited by: dan maples ]

-Dan
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Could you post some code or describe the test and the class under test?
Are you dealing with classloaders for example?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
I solved the problem thank you very much for your reply.
[ June 24, 2004: Message edited by: dan maples ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

Dan,
What was the problem?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dan Maples
Ranch Hand

Joined: Jun 21, 2004
Posts: 153
well I dont know what the problem was exactly, but I'll try to explain it. I wrote the test for a program that called on the soap, this is the program that the test only passed the text version and not the gui. Because what I really wanted to test was the soap, I just wrote a test that called directly on the soap itself. That test passed both the gui and the text versions of the test. So I never realy figured out why the the first one kept failing the gui and passing the text, but since I wrote a new test directly for the soap I stopped trying to figure it out. I hope that explains my situation a little better.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: junit gui problem