commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Davey <Michael.Da...@Sun.COM>
Subject Re: [Lang] Assertions?
Date Mon, 21 Oct 2002 14:53:59 GMT
Henri Yandell wrote:
> First thoughts on assertion code:
> 
> Does JUnit already have this?

Mostly.

> What do we feel about JUnits version if it
> does?
 >
> Does JDK 1.4 contain much more than the 'assert' keyword?

It includes a simple yet powerful assertion facility:
<http://java.sun.com/j2se/1.4/docs/guide/lang/assert.html>

> What does 1.4 throw when an assertion fails?

java.lang.AssertionError:
<http://java.sun.com/j2se/1.4/docs/api/java/lang/AssertionError.html>

(junit throws junit.framework.AssertionFailedError)


-- 
Michael


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message