Refactoring JUnit 3.8 to 4.0 when hierarchy extends TestCase

Site menu:

Topics

Recent Posts

Blog

 

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Past Posts

Links:

Archive for 'Java/J2EE'

Refactoring JUnit 3.8 to 4.0 when hierarchy extends TestCase

February 2nd, 2010 by Jeanne Boyarsky

Problem:
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 [...]

Plugging Video & Image Memory Leaks in Adobe Air

December 14th, 2009 by Scott Selikoff

Adobe 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 [...]

The “Reinventing the Wheel” Anti-Pattern

December 10th, 2009 by Scott Selikoff

As 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 [...]