Re: Testing applications

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Nov 23 2004 - 23:56:18 EST

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

    Hi Justin,

    DataContext has another constructor that takes an instance of a parent
    QueryEngine interface... Just like with all mock objects, you have to
    mock the whole tree...

    Andrus

    On Nov 23, 2004, at 7:05 PM, Justin Deutsch wrote:

    > Hi All,
    >
    > 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.
    >
    > Has any one encountered this type of problem before, and if so how did
    > you over come it?
    > --
    > Justin Deutsch
    >
    > Relevance... because results count
    >
    > Relevance Phone: +61 (0)2 6241 6400
    > A.B.N. 86 063 403 690 Fax: +61 (0)2 6241 6422
    > Unit 11, Mobile: +61 (0)40 246 55 88
    > Cnr Brookes & Heffernan Sts, E-mail: Justin.Deutsc..elevance.com.au
    > Mitchell ACT 2911 Web: http://www.relevance.com.au
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Nov 23 2004 - 23:56:25 EST