File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes AssertTrue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "AssertTrue" Watch "AssertTrue" New topic
Author

AssertTrue

Alan Jackson
Greenhorn

Joined: Oct 26, 2004
Posts: 26
How does the AssertTrue function work?

I have AssertTrue("error",variableboolean1); which to the best of my knowledge should work. Do I need to import something or do something to make it work?
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
There aren't "functions" in Java. There are methods on classes. Of which class is "AssertTrue()" a method?

JUnit has a method assertTrue() on its Assert class. Actually, there are a couple of different signatures. If that's the one you want, you need to import junit.framework.Assert .


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AssertTrue