Loading ...
Sorry, an error occurred while loading the content.

Re: [XP] Testing Leftover

Expand Messages
  • Edmund Schweppe
    ... Probably not. On the other hand, you could create a mock A and use *that* as part of the B tests. -- Edmund Schweppe -- schweppe@ieee.org --
    Message 1 of 48 , Jun 1, 2004
    • 0 Attachment
      Lior Fridman wrote:
      > But I want to test class B and not A I know that A behaves correctly
      > (it has its own tests)
      >
      > So I don't think that replacing B with a mock class willl help me
      > test class B.

      Probably not. On the other hand, you could create a mock A and use
      *that* as part of the B tests.

      --
      Edmund Schweppe -- schweppe@... -- http://schweppe.home.tiac.net
      The opinions expressed herein are at best coincidentally related to
      those of any past, present or future employer.
    • J. B. Rainsberger
      ... If A behaves correctly, and if testing B with a real A is painful, then consider mocking A when testing B. Simple. -- J. B. Rainsberger, Diaspar Software
      Message 48 of 48 , Jun 2, 2004
      • 0 Attachment
        Lior Fridman wrote:

        > But I want to test class B and not A
        >
        > I know that A behaves correctly (it has its own tests)
        >
        > So I don't think that replacing B with a mock class willl help me test
        > class B.

        If A behaves correctly, and if testing B with a real A is painful, then
        consider mocking A when testing B. Simple.
        --
        J. B. Rainsberger,
        Diaspar Software Services
        http://www.diasparsoftware.com :: +1 416 791-8603
        Let's write software that people understand
      Your message has been successfully submitted and would be delivered to recipients shortly.