On Wednesday 23 October 2002 06:00 am, Ola Berg wrote: > From: <[EMAIL PROTECTED]> > > > Yes, to basic String and Collection methods. No, to the number ones > > (isTrue(i > 0) is just as easy). > > Agree. What about the wrapper classes (Integer etc)? > > The fact is that isTrue() _is_ easy for anything, so that apart from the > array checking methods and the null check, anything could be easily done > with isTrue(). For the object checking, you would only be missing the > implicit notNull() check (which is a compelling reason to keep those > methods). >
Experience from JUnit suggests otherwise. Logically, you could just have assertTrue(), in practice, it's convienent to have assertNotNull(), assertEquals(), and so on. -- To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>
