logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamal Ahmed <KAh...@webMethods.com>
Subject junit for set Method with boolean input and void return
Date Mon, 06 Feb 2006 17:05:40 GMT
Hi,

I am a bit confused here, so I would appreciate a little help.
I am trying to write a test for method:

public final void setAcceptMatch(boolean inMatchFlag) 
{ 
acceptMatch = inMatchFlag; 
}

And here is what I have so far:

public void testsetAcceptMatch() {

                   WmLoggerFilter subjectWmLoggerFilter = new
WmLoggerFilter();

                   subjectWmLoggerFilter.setAcceptMatch(true);
}

Now, which assert method should I use to see if "acceptMatch" is true or
not.

Thanks,
-Kamal.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message