Free Session: Steve Freeman and Mike Hill on Example Driven Development with Fit - Oct 22nd Join Steve Freeman and Mike Hill for this free In-the-Brain session...
And how do I fix this ... ? Is there a mean to create suite (the old way) with the new test definitions ... ? \T, -- Any fool can write code that a computer...
... That is the trace from the Statistics window of the JUnit Test Results. The output window which contains the stack trace printed from the catch block of my...
Congratulations Vince! Your question has provoked a response from 3 book authors (so far). We should start keeping score :-) BTW, I can definitely recommend...
Thomas, Could you move the suite() method to another class? It seems that trying to do both things with the same class is causing most of the trouble. David...
... Good to know. I would hate to point people to old advice. The basics never change: narrow dependencies and separate framework extension points from plain...
I have noticed that JUnit keeps a reference to an instance of every class for every fixture run, even after tests have completed. Is it possible to get JUnit...
20024
Stephen Smith
steve@...
Oct 24, 2007 7:08 pm
Are you clearing resources in the tearDown associated with each test? ... Stephen Smith, MEng (Wales). http://www.stephen-smith.co.uk/...
... Yes, we try to encourage that, not to say that there might not be some sloppiness out there, but JUnit still keeps a reference to an instance of the class...
20026
Stephen Smith
steve@...
Oct 24, 2007 11:23 pm
Hi Kathey, Which TestRunner implementation are you using, and are you defining your public static Test suite() methods? Steve ... Stephen Smith, MEng (Wales). ...
Vince, ... Testing EJB 3 components has gotten so much easier compared to the 2.x spec that you don't really need much of a framework to do that. Having said...
I wanted to do an assertEquals on the values of two double arrays, but the standard JUnit methods do not provide this (the object pointer references are...
Hedley, Importing the class does not import all of its methods into your namespace, in the way that extending a class does. Hence, you have to explicitly...
Hi All, I am a student and I am interested in devoting some of my time to develop some additional functionality/fix bugs for junit. I am fairly proficient in...
Hi, I am working on Junit testing for swing application. I am using Abbot framework for gui testing. I have written a test class with some test cases. I...
Create the *smallest* test you can that demonstrates the problem. Remove everything from the test that is superfluous to making the problem occur. Remove...
Akshay, Welcome! There are several ways to contribute to Java testing. Some of these might become part of the JUnit distribution, and others will become...
Hi, Thanks for reply. But I wrote very simple test cases. One of test case just checks the title of Frame and second test checks the value of a combobox. The...
... Note, I also suggested that you remove everything from the code under test that is superfluous to making the problem occur. Start with your entire...
... First of all , I assume the java progress is still here, it just hang but not die. May be you can verify this at your side? If you ask me then I would...
Hi, Is there a way to dynamically add tests to a test suite in JUnit 4? Maybe I am misunderstanding something, but it seems like the only way to add tests is...
Please assist me in mocking a static function of the source code in the testing code, when I cannot change the source code.... -- View this message in context:...
... You could look into whether JEasyTest would do the trick for you: https://jeasytest.dev.java.net It does require AspectJ and I haven't tried JEasyTest...
20041
Paul King
paulk@...
Nov 1, 2007 9:43 am
... If you have the ability to use dynamic languages, you can certainly do this in Groovy and I would imagine Ruby (not sure). Otherwise, you might want to...
... Could you give us some more background on why you would want to do this? I think I only ever used this feature for doing Parameterized Tests, and JUnit 4...
... If it's just a method that your code is calling, you could wrap it in a simple Command interface and supply an implementation in your tests that does what...