Archive for 'Java/J2EE'
Refactoring JUnit 3.8 to 4.0 when hierarchy extends TestCase
February 2nd, 2010 by Jeanne BoyarskyProblem:
I want to start writing tests in JUnit 4.0, but I have a lot of tests in JUnit 3.8. I can’t just start writing tests in 4.0, because I rely on common setup/assertions in my custom superclass which extends TestCase. (Which means JUnit will only look for 3.8 style tests)
Solution:
Create one or more new [...]
Categories: Java/J2EE.
Tags: junit, testing
Comments: none
Plugging Video & Image Memory Leaks in Adobe Air
December 14th, 2009 by Scott SelikoffAdobe AIR is known for memory leak issues, especially in regards to loading and unloading video. I have seen applications with alternating video and images crash unexpectedly after running for only 20 minutes with no user input. After doing some investigating on my own, I can confirm what others have said in the [...]
Categories: Java/J2EE.
Comments: none
The “Reinventing the Wheel” Anti-Pattern
December 10th, 2009 by Scott SelikoffAs a moderator on the JavaRanch, I often come across posts asking how to reinvent features that are available in most application servers. In JDBC for example, I’ve had people ask how to implement their own database connection pooling and how to create their own JDBC driver. Often times the developer is trying [...]
Categories: Development Process, Java/J2EE.
Tags: Java/J2EE, reinvent, wheel
Comments: none
