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

/**
 * Tests the methods in the FlyWeightNode class
 * @author nickgrifasi
 * @version 10/15/21
 */
public class FlyWeightNodeTest extends TestCase {
    
    
    
    /**
     * setUp method for testing
     */
    public void setUp()
    {
        //method left intentionally empty
    }
    
    /**
     * tests the dump method
     */
    public void testDump()
    {
        PRQuadtree quadtree = new PRQuadtree();
        
        quadtree.FLY_WEIGHT.dump(0, 0, 1, 0);
        String dumpFile = systemOut().getHistory();
        assertEquals("Node at 0, 0, 1: Empty\n", dumpFile);
    }
    

}