Spring2006.CSCI221Homework4 History

Hide minor edits - Show changes to output

Added lines 1-51:
'''Assigned Date''': Tuesday, Feb. 28, 2006\\
'''Due Date''': Thursday, Mar. 16, 2006 \\
'''Due Time''': 11:55pm

Last modified on {$LastModified} (see [[http://www.cs.cofc.edu/~manaris/index.php/Spring2006/CSCI221Homework4?action=diff&source=n&minor=n | updates]])

!!Purpose

This assignment focuses on Unit Testing. You are expected to work in isolation (without access to '''any''' resources '''other than''' the class textbook, class notes, and the instructor).

!!Assignment

Develop a thorough test suite for Dale's Chapter 3 @@SortedStringList@@ ADT specification.

# First create a ''stubbed'' implementation of the given ADT.

** Again, do NOT implement the complete functionality.
** Within your classes, provide only method signatures, and empty bodies (for void methods) or dummy return statements (for non-void methods).

# Using [[http://www.bluej.org/tutorial/testing-tutorial.pdf | BlueJ's jUnit]] functionality, implement your tests as jUnit test methods.

** Focus on functional cohesion, i.e., a test method should focus only '''one''' bit of functionality. The smaller, the better.

!!Documentation

Your test methods should be documented via javadoc. One should look at your javadoc API to determine the extent of your test suite.

!!Submission

# Open your BlueJ project.

# Open (edit) each source file and generate the class interface (javadoc). This can be done within the editor window either by pressing CTRL/J , or selecting the ''Interface'' drop-down menu item (on the right). (Note: This is necessary to generate your documentation for grading.)

# Under the Project menu, click ''Create Jar File...'' . In the dialog box that opens, select ''Include Source'', and press ''Continue''.

# Verify that the @@.jar@@ file is correct, by using the '@@jar xvf file.jar@@' command, where @@file.jar@@ is your archive. Your @@.jar@@ file should contain:

** @@Readme.txt@@ (see Widget for a sample).

** Any files generated automatically by BlueJ (e.g., @@bluej.pkg@@, @@bluej.pkh@@, etc.).

** @@SortedStringList.java@@, @@SortedStringListTest.java@@.

* A doc subdirectory with the Javadoc API documentation generated by BlueJ, for each of the classes above.

In other words, I should be able to unzip your submission and run it without modifications or additions.

# Email the generated @@.jar@@ file to [[(mailto:)manaris@cs.cofc.edu]], by the due date and time.