Comp 152 Project 6:
Automated Tests: now an extra credit project

Due:  Mon Dec 13th at 11:59pm

Summary:

This project will give you a chance to practice with automated tests.


Project:



The java code you will be testing (remember it has error(s):

package bsu.comp152;

public class Rectangle {
public int upperLeftX;
public int upperLeftY;
public int lowerRightX;
public int lowerRightY;
public Rectangle(int uleftX, int uleftY, int lRightX, int lRightY){
upperLeftX = uleftX;
upperLeftY = uleftY;
lowerRightX = lRightX;
lowerRightY = lRightY;
}

/**
*
* @param other -another rectangle
* @return should return true if this rectangle overlaps/intersections with the other rectangle
*/
public boolean doesHit(Rectangle other){
if (this.upperLeftY > other.lowerRightY && other.upperLeftY > this.lowerRightY)
return false;
if (this.upperLeftX>other.lowerRightX || other.upperLeftX > this.lowerRightX)
return false;
return true;
}
}


This project will be worth about as much as the first project.


Extra requirements for the project


Comment your code.
Include comments at the top of your testclass
    your name

    Anything you didn't get done



Submission:

upload the entire project, including all of the maven files needed to run on another machine to github and make me a collaborator as before.