Forums Register Login

AssertTrue

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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 .
Tell me how it all turns out. Here is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1624 times.
Similar Threads
Assertion for Date
Boolean Logic
Junit inn Action: JUnit clash in Eclipse?
how to achieve the "like" effect of SQL in java
how to test drive this problem?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:21:45.