view
Class PolygonFactory.UnitTester

java.lang.Object
  extended by view.PolygonFactory.UnitTester
Direct Known Subclasses:
PolygonFactory.UnitTester2
Enclosing class:
PolygonFactory

 class PolygonFactory.UnitTester
extends Object

For testing the PolygonFactory class. Extend this class for further tests and reflect the change in the construction of the UnitTester in the outer class's main method.


Constructor Summary
PolygonFactory.UnitTester()
           
 
Method Summary
 void test(String[] arg)
          Draw one Polygon into a 20x20 canvas.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonFactory.UnitTester

PolygonFactory.UnitTester()
Method Detail

test

public void test(String[] arg)
Draw one Polygon into a 20x20 canvas. This test reads the second command line argument, converts it into an integer and draws the outer class's Shape with the specified index into a 20x20 pixel sized canvas.