Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Report on Unit Testing MVP Presenters.

1 view
Skip to first unread message

Syver Enstad

unread,
Mar 1, 2002, 9:24:16 AM3/1/02
to
I posted on this subject a couple of weeks ago, and I ended up
referring to William Wake's Xplorations site for references. Since I
might as well follow my own advice I ended up doing a Dolphin version
of the two Unit Testing tutorials that Wake has written (one for the
model, the other for the GUI), in order to familiarize myself with
Dolphin.

I found that while trying to remain as close to the spirit of Wake's
code as possible (Wake's tutorials are implemented with Java Swing),
almost none of the tests actually needed to instantiate the View
objects at all. This gave a warm fuzzy feeling on the MVP concept of
splitting the UI into presenters and views. I think that it's pretty
cool that most of the tests that require you to instantiate actual GUI
objects in Swing, only requires the Presenters and sometimes the
Model(s) for similar tests in Dolphin. My preliminary conclusion is
that Unit Testing Presenter classes is definitely doable and seems to
be worthwhile for those who like to work test that way.

If anyone is interested in the Package containing the test and
application classes for the Dolphin port of the Wake tutorial, please
say so. It would be interesting if anyone could criticize it too.

I've always been somewhat disgusted by the GUI frameworks in other
languages I've programmed in (MFC, Tkinter(Python), wxPython, VB). I've
always felt that they've lumped things together in an unpleasant way,
but Dolphin has another feel to it. I think I am getting hooked here :-)

To repeat what I've stated in the previous post on this subject:
Wake's Original Java version is located at:
http://xp123.com/xplor/
(The articles are The Test/Code cycle in XP: Part 1/2)

The two articles above are also available in print:
(Part 1)
Extreme Programming Explored by W. Wake.
Chapter 1. How Do you write a program.

(Part 2)
Extreme Programming Installed by Ron Jeffries et al.
Chapter 31. A Java Perspective by W. Wake


--

Vennlig hilsen

Syver Enstad

0 new messages