... Distribution size might be an issue. For example, when doing a Java Webstart installation, we want the distributables to be small. In general, I *would*...
Bauduin Raphael wrote: <snip /> ... No: you are correct. First, JUnit adds all the tests, then executes them. ... That's definitely the problem. How to handle...
... Sometimes yes; sometimes no. Mostly no, but I think "yes". -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416...
... Absolutely and categorically incorrect. Each test (meaning test method) executes in a different instance of (your subclass of) TestCase. That is how JUnit...
... If tests are to be documentation about how to use the code being tested, then tests should only use only public methods/interfaces. Also, if tests depend...
... When you say "write suites", what do you mean? What specifically do you expect such a tool to do? It sounds like you want something to collect a number of...
Here's what the problem was: The base class contained <pre> public static Test suite() { return new TestSuite(myBaseClase.class); } </pre> Any class that has...
... these examples are *really* helpful. I have only been doing unit testing (for each class) for a few months. and trying to figure out how to organize the...
Thanks Jamie, I got my answer. it is wise to set up for each test. ... use only once. Although it is usually wise to set up each individually test and this is...
Hi, I am making a application to test the java base product. Now in order to do that how to handle the exception. to be more specific, How to diffrentiate the...
... A JUnit test either fails or generates an error. USUALLY a failure means your code is wrong; USUALLY an error means the test /or/ the environment is wrong....
If an exception occurs in a test method, it is thrown to the JUnit framwork (testXyz() throws Exception). In the tearDown() method another exception occurs....
I am running JUnitEE It works fine on subsets of my test suite but when I run the whole suite (about 700 tests) I get an out of memory exception while xalan is...
Hi all, a colleague of mine once told me that she never did unit testing. Her argument was that unit tests, as performed today, are able to check only a...
... you ... collect a ... filename ... start ... Hello, my first idea was to find a tool generating a TestSuite as java-code from the java-sources and writing...
... I have a simple observation to make on this topic. I have seen unit testing work on many kinds of problems. I have never seen theorem provers work on...
... Write your own test runner. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416 791-8603 Let's write software that...
... I think an upgrade of Xalan fixes the problem. I have a vague recollection of going through this myself. -- J. B. Rainsberger, Diaspar Software Services ...
... Does she run the specification checking every time the code changes? How long does it take? Does running the specification checking help in the program...
Like you, I also consider the test's exception more interesting than the follow-up problems in tearDown(). I've fixed it (in http://wounittest.sf.net) with the...
... Was your colleague a software developer or tester? If so, in which industry? Sounds academic. How did the quality of her code reflect her theory? Just...
... Do you /really/ want to invoke tearDown() twice? -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416 791-8603 Let's...
... No. And it doesn't seem to. Do you have a failing testcase that shows how this runBare() variation invokes tearDown() twice? Here's my test: public class...
Hi , I am getting OutOfMemoryError when I execute the JTest generated JUnit test cases. There are around 200 java test files. Can anyone please help me out in...
... What have you tried to do so far? What happened when you tried executing only half of those tests? http://www.catb.org/~esr/faqs/smart-questions.html -- J....
... Aha. Good point. The "throw e" in the finally {} block does the trick. It took me a little time to see that. -- J. B. Rainsberger, Diaspar Software...