logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Russell Stocum" <bsto...@paychex.com>
Subject Re: Category.assert() disappointing
Date Mon, 25 Jun 2001 19:05:14 GMT
Ok, but isn't that redundant with logging? in such case it wouldn't be
beneficial  to use?
I was trying to follow the whole thread, and from what I was reading before
it seemed like some were thinking of Category.assert() as what is used in
JUnit.  If not, I would think that it wouldn't be proper to use and assert in
that way.  I would think that you would send a ERROR, or FATAL and have your
program handle the code to exit out.  An assert after all is an "if" clause.

I haven't been in the Java community more then a few months so I could be way
off... but it would seem more logical to me to adopt the JUnit interpretation
of an assert as a precondition to working, and leave the rest to if
statements and FATAL logging levels...?


ps. its probably a good thing its getting removed...

"Hansen, Richard" wrote:

> Junit is a testing framework. Junit's asserts are used during testing and
> intended to "assert" the success of a test case. Category.assert()is, I
> think, for testing assertions in a deployed application. I don't see how
> Junit helps here. Am I missing something?
> Besides in SDK 1.4 Java is adding a language assertion mechanism.
> Rick Hansen
> > -----Original Message-----
> > From: Benjamin Russell Stocum [mailto:bstocum@paychex.com]
> > Sent: Monday, June 25, 2001 1:43 PM
> > To: LOG4J Users Mailing List
> > Subject: Re: Category.assert() disappointing
> >
> >
> > Has anyone looked at JUnit?  This is where you want to get
> > all your asserts
> > from :)
> > Duplication is not necessary if its already done, and done
> > right at that I
> > might add.
> >
> > -Ben Stocum
> >
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message