This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
in the update method of my data class I have something like this:
Here is the strange part:
If I run a JUnittest for my Data.update method, that causes the OutOfMemoryError. If, on the other hand, I simply put in a main method in my Data class and test the update method from there, everything works as it should. By that I mean throwing the exception does NOT cause an OutOfMemoryError. Could this mean JUnit doesn't handle chained exceptions very well ? There goes unittesting down the drain
My environment: OS : Red Hat Enterprise Linux WS release 4 (Nahant Update 1), 2.6.9-11.EL JDK : 1.5.0_04 JUnit: 3.8.1
Sun Certified Developer for the Java 2 Platform
Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5
Joined: Apr 28, 2005
Already found the problem myself:
a nice infinite loop in my unit test itself (forgot to call getCause to get the next cause of the throwable) feeling a little stupid here ...
subject: OutOfMemoryError during unit test Data class