Re: Testing applications

From: Mike Kienenberger (mkienen..laska.net)
Date: Thu Nov 25 2004 - 12:47:47 EST

  • Next message: Justin Deutsch: "Re: Testing applications"

    Justin Deutsch <justin.deutsc..elevance.com.au> wrote:
    > I'm trying to test an application, that obviously uses Cayenne. To do
    > this I am using jMock to try and mock the DataContext, but keep getting
    > an error because the DataContext's constructor tries to call setParent
    > with null.

    Is there a reason you want to test at that level?
    I test all of my cayenne-based code using DBUnit, and that works fine.

    My tests don't care how things go through cayenne (which is treated as a
    black box), only what they look like in the database afterward.



    This archive was generated by hypermail 2.0.0 : Thu Nov 25 2004 - 12:46:16 EST