Tags:
create new tag
view all tags

A test driver for Item

  • It is much simpler than InventoryTests.java but that is a good example
  • Consider one test method for the constructors and accessors and toString
  • Consider another test method for the mutators
  • Consider another test method for the equals and compareTo. There should be a total of at least 7 calls (two for each of the equals <true, false>, and three for the compareTo [<, ==, >])
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2023-06-26 - cathybareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback