Can I write a test without any assert in it ?

Posted by stratwine on Stack Overflow See other posts from Stack Overflow or by stratwine
Published on 2010-05-24T20:04:51Z Indexed on 2010/05/24 20:11 UTC
Read the original article Hit count: 207

Filed under:
|
|
|

Hi,

I'd like to know if it is "ok" to write a test without any "assert" in it. So the test would fail only when an exception / error has occured.

Eg: like a test which has a simple select query, to ensure that the database configuration is right. So when I change some db-configuration, I re-run this test and check if the configuration is right. ?

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about unit-testing