SWE 437 Homework 1
Spring 2017
Tests from documentation


Agile processes use test cases as a specification mechanism. The purpose of this exercise is to help you understand the power of test cases as a specification mechanism.

Consider the specification for the set() method in the Java ArrayList class.

Assignment: Define test cases (both inputs and expected outputs) based on the documentation. Grading criteria: A plausible set of test cases that exercise all aspects of the documentation. You don't have to format the tests as JUnit, but it would be good practice.