Testing Edge Cases

It is also important to test extremely atypical cases. What happens when things are towards the end of your array, or when you have very large numbers? Will your program continue to function with empty inputs? In the case of your Rectangle class, does the order of the Points used in the constructor matter?


public static void main(String[] args) {

   Point ul = new Point(2,0);
   Point ll = new Point(0,2);
   Point ur = new Point(4,6);
   Point lr = new Point(6,4);

   Rectangle = new Rectangle( ll, ul, lr, ur);
}

  1. Create an edge test case for each of the contructors and mutator methods in your classes.