Francisco Benitez Leon's Blog

August 15, 2009

Revisiting JMUnit, JMUnit Revised 2.0

Filed under: Java ME — Tags: , , , — Francisco Benitez Leon @ 8:04 pm

Some days ago I published a post introducing a patch for JMUnit that I use for being able to execute TestSuites. After releasing the patch, I tried to integrate it into NetBeans hacking the mobility pack to get the patched library working with the mobility wizards for creating unit tests. However, due to the design of the patched sources it was impossible to achieve. I also detected a problem with the design that was preventing TestSuite from creating the TestCases read from the Application descriptor (I have never used the custom property JMUnitTestClasses since I started using the modified JMUnit sources).

Based on the general idea of eliminating MIDlet from the inheritance chain I have redesigned the patch, instead of passing a MIDlet to Test in its constructor, Test has to be initialized with a MIDlet before creating any Test object (TestCase, TestSuite or TestRunner). The new desing doesn’t break any of the features of JMUnit, its usage is much simpler  and it can be almost fully integrated in NetBeans, as I will explain next week.

You could download the patch and know more of this new release at JMUnit Revised 2.0.

Advertisement

1 Comment »

  1. Me gusta lo del Revised 2.0 jeje…

    Paco paco paco que mi pacoooooo

    Comment by Enrique — August 29, 2009 @ 10:15 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.