Why not just use JUnit? The style would be a little different, but it can be 
used outside the testing framework.

On Monday 21 October 2002 08:20 am, Ola Berg wrote:
> How about utilities for assertions?
>
> I can imagine:
>
> class Assert
>     notNull( Object)
>     noNullElements( Object[])
>     notEmpty( Object[]) //works for collections too
>
> plus either adding methods for common object types:
>
>     notEmpty( String)
>
> or adding assert* methods to the lang *Utils:
>
>     assertNotEmpty( String)
>
> When an assertion fails, the methods will throw IllegalArgumentException
>
> Good or bad? I can do the coding, if people like it.
>
> /O


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

Reply via email to