PRQuadTree / src / Point2Test.java
Point2Test.java
Raw
import student.TestCase;

/**
 * 
 * @author nickgrifasi
 * @version 9/20/21 Tests the main() method within
 * Point2. Runs the project.
 */
public class Point2Test extends TestCase {

    /**
     * Sets up test cases
     */
    public void setUp() {
        //method left intentionally empty
    }

    /**
     * tests the main method
     */
    public void testMain() {
//        String[] file = new String[1];
//        file[0] = "P2test1.txt";  
//        assertEquals(1, file.length);
//        Point2 pointMain = new Point2();
//        pointMain.main(file);
        
//        String[] file = new String[1];
//        file[0] = "P2test2.txt";  
//        assertEquals(1, file.length);
//        Point2 pointMain = new Point2();
//        pointMain.main(file);
        String[] file = new String[1];
        file[0] = "stdInput.txt";  
        assertEquals(1, file.length);
        Point2 pointMain = new Point2();
        pointMain.main(file);
    }

}