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

RE: [XP] Testing Leftover

Expand Messages
  • Lior Fridman
    Well I did trust them but than it broke. And if it breaks once it can break again. So I can trust them....Lior-----Original Message----- From:
    Message 1 of 48 , Jun 1, 2004
    • 0 Attachment
      Well I did trust them but than it broke.
      And if it breaks once it can break again.
      So I can trust them....


      Lior


      -----Original Message-----
      From: lasse.koskela@... [mailto:lasse.koskela@...]
      Sent: Tuesday, June 01, 2004 9:46 AM
      To: extremeprogramming@yahoogroups.com
      Subject: VS: [XP] Testing Leftover

      Lior Fridman:
      > I still think it's the only sure way to check that a method performed
      > its operation in the right way without depending on other methods from

      > the class to work properly

      What's wrong with assuming other methods work properly?
      Most literature that say anything about your unit tests relying on other
      methods within the class under test are, in my experience, waving the
      green flag for doing so. You have to trust /something/ since you can't
      test /everything/.

      - Lasse -



      This message is for the designated recipient only and may contain
      privileged, proprietary, or otherwise private information. If you have
      received it in error, please notify the sender immediately and delete
      the original. Any other use of the email by you is prohibited.


      [Non-text portions of this message have been removed]



      To Post a message, send it to: extremeprogramming@...

      To Unsubscribe, send a blank message to:
      extremeprogramming-unsubscribe@...

      ad-free courtesy of objectmentor.com
      Yahoo! Groups Links








      The information contained in this message is proprietary of Amdocs,
      protected from disclosure, and may be privileged.
      The information is intended to be conveyed only to the designated recipient(s)
      of the message. If the reader of this message is not the intended recipient,
      you are hereby notified that any dissemination, use, distribution or copying of
      this communication is strictly prohibited and may be unlawful.
      If you have received this communication in error, please notify us immediately
      by replying to the message and deleting it from your computer.
      Thank you.
    • 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.