... Excellent. It always helps to have more pairs of eyes. This should be sufficient until such time as it isn't, then do more. :) Thanks, Neil. JBR. ...
As I said before, I would just want a warning when a test method is empty or has no asserts... but I don't want to go to the trouble of getting some ...
... Hm. Why are you so concerned about it? Sometimes you write assertions that pass because you refactored earlier to a more general case. That's not ...
Hi all, I'm new to using JUnit and I have a question on how to handle the following situation. I have ClassA which accepts a Collection of objects in its ...
[Jeff Langr...] ... Do you care whether the assert is run for the first time, or simply that it still fails? I suppose one possibility is that the assert is...
... AHA! AHA AHA AHA! That's it! Why is it always the case that someone else says perfectly what I'm trying to say poorly? It is not important whether method X...
[Mike Duffy...] ... Mike, you know I love you, buddy, but this grates me more and more I see it. ... "07" means nothing, except possibly to you. "The eighth...
... [...] ... Exactly. Experiment and measure. I, for one, believe that everyone on this list will behave roughly according to this model: REPEAT: Read the...
This is probably in a FAQ document somewhere, if so please direct me to it. How does one test a private method? Is the only recourse to make the method...
COMUnit is a Visual Basic port of the JUnit unit testing framework that is designed to facilitate developing unit tests for Microsoft COM components. COMUnit...
Hi Erik, question not related to JUnit but JavaCC (I saw that you were enthousiastic about that product). I try to write a code generator for JUnit testcases...
My apologies if this has already been addressed. As of jdk1.4 java defines assert as a key-word. The class TestCase and its derivatives will cause a compiler...
Hello All, I am new to unit testing. I am usint junit framework for testing. I think i am little bit confused while creating the testcases. Actually the ...
JDepend 1.4, the freely-available Java package dependency analyzer, has been released. Of particular interest to JUnit users is the ability to write tests...
Is the following statment true? Within JUnit, an exception caught by the framework is an error. __________________________________________________ Do You...
... Let me know if this works for you... http://c2.com/cgi/wiki?JavaUnitBestPractices JBR. _________________________________________________________________ ...
I've read (mostly) the thread about this, and while I don't personnally need asserts count, I think it's an interesting discusssion and could be the base for a...
... You will not like this answer. Sorry about that. No, and that is by design. One of the key requirements of unit testing is "Report for each test only...
Hi Erik; It gets stranger. In trying to write a simple set of test cases, I discovered that the problem only exists if the exception is thrown from a class...
Hi, I wonder if there is a way to obtain the name of the current test method, when you are in setUp() or tearDown()? Usage : public void tearDown() { ...
<snip> Now for the "count-assert" mechanism: I don't think that adding a plug-in is the way to go. The easiest way is to declare a static variable in the...
Hi all, In Visual Age for Java I'm now getting used to do my JUnit tests for the EJB we're developping. I'm now facing a simple problem. My code crashes...
Hi Jason. Thanks for responding. It's definitely not reaching the catch block. The assertions aren't being checked, and even adding a System.out.println("help...
Everyone: In the interest of not flooding this group with my "Out of Office" response, I'm unsubscribing from this account and re-joining the group through my...
For anyone who is going to XP Universe this coming week... There is a slight program change to the session on Tuesday morning, 8:30 to 10:00 AM, entitled...
I've provided coded examples below. My basic question is this: Does Junit (3.7) manipulate exceptions in some way that would prevent an exception from being...
Hi Thomas, ... lookups can take sometimes many seconds. Are you aware that you aren't forced to use instantDB for the data source of the persistent name...